URL Strings in Frames

Results 1 to 2 of 2

Thread: URL Strings in Frames

  1. #1
    Join Date
    Dec 1969

    Default URL Strings in Frames

    Hi<BR><BR>I have a link that carries over a variable to a frameset, eg:<BR><BR>&#060;a href="frameset.asp?id=4"&#062;click&#060;/a&#062;<BR><BR>The frameset has two frames called TopFrame and BottomFrame. How do I read the variable from the page in TopFrame once the frameset is loaded?<BR><BR>Thanks in advance.

  2. #2
    Join Date
    Dec 1969

    Default RE: URL Strings in Frames

    Pass it down.<BR><BR>In your frameset page, have this:<BR><BR>&#060;frame src="frame1.asp?id=&#060;%=Request.QueryString("id ")%&#062;"&#062;<BR>&#060;frame src="frame2.asp?id=&#060;%=Request.QueryString("id ")%&#062;"&#062;<BR><BR>You CAN get it out using JavaScript (or any client-side scripting), but you CANNOT get it out using any server-side scripting unless you pass the parameters down to the individual frames. For an explanation, check the ASPFAQs, in the "Nature of Things" category - the web server has no knowledge of any frameset hierachy, so couldn&#039;t grab any data it held.<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts