Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Layers and Iframe 1

Status
Not open for further replies.

BiggieFries

Programmer
Dec 14, 2000
5
CA
howdy,
I have made a page that uses an iframe window on the page.
I use this with forms and i target the result to this Iframe. I would love to know how to do this in Netscape.
I tried posting to an Ilayer, but no go.

Anyone done anything like this - i'll take anything that will trigger a solution.

Thanks in advance,
BF
 
Use frames or layers. Iframes are not cross-browser compatible as far as I know. Or, if you are displaying just text, use a textarea.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
the problem i am encountering is this:
i use a iframe to post and return results. So any actoin that happens on the parent has the results shown inside the iframe.
so far, i can not post to layers.
there's got to be a way to do this.

tks,
bf
 
Create a zero-width frame to one side of your screen, and display the form results there. Then, with JavaScript, in your primary frame, set document.resultLayer.innerHTML=parent.invisibleFrame.document.body.innerHTML where invisibleFrame is your zero-width frame and resultLayer is the layer you want the results to be posted to.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
what is the netscape's equivalent for the innerHTML property ??
 
there isn't one, until 6.0. 6.0, however, has manyw onderful functions for using the DOM, including innerHTML. jared@aauser.com
 
ok so i'll wait until everybody has nn6+ or ie4+ ! tom do you know the proportion of nn6 browsers right now ?
 
Sorry, forgot to include NS compatibility.

Use document.resultLayer.src=parent.invisibleFrame.src or something along those lines.

Don't ever wait for a significant group of people to get NS6. The proportion of NS users in general is shrinking. Those who upgrade from NS4 tend to go directly to IE unless they are forced by their MIS dept to use NS. Simply test for W3C compatibility (if document.all or equivalent), then the NS6+ browsers should start being compatible with your IE code. Personally, I will continue supporting NS4 until less than 5% of the population is using it. I will never adopt any NS6+ proprietary DOM. They are trying to adopt the IE (or W3C) standards, so it should evolve into almost the same DOM as IE, in which case you won't have to worry about compatibility.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
please let us know when we reach the "less than 5% of the population using the other browser" !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top