Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:

I've got an app in sharepoint 2013, which is showing up inside of an iframe. I'd like to have links to the page that has the app embedded elsewhere, and pass data to my app through those links. Sounds like a job for query strings, right?

However, I can't find a way to get the query string in my app. None of the tokens I tried inserting had it, and I couldn't get it from within javascript because the url for my iframe and for sharepoint are different. Any ideas?

share|improve this question

1 Answer 1

if your app is within the SP page use

document.referrer 

to get the full URL including query

share|improve this answer
    
That doesn't work because SP uses a redirect to end up on the app. So the referrer is a nonsense redirect.aspx page. I ended up having to change the domain for my app to be a subdomain of the main SharePoint site. – Colin DeClue May 7 '13 at 13:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.