This is precisely what I was talking about regarding the positioning of the newlines. I'd bet that the same could be achieved by replacing your script block with the equivelent number of space characters.
My big concern is that this position may also be effected by other factors such as caching...
Just be grateful you've only spent one entire day on it!!!
Anyway, as an update, this is what I've found out.
The problem is caused by document.write() and document.writeln() statements being executed as the page is being parsed. Don't ask me how exactly. But if I have a bunch of...
If you're only using IE you can do this with a textbox by changing styles to make the borders disappear and by disabling the control to stop the user typing.
This may be possible with Netscape but I haven't tried it myself.
Again, if you are using IE only you can always use an inline DIV tag...
Hi Chaps,
I've searched all my code for strings containing the script tag and split them all to avoid problems. In answer to rycamor's question this is only happening with Netscape 4.x browsers, although I'm nowhere near moving to Netscape 6 yet.
You've both got some interesting points...
Thanks for the latest tips. I've tried splitting the opening script tags and switching to c-style string delimiters and it didn't make any difference.
As far as I'm aware there are no dependencies that could be out of synch, but there's rather a lot of code being used so I'll have to trawl...
Greg
I can't see any reason for this error given the script you've posted. (Just pasted it into an empty HTML page and worked fine)
Are you using frames or opening new windows?
Bill Bruggemeyer
Yep, I'm aware of that one. But, unfortunately, not relevant here. The problem is with the parsing and we haven't executed anything yet (apart from a few document.write()s.)
Thanks for your help anyway Victor. I've now cross-posted to the Netscape forum to see if I can get any answers there...
Hi all
I am using an external .js file to dynamically link several more .js files into an HTML page.
The problem occurs with Netscape 4.x browsers. It seems to work fine in the majority of cases but on some pages the Netscape parser has a problem half way through the main HTML page and throws...
It depends on how you create the layer. If you do this dynamically then you'll need to add
layerObj.onmouseover="hideAll()";
Alternatively just create the layer in your html and make sure it includes the onMouseOver="hideAll()" attribute.
Don't forget to hide this layer...
Unfortunately, there's no way you could do this without compromising the security of the site. The password would need to be encrypted somehow.
Bill Bruggemeyer
Another technique you could try is to have another layer (transparent, full screen-size) underneath your popup menu. You then call the code to hide your menus from the onmouseover event of the bottom layer.
This technique is especially useful if you have sub-menus linked from the main menu...
Hi Steve,
I think the problem is that the document hasn't finished loading in the new window yet. The alert dialog in the parent window will delay things long enough for this to happen.
If you need to pass a value across you could always pass it via the url. i.e.
var url =...
I'm afraid the suggestion made no difference. Having changed the code I get the same problem.
The significant factor regarding the "unterminated string literal" error is that it is caused by something else. If I pad the code before with extra spaces or newlines I can move the location...
Thanks for the response Victor,
Won't be able to try this 'til monday morning (UK time) 'cos it's all at the office. Sounds good though. I'll post the result then.
Bill
Bill Bruggemeyer
"It ain't what you do, it's the way that you do it!"
Hi all
I am using an external .js file to dynamically link several more .js files into an HTML page. This is a great technique for being able to switch code elements without having to edit hundreds of static HTML pages (Can't use server-side!)
The problem occurs with Netscape browsers. It...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.