I want to pass a number from page's url and be able to use it multiple times inside ajax loaded content (modal) on top of this page.
Url looks like this:
mysite.com/node/1
Is it possible to access url of the original(referring) page even after more ajax calls? For getting the number from referring url I tried to use
$_SERVER["REQUEST_URI"]
but it works only for first ajax call. Another ajax call made from previous ajax loaded content gets url of ajax content.
Is there any way to store variable and use it multiple times and then delete it when it is not needed?