This topic is locked

open link in iframe from Edit page

4/2/2009 9:13:02 AM
PHPRunner General questions
S
sikat author

Hi all,
I am trying to have a backoffice page that will split the screen in two (through iframe or table) and on one side to have the edit page so i can update the current information and on the other side to open a outside www link, (extracting the data from the edit page).

Basically the customers leave their www page and i need to update the phone and fax numbers from those pages. OF COURSE i could open two browsers and copy paste the url and paste back and forth the data, but i figured this might save a bit of time.

Spliting the screen and activating the iframe is not the problem. The problem is targeting the iframe with the www value since on the edit page it is "editable" not hypelinked.
Any ideas?

S
sikat author 4/4/2009

Managed to solve this on my own. First problem was to identify the right key so the iframe code i used is:
<iframe height="100%" width="100%" src="<?php echo $data["www"] ?> </iframe>
This caused a header error when i updated the page. to solve that i included <?php ob_start(); ?> and <?php ob_end_flush(); ?> .
Hope this helps someone with a similar problem.