Page 1 of 1

javascript for simple popup window killing me

Posted: Sat Aug 25, 2007 11:45 pm
by kialn
It's so simple and it's driving me nuts.
Why would a simple script like this get messed up?

I put in a perfectly fine script like this:

            Download
       

and when I save the page and go back in this is what it does:

 
             

AND it removes the javascript from the rest of the rows (I was copying in a predefined all nicely done table). 
can anyone help?

Re: javascript for simple popup window killing me

Posted: Sun Aug 26, 2007 1:39 am
by michelG
Hi Kialn.

That is maybe because you're pasting the script -- or writing the code --  into the wysiwyg view of the text editor. You should use the HTML view instead.

Michel

Re: javascript for simple popup window killing me

Posted: Sun Aug 26, 2007 7:54 pm
by kialn
No, I'm in the html view.  I'm not THAT dumb!!  ;D

Re: javascript for simple popup window killing me

Posted: Sun Aug 26, 2007 7:57 pm
by calguy1000
Disable the wysiwyg, edit the code.... test the page, it should work.

Then re-enable the wysiwyg if you want.

Wysiwygs are evil...
People that know HTML and javascript shouldn't use them....  People that use wysiwygs probably don't know html and/or javascript..... but that's just my $0.02

Re: javascript for simple popup window killing me

Posted: Sun Aug 26, 2007 11:50 pm
by kialn
Thank you, I'll try it!