...

View Full Version : passing variables into an iframe



fogofogo
02-14-2007, 03:23 PM
Hello all,

I'm not sure if this is even possible, but i'm trying to pass some variables, that have been taken from the parent page's querystring, and pass the variables into an iframe that has loaded into the parent page.

Is this possible?

Thanks

Spudhead
02-14-2007, 03:44 PM
<iframe src="page.asp?myVariable=<%=request.querystring("myVariable")%>">

fogofogo
02-14-2007, 04:07 PM
thanks mate - I should have mentioned, i don't have access to the parent file :confused:

Spudhead
02-14-2007, 04:17 PM
Then I'm pretty sure you can't, sorry. Not with ASP, anyhow. You might be able to with client-side JS but if you're wanting to do server-side processing on your iFrame page you need access to the parent. I think.

fogofogo
02-14-2007, 04:40 PM
you're probably right. thanks again.

itHighway
02-14-2007, 11:36 PM
Without having access to parent asp file, it's not possible.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum