iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2008, 10:47 AM
WebProWorld Veteran
 
Join Date: Jul 2004
Location: Ohio
Posts: 454
coder RepRank 0
Question iFrame parent querystring

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.
__________________
-Matt
Fireworks | Softbills | Halloween
Reply With Quote
  #2 (permalink)  
Old 07-02-2008, 07:00 PM
WebProWorld Member
 
Join Date: Sep 2003
Location: San Antonio, Texas
Posts: 47
theoart RepRank 1
Default Re: iFrame parent querystring

Your iframe can look something like this:

<iframe src="/mylink.asp?<%=request.ServerVariables("QUERY_STRIN G")%>" scrolling="Default" ></iframe>

This will give your iframe the same querystring as your parent page.

In asp, on your iframe page then just grab the variables you need from the querystring.
__________________
J. "theo" Theopistos

FinerWorks.com
http://finerworks.com
Reply With Quote
  #3 (permalink)  
Old 07-03-2008, 09:10 AM
WebProWorld Veteran
 
Join Date: Jul 2004
Location: Ohio
Posts: 454
coder RepRank 0
Default Re: iFrame parent querystring

theoart, thanks for the suggestion.

I would of loved to do it that way, however the iframe actually goes 2 pages deep before I need to pull the parents querystring.

Basically first it loads an iframe with an intro flash animation and at the end of the animation it then redirects to the page. I suppose I could pass the variable into flash and then export it out to the next page.

But it seems simpler to just pull the parents querystring if at all possible.
__________________
-Matt
Fireworks | Softbills | Halloween
Reply With Quote
  #4 (permalink)  
Old 07-03-2008, 10:32 AM
Terry Van Horne's Avatar
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
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code for reading querystring in hyperlink Milo Web Programming Discussion Forum 0 08-15-2006 07:03 PM
Experian Parent Buys PriceGrabber WPW_Feedbot Search Engine Optimization Forum 0 12-14-2005 12:30 PM
Isobar Parent Aegis Gets New CEO WPW_Feedbot Marketing Strategies Discussion Forum 0 02-07-2005 06:30 PM
Christmas coup at SCO parent WPW_Feedbot IT Discussion Forum 0 12-24-2004 11:01 PM
Single Parent, Step-Parent and Family Health Links Exchanged pgmradio Marketing Strategies Discussion Forum 0 04-27-2004 06:08 PM


All times are GMT -4. The time now is 08:55 PM.



Search Engine Optimization by vBSEO 3.3.0