Javascript is a dynamic computer programming language, most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.

learn more… | top users | synonyms (2)

12
votes
2answers
2k views

Cannot add custom web part to page using the JS OM

I'm trying to add a custom web part (that is one I have written myself) using the new Javascipt OM available with SharePoint 2010. My solution is also running within the Sandbox. I have it working ...
0
votes
1answer
1k views

ECMAScript Client OM with External List

In SharePoint 2010, for a regular "custom" list calling SP.ListOperation.Selection.getSelectedItems() using the ECMAScript client object model returns an array of item IDs. These IDs correspond to the ...
0
votes
4answers
367 views

Detect when a user leaves a MOSS 2007 website (not just navigate to other page in the same SharePoint website)

I need to show a popup message (couple of div tags) when a user tries to do the following: Leaves the current SharePoint site and navigates to an external URL. Closes the browser. I tried using ...
0
votes
3answers
1k views

JavaScript and some CSS not working in sites

I have a master page assigned to sites, subsites and pages. I have a warning (alert box) embedded within the master page. It's working on the home page, but not working on the other ...
0
votes
3answers
1k views

Can you detect permissions on a list via Ajax or SharePoint web services?

The context for this is the SPServices or Imtech (SP)LookupAddNew function that let you add new items to lookups without navigating to the target list. Can we avoid adding the link for users without ...
0
votes
1answer
93 views

Using host file

I created an application in SharePoint, lets call it http://example.com/ and a site collection with the "Empty Site" template. Since I'm using it locally in a virtual machine in host-only mode, I had ...
1
vote
3answers
641 views

Strip publishing master-page for anonymous users

Is it ok to strip a masterpage for all SharePoint scripts and styles? We have custom CSS and all of our scripts are JQuery. Even CQWP will have custom rendering. The reason we want to do this is so ...
1
vote
2answers
529 views

SharePoint Approval Workflow Javascript error

I've been trying to create a simple Approval Workflow in SharePoint (MOSS 2007). After going through the first screen where I type in the name, Task List, History List, startup params, etc. I go on ...
4
votes
2answers
335 views

Dialog Framework References

One of the new features in SP 2010 is the dialog framework, so that the user is presented with a uniform UI. What are the best references or tutorials you've seen about this feature? So far, this is ...
1
vote
2answers
999 views

Content Editor Webpart Javascript Issue

I have recently upgrade our test environment to SP 2010 (using DB detach and attach approach). And also we did not do the Visual Upgrade. We have few CEWP's which is now starting throwing JS script ...
1
vote
2answers
1k views

Security warning for JavaScript and CSS file?

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. And I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net + JavaScript (jQuery). I met with the following ...
1
vote
1answer
2k views

Regex to Parse Script Tags

OK, this isn't really a SharePoint question, per se, but I need some regex help for my jQuery Library for SharePoint Web Services , which is certainly for SharePoint! I need to be able to parse out ...
-1
votes
3answers
1k views

convert asp.net code to WebPart code issue [duplicate]

Possible Duplicate: How to use JavaScript and CSS in a web part? I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am developing using VSTS 2008 + C# + .Net ...
1
vote
1answer
126 views

Embedded JScript in masterpages works in Windows 2003 / fails in 2008

My colleague just reported that he developed a master page with embedded JScript using Windows Server 2003. The same master page fails to execute the JScript when used on a Windows Server 2008 ...
5
votes
3answers
9k views

How to use JavaScript and CSS in a web part?

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am using publishing portal template. I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net. And I want to ...
4
votes
2answers
697 views

ddwrt:EcmaScriptEncode Explained?

Does anyone know exactly what ddwrt:EcmaScriptEncode does? (Which char mappings, etc.?) M.
0
votes
3answers
2k views

Setting display:none for empty web part zones

Does anyone know the JavaScript for setting display:none on an empty web part zone? I remember seeing it once on a publishing site but now can't find it. This is to avoid the padding and spacing a ...
9
votes
10answers
3k views

Has anyone optimized the front-end (css/javascript files) of a SharePoint site

So it seems to be that Sharepoint's front-end optimization is non-existant. For example, http://dfs.us.dell.com/Pages/DFSHomePage.aspx, according to YSlow, is serving up 14 separate JavaScript files, ...