View Single Post
  #4 (permalink)  
Old 07-03-2008, 10:32 AM
Terry Van Horne's Avatar
Terry Van Horne Terry Van Horne is offline
WebProWorld Veteran
 
Join Date: Apr 2008
Location: Toronto On., Ca.
Posts: 471
Terry Van Horne RepRank 4Terry Van Horne RepRank 4Terry Van Horne RepRank 4Terry Van Horne RepRank 4
Default Re: iFrame parent querystring

Quote:
Originally Posted by coder View Post
I don't know if this can be done in asp or if I need to figure out a script to do this, but I have an iframe and I need to call the value of the parents querystring.

this is the connection I have, which doesn't call the parents url.

WHERE videoid = "&request.querystring("vid")&"

From what I've found this can only be done using javascript, I have very limited knowledge of javascript and people recommend using

alert(parent.location.search)//querystring
alert(parent.location.href)//full-path url including querystring

So how do I incorporate that with

WHERE videoid = "&request.querystring("vid")&"

to be able to pull the value of vid because the alerts only display the value in alert tags?

Thanks for any advice, i'm completely stumped on this.
You should be able to do that using .asp . I have used Inline frames and frames in the manner you describe. So.. if you wanted a value passed to it then:
<%strName=request.querystring("ItemName")%>

in inline frame
<iframe name="I1" src="page.asp?Param=<%=strName%>">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>

or

<iframe name="I1" src="page.asp?Param="&strName>
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>

To do the redirects

If the flash is a set length then
load the flash page into the iframe with the parametrs you need then in the flash page use a page refresh; set the time to the length of the flash; and for the refresh location pass the param/values as above for the second page. If the legth of the flash varies then.... pass it the time value in the parameters IMO, this should work.
__________________
Follow me on Twitter! On the Trail with SOSG How I became a Social Media Convert and Twitter and Agents of Influence and now regular poster at Cloudmixer where We're Mixing New Media Ideas.

Last edited by Terry Van Horne; 07-03-2008 at 10:40 AM.
Reply With Quote