Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Sep 2005
    Posts
    89
    Thanks
    2
    Thanked 0 Times in 0 Posts

    passing variables into an iframe

    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

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    <iframe src="page.asp?myVariable=<%=request.querystring("myVariable")%>">

  • #3
    New Coder
    Join Date
    Sep 2005
    Posts
    89
    Thanks
    2
    Thanked 0 Times in 0 Posts
    thanks mate - I should have mentioned, i don't have access to the parent file

  • #4
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    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.

  • #5
    New Coder
    Join Date
    Sep 2005
    Posts
    89
    Thanks
    2
    Thanked 0 Times in 0 Posts
    you're probably right. thanks again.

  • #6
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Without having access to parent asp file, it's not possible.
    Sincerly,
    Zeeshan Ahmed
    CEO
    itHighway


  •  

    Posting Permissions

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