Tagged Questions

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)

4
votes
4answers
10k views

“the HTML source you entered might have been modified”

"the HTML source you entered might have been modified" In SharePoint 2010, this is the scary message you get everytime you use the "edit HTML source" button with the Content Editor Web Part. In ...
3
votes
4answers
4k views

jQuery and SharePoint 2010 - How can I tell is the page is in edit mode, using javascript?

I have some javascript in a CEWP that I want to execute only when the page is in display mode. I've used firebug to scour the page for some "msEditMode" type of variable or something I can rely on. ...
1
vote
1answer
142 views

Can 'jQuery' & 'Javascript' coexist? [closed]

I am planning to use 'jQuery' for my WSS 3.0 Site. I am using 'Javascript' also on it. Will I face any conflicts? Thnks --saumil
0
votes
1answer
516 views

IE Never finishes loading SharePoint page when JavaScript is disabled

I am working on a solution that loads SharePoint pages in a copy of IE. When the page finishes loading an event is triggered that executes some code in the application that wraps IE. Now this all ...
1
vote
1answer
346 views

JavaScript removed in SharePoint Publishing Page during edit

I was working on a migration of an existing site to SharePoint and when pasting the source code of the pages to the SharePoint RichText fields in the edit mode of the page, I tried to copy the HTML ...
2
votes
0answers
406 views

How do I get the full folder path of a selected list via the Ribbon and Client Side Script? [closed]

What I want to achieve is something similar to this OOB method: SP.ListOperation.Selection.getSelectedList() But this method only returns the GUID of the selected list. I would like to get the ...
0
votes
3answers
2k views

Check whether user is administrator in a Sharepoint page using JavaScript or jQuery?

I am developing a webpart for SharePoint in Visual Studio 2005. I am making use of a user control in this project. Now, I have to obtain the currently logged in user using JavaScript and check whether ...
0
votes
2answers
2k views

how to add script to page

I am trying to add this script (Marc Anderson's blog) to AllItems.aspx. Please guide me where it needs to go and what needs to be done to make it work. Thank you. <script language="javascript" ...
0
votes
3answers
420 views

Sharepoint webservices using Javascript

I use a jquery dialog box to ask the user a daily question. I have a question and answer list which contains the information to load into the dialog box. I do not want the user to view or edit ...
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
369 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
538 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
1k 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
10k 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
720 views

ddwrt:EcmaScriptEncode Explained?

Does anyone know exactly what ddwrt:EcmaScriptEncode does? (Which char mappings, etc.?) M.
0
votes
3answers
3k 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 ...
10
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, ...