Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

querystring that targets a frame's src

Status
Not open for further replies.

rubychyld

Programmer
Mar 22, 2001
76
US
Please help me with targeting frames from a query string...
Thank you, Liz

When my frameset opens, it has a query string that is the file meant for one of the frameset's frames. How do I target a frame from a query string?

the query string that opens the frameset:


the frameset:
<frameset rows=&quot;149,*&quot; cols=&quot;*&quot;>
<frame id=&quot;logo&quot; name=&quot;logo&quot; src=&quot;logo.htm&quot; frameborder=&quot;no&quot;>
<frame id=&quot;report&quot; name=&quot;report2&quot; src=&quot;report.htm&quot; frameborder=&quot;no&quot;>
</frameset>


Catch the vigorous horse of your mind!
 
Can you not just request the querystring in the page that you want it in? If you want it in the bottom frame, then in the bottom page report.htm...just Request.QueryString(&quot;report&quot;).
-Ovatvvon :-Q
 
Yes of course. Request.QueryString(&quot;report&quot;) seems like it could be used as a frame src within a frameset when it first launches. But it is not launching my page.

this is the query string:

this is the page where I am trying to launch Request.QueryString(&quot;report&quot;) as one of the frame url's of the parent frame.

I can't tell what I am doing wrong. Any help would be great!
Thanks. Liz Catch the vigorous horse of your mind!
 
Ah HA! I had to do response.write and write out the whole frameset with asp. and it worked!

I'm so happy!

Response.Write &quot; <frameset rows=&quot;&quot;37,*&quot;&quot; cols=&quot;&quot;*&quot;&quot;> &quot;
Response.Write &quot; <frame id=&quot;&quot;logo&quot;&quot; name=&quot;&quot;logo&quot;&quot; src=&quot;&quot;logo.htm&quot;&quot; frameborder=&quot;&quot;no&quot;&quot; noresize> &quot;
Response.Write &quot; <frame id=&quot;&quot;report&quot;&quot; name=&quot;&quot;report2&quot;&quot; src=&quot;&quot; &quot;
Response.Write Request.QueryString(&quot;report&quot;)
Response.Write &quot; &quot;&quot; frameborder=&quot;&quot;no&quot;&quot;></frameset> &quot; Catch the vigorous horse of your mind!
 
Ah, didn't realize you meant you were writing it in strictly client side...thought you were writing it like that.

Good job findin the problem!

-Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top