[lug] IE java script idiocracies

D. Stimits stimits at idcomm.com
Tue Jul 24 09:55:40 MDT 2001


Samartha Deva wrote:
> 
> Symptom:
> 
> java script function body disappears on W2000 Netscape and IE.
> It is there when loading the file in the browser but fails if
> the page is served through apache under Linux.
> 
> The whole body stripped!
> 
> Just the
> function big_window ( )
> {}

I would test if the windows style end of line matters. Docs created in a
linux editor will end with newline, whereas those created under windows
apps end with carriage return and newline. It is possible it is failing
because of lack of proper end of line information, turning it into some
sort of parse error excuse to dump the code.

D. Stimits, stimits at idcomm.com

> 
> normally, between the {}'s, there are a couple of function
> statements writing.
> 
> It looks as if the java engine on W2000 does this.
> 
> I had similar stuff earlier, when it could not handle a simple
> expression and I had to split it up:
> 
>      //  IE can't handle this code:
>      // var p = "resizable, width="+(wP+20)+", height="+(hP+50);
>      // var wvar=window.open("",pic_name,p);
>      wP += 23;
>      hP += 60;
> This was the same for Netscape and IE under W2000 and W98.
> 
> Is this perhaps a version issue?
> 
> Linux Netscape, Mozilla, Konqeror does it fine.
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list