javascript for simple popup window killing me

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
kialn
New Member
New Member
Posts: 6
Joined: Tue Aug 21, 2007 11:14 pm

javascript for simple popup window killing me

Post 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?
michelG
Forum Members
Forum Members
Posts: 43
Joined: Tue Jul 17, 2007 1:25 pm
Location: Rochester, NY

Re: javascript for simple popup window killing me

Post 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
kialn
New Member
New Member
Posts: 6
Joined: Tue Aug 21, 2007 11:14 pm

Re: javascript for simple popup window killing me

Post by kialn »

No, I'm in the html view.  I'm not THAT dumb!!  ;D
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: javascript for simple popup window killing me

Post 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
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
kialn
New Member
New Member
Posts: 6
Joined: Tue Aug 21, 2007 11:14 pm

Re: javascript for simple popup window killing me

Post by kialn »

Thank you, I'll try it!
Post Reply

Return to “CMSMS Core”