Web scripting language.
1
vote
1answer
111 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 += ...
4
votes
2answers
93 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
262 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 ...
0
votes
1answer
189 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 ...
0
votes
0answers
72 views
Listen on file upload - AddItemEvent by ECMA Script (Javascript COM)
I need your help concerning this issue:
I want to upload a document to DocLib. Therefore I call the NewItem2 method
NewItem2(event, referenceURL);
Up to here - no problem. Now the issue:
I want ...
2
votes
1answer
187 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
79 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 ...
1
vote
2answers
564 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
101 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
666 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
171 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
96 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
164 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?
...
0
votes
0answers
47 views
How to show the library items based on the lookup of contacts column in another list using ecma script?
I have a document library which contains multiple documents.
and i have a list which contains two columns DocumentName and Contacts.
My scenario is, I want to show the library item which is created ...
1
vote
2answers
688 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
64 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
482 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
104 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
275 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
71 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
125 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
113 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
1answer
244 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 ...
4
votes
0answers
69 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
87 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 ...
2
votes
1answer
532 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
0answers
120 views
Refresh javascript variable in update panel
I want to refresh a values veriable on update panel and if it change the variables schould change it too. How can it do. If Variable =="1" schould see alert, and if variable =="0", the alert in updane ...
0
votes
1answer
84 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
237 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 ...
1
vote
0answers
267 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
1answer
234 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
382 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
1answer
343 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
120 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 ...
0
votes
0answers
157 views
Activating ribbon contextual tabs for web part with JS or ServerSide
I' searching for a way how to activate the ribbon contextual tabs for a particular web part.
For example on a page there are more than 1 web parts and i want to automatically show in the ribbon ...
1
vote
1answer
417 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
180 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
96 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
623 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 = ...
0
votes
0answers
33 views
JSGrid: How to merge two cells in one in a specific row?
How can I merge two cells in one for a specific row in a JSGrid?
Cheers
1
vote
1answer
117 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
220 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"/>
...
0
votes
0answers
61 views
JSGRID: How can I create a fixed row in a JSGrid?
Hello SharePoint experts,
I'd like to know if it's possible to create a fixed row (showing some totals). I can't figure out if/how this can be done... Can you help me on this, please?
Thanks
4
votes
4answers
2k 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 ...
1
vote
3answers
855 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
158 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
159 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 ...
1
vote
2answers
356 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
283 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
67 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 ...

