|
Posted by Anze on 10/19/05 21:22
> I thought that was the problem? Anyway, you could use php to
> selectively alter or remove those parts of the "data" that need to be
> adjusted before output. For instance, you could remove all the
> superfluous tags and their content. As for the css, that's what
> "class" was made for and you could even id certain elements if
> necessary. If this "data" is initially formatted as a complete html
> document, however, (-which I'm still not sure of), I'd probably write-
> out another file (via php) and address that.
OK, it seems I wasn't clear enough. :)
Yes, this is exactly the case - I have data, which is formatted as a
complete HTML document, that I want to display inside a document. I would
hate to write to another file though - there are privacy issues with that.
I could write another PHP that would serve just this content (and use
IFRAME to address it) - but it is a bit complicated for me to do so because
there are lots of checks involved.
Right now I output JavaScript code that prints this document as a popup, but
this is a bit annoying for a user - I would rather have this in a box
inside the current document.
Is there some way I can set IFRAME's contents via JavaScript? I tried using
innerHtml but it doesn't work with FireFox. Is there some other function I
could use?
Kind regards,
Anze
Navigation:
[Reply to this message]
|