Jump to content

passing variables to a iframe


xagutxu

Recommended Posts

Hello:

 

I have bought a code for a chat script, and I have some problems making the changes I need. One of them is that I have to pass some variables to an iframe. The iframe is created by javascript, when an icon is clicked:

 

document.getElementById('xxx').innerHTML='<iframe src="phpscript.php" scrolling="no" frameborder="0" style="margin:0px;padding:0px;width:400px;height:260px;border-width:0px;overflow:hidden"></iframe>';

 

I would like to know whether the variables can be passed using the url (via GET) or not. In case I cannot, which other method can I use to pass variables to an iframe? Or, maybe, is better using global variables...?

 

Thank you,

 

Xagutxu

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.