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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    349
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Appending NAME/VALUE pair to an IFRAME call.. HOW? with javascript?

    Hello.

    I have an IFRAME call within a HTML page.

    <IFRAME SRC="http://somefile.php" TITLE="Help" width="570" height="875" marginwidth="0" marginheight="0" border="0" class="iframe" align="left" name="iframe" scrolling="auto" id="help" name="help">

    That call is hardcoded. How do I append a NAME/VALUE pair to it? I need to pass a parameter for the session and I am not sure how to get the var IN the iframe call.

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Posts
    201
    Thanks
    8
    Thanked 1 Time in 1 Post
    <IFRAME SRC="http://somefile.php" width="570" height="875" marginwidth="01" marginheight="0" border="0" class="iframe" align="left" scrolling="auto" id="help" name="NAME HERE">

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    349
    Thanks
    2
    Thanked 0 Times in 0 Posts
    ?? Did you leave out some code?

  • #4
    Regular Coder
    Join Date
    Jul 2004
    Posts
    201
    Thanks
    8
    Thanked 1 Time in 1 Post
    sorry i must have miss understood your request. You want to pass a session id to the page loading in hte iframe ?

    if your useing php why not:

    SRC="http://somefile.php?session=202950222602095220"

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    349
    Thanks
    2
    Thanked 0 Times in 0 Posts
    hmmm.. ok, I am not too clear.

    The session must be extracted from a cookie AFTER the page loads.. so I can't just append to the IFRAME call.

    I don't need the cookie info and such.. I just need the process in which to apply the NAME/VALUE pair to the iframe source call.


  •  

    Posting Permissions

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