Forums
This topic is locked
Redirect to two or more pages!
Posted 13 May 2003 23:40:12
1
has voted
13 May 2003 23:40:12 Walid Mishlawi posted:
Hi there,I have a frameset of 4 frames, how can I load different pages in different frames upon posting a form, or pressing a button. I use DWUD and VBScript.
If I use two lines of redirect only the first one is executed! And if I add a "Go To URL behavior", on submit or onclick, the database update does not take place.
Please help... I am desperate! I really appreciate your help <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Walid
Replies
Replied 14 May 2003 18:35:13
14 May 2003 18:35:13 Matthew Maguire replied:
I know this isn't that helpful, but I would have through that you need a javascript. As soon as an ASP page is told to 'response.redirect' it stops processing anything after that point, hence why you can use it more than once.
The following page should help you.
members.aol.com/tomwitt/start.htm#example-4
If you have problems setting-up the Javascript give me a shout.
Matthew
The following page should help you.
members.aol.com/tomwitt/start.htm#example-4
If you have problems setting-up the Javascript give me a shout.
Matthew
Replied 14 May 2003 18:37:06
14 May 2003 18:37:06 Matthew Maguire replied:
Sorry mishlawi, you will need to use this link, which opens all the frames for the example.
members.aol.com/tomwitt/framemkr.htm
Regards,
Matthew
members.aol.com/tomwitt/framemkr.htm
Regards,
Matthew
Replied 14 May 2003 18:38:58
14 May 2003 18:38:58 Matthew Maguire replied:
Sorry, one final point:
You need to download "start.htm", which contains the javascript.
I'll shut up now.
You need to download "start.htm", which contains the javascript.
I'll shut up now.
Replied 16 May 2003 09:24:06
16 May 2003 09:24:06 Walid Mishlawi replied:
You are a star! That was a fantastic example. However, I had to do some more research in Java because I had a subframe and top.framename.location.href= did not work!
This is what I had found and used:
self.parent.Frame_3.location.href="Admin_Show_Tasks.asp"
self.parent.Frame_4.location.href="Blank.asp"
Thanks again Matthew, your reference really gave me excellend leads and hints.
This is what I had found and used:
self.parent.Frame_3.location.href="Admin_Show_Tasks.asp"
self.parent.Frame_4.location.href="Blank.asp"
Thanks again Matthew, your reference really gave me excellend leads and hints.
Replied 16 May 2003 10:11:51
16 May 2003 10:11:51 Matthew Maguire replied:
Glad to have helped.
Matthw Maguire
Matthw Maguire