Forum Moderators: coopster

Message Too Old, No Replies

refresh php from internal iframe

iframe link loads in iframe not entire page

         

aquamon1

7:51 pm on Oct 9, 2003 (gmt 0)

10+ Year Member



Howdy,
I’ve got a php served page, with 3 iframes displaying images. When images are available they go in the iframe. When an image is not available a text file shows up with links.

The question: how do I get the text link that appears in iframe A, when no image is available, to replace the entire page, and not just place the selected linked page inside iframe A?

Thanks for your wisdom.

OS: linux
PHP v 4.2.3
No error: but links show up inside iframe

Heres the code for iframe A

<td >
<iframe img src="
<?
// displays text if there is no coronal image selected
if ($var!= 'image') echo 'text_withlinks.html';
// displays image
else echo $image;
?>
>
</iframe>
</td>

It's "ok" to have a missing image in iframe A, but i want the user to be able to make a choice based on options within the text for missing images in iframe A. Also perhaps more importantly, the user can choose from buttons next and previous which actually loads new images in iframes A, B, and C. if the user is only interested in image B, then an empty A isn't an issue, so i don't want a reload.
Thank u, thank u very bunch.

jatar_k

5:27 pm on Oct 11, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



hey aquamon1,

I don't really understand what the problem is.

Is it just the test for the image that isn't working?
What do you mean if there is no image available? 404 or the user didn't select one?

aquamon1

1:57 pm on Oct 14, 2003 (gmt 0)

10+ Year Member



i was being obtuse.
i just had to put target="_top" in the <a href >
<a target="_top" href="path" > in the url the iframe called

i was complicating things thinking i would need some iframe php "this" type stuff, it was all basic html.

this is what happens when one doesn't drink coffee.

Thanks for your efforts
-enki