View Full Version : Appending NAME/VALUE pair to an IFRAME call.. HOW? with javascript?

08-29-2006, 12:51 AM

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.

08-29-2006, 12:59 AM
<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">

08-29-2006, 01:10 AM
?? Did you leave out some code?

08-29-2006, 01:33 AM
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:


08-29-2006, 02:25 AM
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.