You need to sign in to do that
Don't have an account?
A Wannabe
JavaScript/JQuery for reading request parameters during VisualForce navigation
I have two VF pages and Page 1 has some data which I want in Page 2, is it possible to get this data using JavaScript/JQuery? The constraint here is that the hyperlink to navigate to Page 2 is in a VisualForce template which has its own controller separate from those of both the Pages which use this template.
If your pages do not share the same controller, have you considered passing the values through the URL?
You can easily retrieve query string parameters with:
ApexPages.currentPage().getParameters()
The following example shows how to use a PageReference object to retrieve a query string parameter in the current page URL.
You would call this page with such link:
https://mydomain.force.com/apex/MyPage?param1=someValue