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)

0
votes
0answers
125 views

Update WebPart MenuItem/Verb from Client Side

Here is the scenario - I have a custom webpart where I added one custom menuitem with client side handler, now my requirement is when I click on the menuitem some text should be shown, for example ...
2
votes
1answer
2k views

Calling Upload Dialog with javascript, can I pass value through to the edit form that follows?

I have a button that opens the upload dialog from a page using the below approach: function openUploadNewDocumentDialog(passingID) { var dialogOptions = SP.UI.$create_DialogOptions(); ...
1
vote
2answers
547 views

js/jquery doesn't work on site's upload.aspx?

is that right? If I go to a library in the designer, i can see upload.aspx there. Can't create a new one (and i guess that is because there is really only one per site, or collection?). Anyway, I can ...
1
vote
1answer
215 views

Google Map Visual WebPart

Some that has an guide on have to create an Visual WebPart using Google Maps for an list.... protected override void Render(HtmlTextWriter writer) { string rScript = ""; rScript += ...
2
votes
2answers
211 views

Is it possible to Fire event when Content type added in Shared Documents in sharepoint 2010?

How to fire event when any content type added in shared document library ? How to handle this event ?
3
votes
2answers
542 views

calling click event on dynamic controls

What I have is fairly standard code for using JavaScript with SharePoint 2013. Inside the sharePointReady function, I have a few dynamic controls that are added to the page. The problem is that when ...
1
vote
1answer
694 views

How to deploy custom context menu item?

I made a custom SharePoint application page and now I want to open it from edit control block (item context menu). My XML won't compile because it is telling me that I have illegal characters in the ...
2
votes
1answer
202 views

Why Isn't the Client Object Model as Vulnerable as I Think?

I can use any sort of console in Firebug, Developer Tools, etc. to access any Javascript included in a page and make calls to Javascript functions without a problem. If, on a SharePoint page, I use ...
2
votes
1answer
202 views

How can I fit a Datatable only into a webpart (not page) dynamically?

I develop a Webpart, which should be deployed in other SP-Farms. The Webpart contains a DataTable. I deployed the solution and the DataTable appears in the right side of the Website. I'm using a ...
3
votes
2answers
2k views

form validation

I am new in javascript. I want to validating a form with five columns. FormDescription My Form Contain 5 input fields and one submit buttom I want following output 1.Initially submit button ...
0
votes
2answers
344 views

COM: javascript/jquery method for creating a xml data file from SharePoint list data (multiple)

Does anyone know how I can pull off creating an xml data file from data in multiple lists using SPServices/Javascript/jQuery? I can certainly bring all the data I need out to a page and load into DOM ...
1
vote
2answers
4k views

SHarepoint 2010 - popup an image for 5 second after i open my site

How i can popup an image that display for 5 second as slogan/announcement after opening my sharepoint site welcome page As Example: http://www.lebanese-forces.com regards, Hass
1
vote
0answers
350 views

_spBodyOnLoadFunctionNames.push Not working in firefox

I tried this in firefox i dont know why its not working but it working in other browsers function loadmonth() { alert('called'); } _spBodyOnLoadFunctionNames.push("loadmonth");
0
votes
1answer
265 views

Why does javascript on the page stop the drop down menu working?

I have just inserted a javascript world clock via a text doc and a CEWP. However now that this is functional on my page I cannot see my drop downs from the top nav bar. It was working fine before I ...
1
vote
2answers
518 views

Sharepoint mechanism to add scripts to aspx page?

(a) Is there a mechanism (by sharepoint) of registering to include a script into the aspx page? (b) If yes, then if I do the following from a user control what would be the result? ...
1
vote
1answer
2k views

How to get files count from particular library?

I'm using Sharepoint 2007 and unfortunately don't have any ways to server site scripting, no C# or PowerShell. Is there any way to get total number of files in a given Library using SPServices ? It ...
1
vote
1answer
95 views

JavaScript wont show when non-admin log in but Administrator can

i added JavaScript to default.master in "http://localhost/_catalogs/masterpage/" via SPD 2007.the reason was for showing Date in every pages.i put this script on top page.find "showdate()". <table ...
0
votes
1answer
5k views

How to read URL/Description from a Hyperlink field using CSOM

Using CSOM (JavaScript) how do you get the URL and description fields from a Hyperlink field?
1
vote
1answer
160 views

Document download keeps restarting automatically

The problem: I want to open an excel document automatically from a custom aspx page in the layouts folder (sharepoint 2010) which refers to a document in a document library. The "DocumentUrl" is ...
0
votes
1answer
1k views

Upload a document in a specific folder

I would like to set a specific folder when I open the upload.aspx page to help. I tryed to look in the dll but the license of reflector is expired. UPDATED Maybe this post can help ...
0
votes
1answer
140 views

JavaScript array in SharePoint different in length from html?

Apologies for deliberately cross-posting, but I have an issue where a JavaScript array in SharePoint is showing a different length from HTML (and an incorrect one!) SO Question Updated original to ...
2
votes
2answers
218 views

Counting listitems multiple times with javascript

I'm using JS to get the number of (filtered) listitems to show on a dashboard. My functions work well when I call them once but I need to call them multiple times. Only the last call is processed. ...
2
votes
1answer
217 views

Open MultiUpload modal form

Could you please tell me how to open a MultiUpload modal form, without using or displaying the single upload form? <script language="javascript" type="text/javascript"> $(function () { ...
2
votes
2answers
835 views

Site collection relative url in XSLT search or by JavaScript

I have the following question: I'm modifying the XSLT of the search, so it is represented differently etc etc .. in this occasion I also need to get a relative site collection url. In managed ...
9
votes
1answer
268 views

Passing args to QuickLinksDialog with JS

I have a small button on a site which when i press should start a QuickLinksDialog and fill in some of the fields there. Everything goes good and well except the fields (like: title and url) still ...
5
votes
1answer
172 views

Check if web is in pagepreview mode - ?pagepreview=true

How can I check if a page is in ?pagepreview=true mode? I've branded the sharepoint ribbon and need to check if a page is in pagepreview to get the site branded correct (js / css). Is there a way to ...
4
votes
1answer
3k views

JS Web Worker and SP.JS - Type is not defined

I'm experimenting with using CSOM and Web Workers as many of my users use Chrome and FireFox. Currently I am importing SP.js and SP.Core.js importScripts("../SP.js", "../SP.Core.js"); What other ...
0
votes
1answer
154 views

how to load custom menu last

I have a share point site i noticed the menu loads slow.its a customized menu based on a list and jquery.I load the script on my masterpages I would prefer this menu to load last after all the other ...
0
votes
1answer
544 views

Add Custom Javascript to Quick Launch? +Skype Button

I'm looking to add a Skype Button which shows a Users Skype Status in the Quick Launch in Sharepoint 2010. I can successfully add this Control to a Content Editor Web Part as I have easy access to ...
2
votes
0answers
632 views

Programatically creating Discussion List Posts - and replying to them from Outlook

We are Programatically creating a Discussion List Post/Topic (using JavaScript) based on an entry in a custom list. The idea is to synchronize this Discussion List with Outlook. That does happen ...
3
votes
4answers
2k views

Get UI language name in javascript

I need to get the name of the current UI language in a javascript file. I know the following trick: SP.Res.lcid But that gets the the LCID. What I really need is the two-letter iso name (like 'en', ...
0
votes
1answer
1k views

Select a ribbon tab Ribbon.read with a button

My question is simple: How do I select a ribbon.read with javascript? For example i have a different tab selected but clicking on the button i would like to select Ribbon.read ... any adivces? ...
1
vote
2answers
1k views

(Sandbox solution) Ensure my javascript file is loaded after core.js

Using a CustomAction in the location of a scriptlink, I'm inserting a javascript code, however I need this code to run after core.js runs. Does anyone know how I can achieve this? My CustomAction ...
0
votes
1answer
306 views

Deploying SharePoint files (css, javascript) onto different platforms without SharePoint Designer

I need to deploy to "_catalogs/masterpage/" and "Style Library/" multiple jpg, css, javascript files These files originate from a developer platform and are to be deployed to multiple platforms ...
1
vote
1answer
2k views

Insert html in formula field of a calculated column in sharepoint 2007 using javascript [duplicate]

Possible Duplicate: how to show HTML code in column? Is it possible to insert html/code in the formula field of a calculated column in sharepoint 2007 using javascript?
1
vote
2answers
796 views

Get id's of tags that are in a web part in Javascript

Ok, I have a page that that has a DataFormWebPart that basically displays the info from a document library. Now what I want to do is, using jquery, display or hide a section in the web part. I can do ...
1
vote
1answer
196 views

Inserting ordered or unordered lists in custom rich text editor breaks the dom

I have a div that is part of a custom web part. Once a user clicks an edit-button I want the div to turn into a rich text field to allow the user to edit the contents as they would edit any rich text ...
1
vote
3answers
5k views

How to get Item name and extension from itemID and listID in javascript client object model

in my custom page i receive two parameters - a list ID of a list and an Item ID of an item inside said list. So i write this: function getfileName() { var clientContext = ...
1
vote
1answer
544 views

How to get a full name from a User Lookup Field using ECMA CSOM

How do you get a user's full name using the ECMAScript (JavaScript) CSOM?
0
votes
1answer
639 views

Set defaul value for DVWP parameters programmatically

Good day I need to set default value for ParameterBinding of DVWP as follows: <ParameterBinding Name="StartDate" Location="Postback;Connection;" DefaultValue="2012-07-01T00:00:00Z"/> ...
4
votes
4answers
7k views

Multiple Values in CAML query from Array? SharePoint 2010 using jQuery/SPServices

So if I use SPServices to GetListItems with CAMLQuery, is it possible to insert multiple values inside Value Type='Number'> here I would like to evaluate things throught a flow in my page, add to an ...
8
votes
3answers
8k views

How to Use ECMA CSOM to Set a Field of Type SPFieldUserValue

I have a JavaScript array containing the string representation of some usernames (domain\username format). Using the JavaScript CSOM, what is the best way to create a new item and add those usernames ...
0
votes
3answers
485 views

Overriding complicated javascript function

I have a some default SharePoint complicated javascript function and I'm not sure how to override it, replace it. In gerenal i know how to replace the functions, so that your implementation is called ...
0
votes
0answers
273 views

injected javascript code in a basic webpart

I have a working solution according to below, but I want a dynamic link which is created in Createchildcontrols and included as an arguement in the function newitem but I get an JavaScript error on ...
2
votes
3answers
3k views

JS files returning Cached (Old) Versions Despite Update

We are currently in the wild throes of a migration from SP 2007 to SP 2010. I'm attempting to move some custom JavaScript Validation from the current production site to our staging site. My ...
0
votes
2answers
521 views

Reference InfoPath field in edit.aspx InfoPath web part

I have a colleague I'm trying to help. He has a list on a SharePoint site. He modified said list's web part with InfoPath. Upon creating a new item, the item is saved as well as emailed to a 3rd party ...
0
votes
0answers
88 views

SharePoint 2010 Motools JavaScript incompatibility

I created a JavaScript Slideshow base on Slideshow2 using Mootools. It works great stand-alone. I decided to incorporate it into my SharePoint 2010 Master Page and at first glance it was working ...
1
vote
4answers
7k views

How to use javascript client object model in sharepoint designer?

I have to fetch data using javascript client object model and for that i have to use Sharepoint Designer 2010 only i have searched on google and there i got solution only by adding code in visual web ...
2
votes
1answer
2k views

Rich text editor fails when pasting in IE 8 and 9 error 800a025e

We have a solution with a lot of customization. At some point something was added that breaks the rich text editor because now I cannot paste from clipboard using either Ctrl+V or the "Paste" ribbon ...
1
vote
1answer
129 views

Web Part JS ToggleMe not running

I want to add toggled visible / invisible divs to a SharePoint wiki page, and put the function for the toggling in a web part. My toggling script works fine testing outside of SharePoint, but inside ...