WYSIWYG in PHP / java problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
justgrafx
Forum Newbie
Posts: 4
Joined: Thu Nov 24, 2005 10:17 am

WYSIWYG in PHP / java problem

Post 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
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

try this:

Code: Select all

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

<script>
editor_generate('ProductDesc'); 
</script>
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
justgrafx
Forum Newbie
Posts: 4
Joined: Thu Nov 24, 2005 10:17 am

Got it!

Post by justgrafx »

Thanks guys, I got the problem solve !!
Post Reply