|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| 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
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |
|
||||
|
Quote:
<%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. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |