Jump to content

load html/php file?


phorcon3

Recommended Posts

alright ...so, i created a popup window.. and what ive done is the following

 

php file (http://www.domain.com/example.php):

<a href="javascript:void(0);" onClick="cp('div_id');">popup</a>

 

and my js file creates a div within my php file... and within that div tag i have an iframe ..which is connected to http://www.domain.com/popup/popup_win.php

 

but the problem is... i have a cancel button in this popup_win.php file ...but i cannot close the popup window, because its in the iframe ..and not the example.php file... so when i click this button it just gives back an error..

 

is there any other way to close an iframe which is opened within another file?

 

or could i load an external html/page file?

 

and have a js script, such as

 

document.getElementById('div_id').innerHTML = and here load the external file somehow?

 

any ideas? i hope this makes sense...

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.