Ok, I've made a dynamic html frame definition page, and I have the pages that are displayed in the main window of the frameset check to see if they are being viewed with the frameset or not, and if they are not, to send the user to the dynamic frame definition page with the url they came from as a variable in the url. It works fine, except when the url they came from has a variable in itself.
for example
if they goto the page 'help.html' without the frameset loaded around the page, it redirects them to 'frameset.html?page=help.html' (that works perfect)
but, when they are viewing the page 'script.pl?action=login' without the frameset loaded around the page, it redirects them to 'frameset.html?page=script.pl?action=login'
Because a url can only contain one ? mark to denote variables, this causes everything after the second ? to be discarded. If I can change the ? symbol to an & symbol, I can get it to work perfect. The problem is, I don't know how I would have it filter the ? in a variable to & using javascript. If anyone can help me I'd appreciate it. Thanks alot
-Twenty7
for example
if they goto the page 'help.html' without the frameset loaded around the page, it redirects them to 'frameset.html?page=help.html' (that works perfect)
but, when they are viewing the page 'script.pl?action=login' without the frameset loaded around the page, it redirects them to 'frameset.html?page=script.pl?action=login'
Because a url can only contain one ? mark to denote variables, this causes everything after the second ? to be discarded. If I can change the ? symbol to an & symbol, I can get it to work perfect. The problem is, I don't know how I would have it filter the ? in a variable to & using javascript. If anyone can help me I'd appreciate it. Thanks alot