Page 1 of 1

WYSIWYG in PHP / java problem

Posted: Thu Dec 01, 2005 4:33 pm
by justgrafx
Hi
Please someone help here !!!!

The WYSIWYG product description editor for a site im working one doesnt work. I spend all day talking and paying programers to solve this but anybody seems to be able.

In my EditProduct.php text area file, when I remove the src="editor.js (see example below)

<script language="javascript1.2">
editor_generate('ProductDesc');
</script>

I am able to see the WYSIWYG text box editor in my admin.

But as soon as I put it back like this:

<script language="javascript1.2" src="editor.js">
editor_generate('ProductDesc');
</script>

The text editor reapear in the admin edit product page, but it doeasnt work. doent aply any HTML feature to the text.


PLEASE HELP

look at an example here: http://www.prologantilles.com/store/item61.html

Posted: Thu Dec 01, 2005 4:39 pm
by Burrito
try this:

Code: Select all

<script language="javascript1.2" src="editor.js"> 
</script> 

<script>
editor_generate('ProductDesc'); 
</script>

Posted: Thu Dec 01, 2005 5:00 pm
by Ambush Commander
Use code tags please.

I believe you should try...

Code: Select all

<script language="javascript1.2" src="editor.js"></script>
<script language="javascript1.2">
editor_generate('ProductDesc');
</script>
Rather because you only want it to run when both are javascript1.2.

http://www.w3.org/TR/REC-html40/interact/scripts.html may be helpful.

Got it!

Posted: Fri Dec 02, 2005 10:55 am
by justgrafx
Thanks guys, I got the problem solve !!