Forums
This topic is locked
FRAMES?
Posted 29 Aug 2001 11:31:44
1
has voted
29 Aug 2001 11:31:44 Andrew Watson posted:
i have a detail page which is a frameset, one of the pages contained in this has a value set from the Request page. This value is not coming through to the detail page. It only works (as it should) when the detail page is not in a frameset? Anyone know what i can try????Cheers
Andrew
Replies
Replied 29 Aug 2001 13:31:27
29 Aug 2001 13:31:27 Joel Martinez replied:
Are you making sure to have the correct target name in either the link, or the form target?
make sure links look something like this
<a href="somepage.asp" <b>target="detailFrame"</b>>detail</a>
and the form tag looks something like this
<form name="form1" action="get" <b>target="detailFrame"</b>>
if that's not working... maybe you shouldn't use frames... I avoid frames like the plague.
but that's just me <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
Joel Martinez [ ]
----------
set rs = conn.execute("SELECT answer FROM brain WHERE question = "& forumPost &"
'2nd place is just 1st Loser
make sure links look something like this
<a href="somepage.asp" <b>target="detailFrame"</b>>detail</a>
and the form tag looks something like this
<form name="form1" action="get" <b>target="detailFrame"</b>>
if that's not working... maybe you shouldn't use frames... I avoid frames like the plague.
but that's just me <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
Joel Martinez [ ]
----------
set rs = conn.execute("SELECT answer FROM brain WHERE question = "& forumPost &"
'2nd place is just 1st Loser
Replied 29 Aug 2001 14:02:33
29 Aug 2001 14:02:33 Andrew Watson replied:
Thank you very much Joel, if you can be bothered to read this ill explain a liitle clearer....
page1.asp has in it simply a recordset from a db table. Displayed using the repeat region. When i click on one of these records i want to display page2.asp passing through the URL parameter specified. I have done this using the simple go to detail page SB.
A text field on page2.asp should be set to this passed parameter when it is opened.
Without frames the request.querystring works easy peasy, BUT!!!! page2.asp is a frameset made up of two pages, both of which require this parameter.
Would i be right in saying that the request variable is only visible to the frameset that is page2.asp????
Any ideas?????
The reason im using those blasted frames is that im building a small pure ASP instant messaging system, in which the refresh can only feasibly be applied to one frame.????
If you can help (AGAIN) im very grateful as this is doing my box in.
<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
page1.asp has in it simply a recordset from a db table. Displayed using the repeat region. When i click on one of these records i want to display page2.asp passing through the URL parameter specified. I have done this using the simple go to detail page SB.
A text field on page2.asp should be set to this passed parameter when it is opened.
Without frames the request.querystring works easy peasy, BUT!!!! page2.asp is a frameset made up of two pages, both of which require this parameter.
Would i be right in saying that the request variable is only visible to the frameset that is page2.asp????
Any ideas?????
The reason im using those blasted frames is that im building a small pure ASP instant messaging system, in which the refresh can only feasibly be applied to one frame.????
If you can help (AGAIN) im very grateful as this is doing my box in.
<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
Replied 29 Aug 2001 14:20:02
29 Aug 2001 14:20:02 Joel Martinez replied:
ok, I think I understand better... Page2 is frameset, which contains two more pages...
ok, I think you can do this... (keep in mind that I don't remember the frames syntax off hand, so if it's wrong, consider it pseudo code)<pre id=code><font face=courier size=2 id=code>the Frame Page
URL would be <b>framepage.asp?userid=116</b>
---------------
<frameset>
<frame src="<b>topbar.asp?name=<%=request.querystring("userid"%></b>">
<frame src="<b>bottombar.asp?name=<%=request.querystring("userid"%></b>">
</frameset></font id=code></pre id=code>Notice how the querystring get's passed to the other pages...
hope that works
Joel Martinez [ ]
----------
set rs = conn.execute("SELECT answer FROM brain WHERE question = "& forumPost &"
'2nd place is just 1st Loser
ok, I think you can do this... (keep in mind that I don't remember the frames syntax off hand, so if it's wrong, consider it pseudo code)<pre id=code><font face=courier size=2 id=code>the Frame Page
URL would be <b>framepage.asp?userid=116</b>
---------------
<frameset>
<frame src="<b>topbar.asp?name=<%=request.querystring("userid"%></b>">
<frame src="<b>bottombar.asp?name=<%=request.querystring("userid"%></b>">
</frameset></font id=code></pre id=code>Notice how the querystring get's passed to the other pages...
hope that works
Joel Martinez [ ]
----------
set rs = conn.execute("SELECT answer FROM brain WHERE question = "& forumPost &"
'2nd place is just 1st Loser
Replied 29 Aug 2001 15:14:47
29 Aug 2001 15:14:47 Andrew Watson replied:
This certainly looks like its heading the right way, however the passed Parameter will be used to set the value of a text field on a form as opposed to filtering a recordset.
Ive applied your help and when i look at the properties of the document within the framset in a browser the URL has the correct information appended to it, so the request.querystring parameter is being picked up by the Page! (Progress), But i cant get this value into a text field on that page.
I replaced NAME in your code to reflect my textfield name.
Im getting closer to this one with your help <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
Can i post any code which may help????
Thanks Joel
Andrew
Ive applied your help and when i look at the properties of the document within the framset in a browser the URL has the correct information appended to it, so the request.querystring parameter is being picked up by the Page! (Progress), But i cant get this value into a text field on that page.
I replaced NAME in your code to reflect my textfield name.
Im getting closer to this one with your help <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
Can i post any code which may help????
Thanks Joel
Andrew
Replied 29 Aug 2001 15:17:34
29 Aug 2001 15:17:34 Andrew Watson replied:
<font size=4><font color=red>GOT IT JOEL MANY MANY THANKS</font id=size4></font id=red><img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 29 Aug 2001 17:28:59
29 Aug 2001 17:28:59 Joel Martinez replied:
Glad to hear that!!! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Joel Martinez [ ]
----------
set rs = conn.execute("SELECT answer FROM brain WHERE question = "& forumPost &"
'2nd place is just 1st Loser
Joel Martinez [ ]
----------
set rs = conn.execute("SELECT answer FROM brain WHERE question = "& forumPost &"
'2nd place is just 1st Loser