Web Development

General discussion


Errors on Frame Load w/ JavScrpt Protocl

By cres ·
I'm trying to find out about some errors I keep getting (mostly in MSIE) when I use a JavaScript protocol to load internal documents (variables in the frameset doc) into a frameset's frames.

My "Frame Tag" looks something like:

<FRAME SRC="javascript:parent.self.obj1" NAME="main">

where "obj1" is a variable in the frameset document that has the value of a text string for an HTML document.

The error message I get in MSIE is often something like:

"The page cannot be displayedThe page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

Please try the following: ( ... )"

or else a message in the status bar like "Document: Done, with page errors"

In Netscape, if the page fails to load, the result is often just a blank frame with a gray background.

I'm generally using Navigator 4.76 and MSIE 5.5 on Windows NT.

Have searched online and in O'Reilly's "JavaScript: The Definitive Guide," but can't find anything about this so far. There's a similar kind of project in chapter 2 of O'Reilly's "JavaScript Application Cookbook."

Any help or ideas appreciated.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Errors on Frame Load w/ JavScrpt Protocl

by vinaytalekar In reply to Errors on Frame Load w/ J ...

hi ,

u should specify some source file in the src attribute of the <frame> tag dynamically as
<frame src="javaScript:eval('document.self.obj')">

like what have

pls check the quotes.


Collapse -

Errors on Frame Load w/ JavScrpt Protocl

by cres In reply to Errors on Frame Load w/ J ...

Thanks, vinay, for your answer. I hope to try that out soon.

Related Discussions

Related Forums