Strange : oEDIT and Javascript

Questions about how to use the online - editors and suggestions how to improve them
Post Reply
mortimer
Posts: 13
Joined: Mon Dec 01, 2008 2:43 pm

Strange : oEDIT and Javascript

Post by mortimer » Wed May 06, 2009 2:29 pm

Hi,

I have got the following problem :
If I include a link to a javascript file in oEDIT, oEDIT is not working any longer.

Version is 3.2 and template is bizchoiceblue from Dotcomwebdesign.com.
I have added a javascript in News2 : <script type="text/javascript" src="conveyorbelt.js"></script>.
Everything is perfect except oEDIT does not work, the cursor is not shown, in FF as in IE.
It is possible to select text and to copy it but nothing else, no modify, no cut.

The script is Conveyor belt slideshow from dynamicdrive.com, I use it on another web site with no problem.
I have to delete <script type="text/javascript" src="conveyorbelt.js"></script> in the Content file to return to normal.

What's happening ? What's wrong ?
Thanks for your advices.

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Strange : oEDIT and Javascript

Post by Tata » Wed May 06, 2009 4:04 pm

Would it not be easier to install Carousel plugin?
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

mortimer
Posts: 13
Joined: Mon Dec 01, 2008 2:43 pm

Re: Strange : oEDIT and Javascript

Post by mortimer » Wed May 06, 2009 9:37 pm

Tata,

Thank you for Carousel, it seems to be a nice plugin.
Unfortunately, it is a circular slideshow, it does not suit my needs.
A linear one like Conveyor belt is preferable for what I want to do.

Cheers

ZiPs
Posts: 633
Joined: Thu May 22, 2008 6:17 pm
Location: Faxe, Denmark
Contact:

Re: Strange : oEDIT and Javascript

Post by ZiPs » Wed May 06, 2009 10:44 pm

Hi mortimer

I have now made a test page and do not get the problem you're experiencing, I can still correct and write with ease.

Code: Select all

<h1>Conveyor belt</h1>
<p align="center"><script type="text/javascript" src="include/belt.js"></script></p>
And the js file HERE

Test page HERE

Password is still test, but all files are still locked, if you could write, send a pm :-)

/ZiPs
Preben Dahl | Webmaster cmsimple.dk | Projekt-og domæne ejer Gert Ebersbach

mortimer
Posts: 13
Joined: Mon Dec 01, 2008 2:43 pm

Re: Strange : oEDIT and Javascript

Post by mortimer » Thu May 07, 2009 2:38 pm

ZiPs,

Thank you for your test site.
Doing what you did gave me the same result : No problem.

Your code is :

Code: Select all

<h1>Conveyor belt</h1>
<p align="center"><script type="text/javascript" src="include/belt.js"></script></p>
content.htm being locked, I can't do it, what happens if you write after that :

Code: Select all

<h1>News2</h1>
#cmsimple hide#<p align="center"><script type="text/javascript" src="include/belt.js"></script></p>
News2 is located at the upper right side of the template below the head image.
Is oEDIT still working ? Are you still able to edit the Welcome page or another ?

ZiPs
Posts: 633
Joined: Thu May 22, 2008 6:17 pm
Location: Faxe, Denmark
Contact:

Re: Strange : oEDIT and Javascript

Post by ZiPs » Thu May 07, 2009 9:30 pm

Yes in this news box or in the template, it does not work, as long the script is running you can not use the editor, I can not see the solution to it :-(

/ZiPs
Preben Dahl | Webmaster cmsimple.dk | Projekt-og domæne ejer Gert Ebersbach

Post Reply