Solved

How to redirect php output to another iFrame

Posted on 2006-10-19
3
367 Views
Last Modified: 2006-11-18
Hi everybody,

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

Thanks

-A-
0
Comment
Question by:andy7789
3 Comments
 
LVL 14

Expert Comment

by:Aamir Saeed
Comment Utility
You don't. The iframe should make the request to receive the output.
0
 

Author Comment

by:andy7789
Comment Utility
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
 
LVL 4

Accepted Solution

by:
markdoc earned 500 total points
Comment Utility
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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now