Linked Questions

4 votes
1 answer
6k views

getQueryStringParameter is not defined

I have a SharePoint hosted app and I am trying to pull the SPHostUrl out of the app Url for REST calls. Everything I read tells me to use the below but for some reason I am getting an error '...
CKelly-Cook's user avatar
2 votes
6 answers
6k views

Using html anchor links from top navigation or quick launch - Sharepoint 2013

I suspect this might be possible with a little more knowledge of code, but I'm trying it relatively OoTB at the moment. If scripting is required, I'm more than willing to try it out but I'm somewhat ...
Hannah Ganske's user avatar
1 vote
1 answer
4k views

How get item ID in JSLink on DisplayForm

I'm customizing the DisplayForm of a list, and I want put a button on footer to EditForm, but in the ctx has no edit form url and no CurrentItem.ID. How can I do this?
Carlos's user avatar
  • 319
1 vote
1 answer
8k views

Pass the query string value to NewForm.aspx SharePoint Online/365

i know there is an answer to this in shareponit 2013 and that SharePoint Online/365 should be pretty much the same, however i can't seem to get the following code (not my own, this is taken from a ...
Paul's user avatar
  • 111
0 votes
4 answers
2k views

how to get this error solved? error is saying ...expected identifier in function getdetails

Below Code giving an error called "expected identifier in function getdetails" $( document ).ready(function() { qString = getdetails(); }); function getdetails( { var result = window....
user52650's user avatar
4 votes
2 answers
1k views

Reference SP scripts in html page in app

I am trying to make an html page in an app, and I want to be able to get: SP.Utilities and _spPageContextInfo, which scripts do I need to add to my html in order to make it work? I am in Office 365. ...
David Hemsey's user avatar
6 votes
2 answers
290 views

SharePoint Online - direct from one page to another

I want to be able to go from one page to another in sharepoint, and get the value of the previous page that the user came from. I investigated the method called: SP.Utilities.HttpUtility.navigateTo, ...
Lahm's user avatar
  • 75
1 vote
2 answers
2k views

Unable to get property 'split' of undefined or null reference

var hostWebUrl; var appWebUrl; var appCtxSite; hostWebUrl = decodeURIComponent(manageQueryStringParameter('SPHostUrl')); appWebUrl = decodeURIComponent(manageQueryStringParameter('SPAppWebUrl')); ...
Priy Ranjan's user avatar
2 votes
2 answers
464 views

Is there a way to use JQuery and an URL parameter to change the class of a particular line? [closed]

EDIT: I am not sure why this "may not be SharePoint related" SharePoint Designer lets you place ImageMaps and hot spots natively. This directly applies on how to modify that code via parameters. I ...
Chuck Farley's user avatar
  • 1,159
1 vote
1 answer
606 views

office365- Uncaught TypeError: Cannot read property 'split' of undefined, querystring parameter fails

I created an SharePoint Hosted App in this app I am using Two form for saving data into list. When I click on save button to save data into list data is saved into list and redirect to another page ...
Vipin Kumar's user avatar
0 votes
1 answer
883 views

Site Assets Javascript file will not update

So I have the weirdest problem I have seen in SharePoint yet. So I am trying to practice using javascript and I can't figure out what is wrong with my methodology. For a background, I am trying to ...
Sabien Ambrose's user avatar
0 votes
1 answer
547 views

SharePoint Apps and Promises / Deferred when performing work on data

I have found allot of resources which point out how to handle a simple promise or deferred Async call in SharePoint apps. (for example) But I cant understand how to properly use a promise if I am ...
CKelly-Cook's user avatar
1 vote
1 answer
229 views

Change the text of a page based on link Clicked

we have several pages with same contents the only difference is the author. instead of creating multiple pages for each author in sharepoint can we not change the author and may be very few select ...
Rinu's user avatar
  • 1,453
0 votes
0 answers
376 views

How to get ID from url with javascript? [duplicate]

I have the following url: http://myweb/sites/stonehr/SitePages/VacancyTracking.aspx?PrID=23?Status=34 And I have to get the value of PrID= and Status= with JavaScript, to be able to: alert(PrID); //...
Nderon Hyseni's user avatar
1 vote
1 answer
163 views

geturlvars - regex explanation sought - SharePoint 2013

I'm relatively new to javascript and i am currently working on a project that has previously had a SharePoint contractor involved, person has now left the organisation. He has used some script on an ...
Ian's user avatar
  • 75

15 30 50 per page