|
Posted by Neredbojias on 10/20/05 00:58
With neither quill nor qualm, Anze quothed:
> > 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?
Yes. You could try "nodeValue" but you'll have to research it via the
w3c or et al because I'm not all that familiar with it. However, inner
HTML usually works fine in ff, but maybe crossing the iframe "boundary"
is a prob.
--
Neredbojias
Contrary to popular belief, it is believable.
[Back to original message]
|