How to redirect php output to another iFrame

Hi everybody,

How can I redirect php output (echo or print) to another iFrame? Very short question...

Thanks

-A-
andy7789Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
markdocConnect With a Mentor Commented:
hi andy,

it seems you indeed have a javascript problem. you can use the following code in your javascript:

// . . .
window.frames["iframe_name"].document.getElemetById("the_child_window_span").innerHTML = "Sample PHP text";
// . . .

it would help though to know the exact nature of your page so i can be able to help you more.
0
 
Aamir SaeedCommented:
You don't. The iframe should make the request to receive the output.
0
 
andy7789Author Commented:
No, it is possible to do this and one the ways is as follows:
1) you create a span in the target iFrame
2) create needed text strings with php
3) echo the jscript reference to the span as jscript function

The only thing I am missing is how to reference a content of the span with jscript and trigger the written jscript function. Maybe someone could help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.