Forum Moderators: open
PAGE 1:
<script>navnext = 1</script>
<script>navlen = 7</script>PAGE2:
how can i pull the PAGE1 variable values?
i saw a old post in this forum, but it is about pulling variables from a child frame to a parent frame... that didnt work for two different pages...
note1: also my two pages are in the same domain.
note2: i know that the PASSING method using SUBMIT button works well in this cases, but the thing is that i wont pass the variable... i want to pull the variable...
only using javascript or DOM, no dinamic php either asp...
i tried to changing the context of the page like
<base href='http://mypage.domain/' target='_self'> with no results, also i need to call the same pair of variable of too many pages from the same page... any javascrip or DOM idea?
thannks members
to be honest i will consider recaltulate the variable values from the calling page instead of trying to call remote values...
thanks
1- load the pages by iframes and then get the variable values (slown loading time)
2- create a template wich recalculate the variable values and pull it by a .js include, (daily upload)
3- recalculate the variable values inside the pulling page (hard to coding), no daily updates, once published is fast loading
thanks for the advising
The window.name property is sometimes used to get around this limitation and can be effective if the variable(s) need not persist outside a single session.
i think the solution is:
1- Put a simple link in the calling page, and in the link page put a javascript wich look if its page is called from certain page and then if yes, redirect to the proper URL, and if not, let it load.
i mean like that:
PSEUDOCODE:
<SCRIPT> NO WORKING
if (document.referrer = "http://store.crafta.com/specials-by-department.html")
location.href = "?pageNum=5";
</SCRIPT>
thanks everybody