Jump to content

iframe content


kishan

Recommended Posts

Hi all,

hope this is a simple question but im not getting please help me

 

after some process i will have a data in my iframe like this

 

<iframe id="upload_target_my" name="upload_target_my">

<status id="1">Frame added to the pod.</status>

</iframe>

 

inside iframe there is no head or body tags.

 

how can i get the data b/w"<status></status>" tags

I.E---->'Frame added to the pod'

 

 

Please help me.

 

 

Link to comment
https://forums.phpfreaks.com/topic/134183-iframe-content/
Share on other sites

JavaScript would be your best bet..

http://www.google.co.uk/search?q=controlling+iframes+with+javascript

 

If you mean PHP side, there's no way of communicating with the iframe like the rest of the page as it's another page / script / file. You'd have to pass arguements through the URL like: "iframe.php?act=doThis" .. in order to have some control over it.

 

There may be a work around I'm not aware of..

 

Adam

Link to comment
https://forums.phpfreaks.com/topic/134183-iframe-content/#findComment-698491
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.