Closed Thread Icon

Preserved Topic: JS generated JS in a Frame.. Really odd error?? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18042" title="Pages that link to Preserved Topic: JS generated JS in a Frame.. Really odd error?? (Page 1 of 1)" rel="nofollow" >Preserved Topic: JS generated JS in a Frame.. Really odd error?? <span class="small">(Page 1 of 1)</span>\

 
Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 07-28-2001 17:14

Ok, I have a script (Javascript) that writes HTML to a frame using:

top.frameName.document.write (" HTML Here " );

which works fine and all except if I want to write another Script within this frame/generated page.

Well, all works fine for Mozilla & IE but in Netscape 4.x it ommits [b]any[/a] <script></script> tags and anything contained within??

I've checked, double checked and triple checked the syntax, quotes and I've broken the end </script> tag like so:

....document.write ( "</scr"
+ "ipt>" );

so the script won't terminate before it complets but????

Like I said, It all works fine in IE and Mozilla but in NS 4 it just seems to rip out all my script tags, everything else is there but no script tags ?? It's not even throwing errors

odd

however, if I'm generating code with JS on the same page this doesn't happen, it all works fine in all browsers....

very odd

anyone know of any way to get around this? anyone ever come accross this before?

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 07-30-2001 10:41

I would really like to help...But can you plz get me code. And make me a comment where the problem is.

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 07-30-2001 14:38

Arr. ok.. shit.. I'm flat out busy right now.. I'll post the code in a day or two....

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 07-30-2001 15:19

Yeah, it always helps to see the code. Are you escaping things correctly?

"It takes months to find a customer, more than 5 seconds of load time to lose one."

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-31-2001 00:35

Hmmmm.

I think you are going to have some issues trying to get dynamicly written JS in the body of the text to get parsed properly. It's a hinky method.

I'm a little unsure why you are using this route. You should be able to accomplish this easier with out trying to embed the code.



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

« BackwardsOnwards »

Show Forum Drop Down Menu