Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


WYSIWYG editor

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1961
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WYSIWYG editor
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 WYSIWYG editor - 2/3/2005 12:47:26 AM   
  matty_g

 

Posts: 93
Score: 0
Joined: 1/19/2005
From:
Status: offline
I am trying to work with a "What you see is what you get" editor. The advice I got from oen person was to write this code:

...
<script language="javascript" src="browserdetect.js"></script>
<script language="javascript" src="editor.js"></script>
...
<form name=RTF id=RTF method=post onsubmit="editor1.prepareSubmit();" action="/WYSIWYG-Editor/">
<script language="javascript">
var editor1 = new WYSIWYG_Editor('editor1');
editor1.display();
</script>
<table>
<tr>
<td>
<input type=submit name=btnSubmit value="Submit">
</td>
</tr>
<tr>
<script language=javascript>
document.write(editor1_content)
</script>
</tr>
</table>
</form>
...

however an error comes back saying that editor_content is undefined, does anyone know where the submitted text for this would be stored?
 
 
Post #: 1
 
 Re: WYSIWYG editor - 2/3/2005 1:50:20 AM   
  Valvola

 

Posts: 51
Score: 0
Joined: 2/3/2005
From:
Status: offline
Seems to be the silly and odd, "esecuting-before-complete-parsing" error, try to use the DEFER command:

<script language="javascript" src="browserdetect.js" DEFER></script>
<script language="javascript" src="editor.js" DEFER></script>


Using DEFER you set the page to wait the complete parsing of the code BEFORE esecuting the code


If doesn't work, try to clean the Browser cache (IE cache JS codes too!) ;-)

(in reply to matty_g)
 
 
Post #: 2
 
 Re: WYSIWYG editor - 2/3/2005 2:23:32 AM   
  matty_g

 

Posts: 93
Score: 0
Joined: 1/19/2005
From:
Status: offline
when i put defer in it claims that WYSIWYG_Editor is undefined and that editor1_content, i cleared the cache and it didnt change anything, any other idea?

(in reply to matty_g)
 
 
Post #: 3
 
 Re: WYSIWYG editor - 2/3/2005 3:04:11 AM   
  Valvola

 

Posts: 51
Score: 0
Joined: 2/3/2005
From:
Status: offline
Have you put DEFER here too?

<script language="javascript" DEFER>
var editor1 = new WYSIWYG_Editor('editor1');
editor1.display();
</script>
<table>

(in reply to matty_g)
 
 
Post #: 4
 
 Re: WYSIWYG editor - 2/3/2005 3:06:22 AM   
  Valvola

 

Posts: 51
Score: 0
Joined: 2/3/2005
From:
Status: offline
Try to be more accurate while declaring your language:

<script language="javascript1.3" DEFER>

This fixed a world of troubles for me (I've to admit I prefer use language="javascript1.2")

:-D

(in reply to matty_g)
 
 
Post #: 5
 
 Re: WYSIWYG editor - 2/3/2005 3:27:15 AM   
  matty_g

 

Posts: 93
Score: 0
Joined: 1/19/2005
From:
Status: offline
no i didnt, thanx that fixed that error, however now when I submit the form the page displays this error...

HTTP 405 - Resource not allowed
Internet Information Services

(in reply to matty_g)
 
 
Post #: 6
 
 Re: WYSIWYG editor - 2/3/2005 3:40:08 AM   
  Valvola

 

Posts: 51
Score: 0
Joined: 2/3/2005
From:
Status: offline
Mmmmmhh

It's an access denied error...

What's your web server? IIS?

(in reply to matty_g)
 
 
Post #: 7
 
 Re: WYSIWYG editor - 2/3/2005 4:18:35 AM   
  matty_g

 

Posts: 93
Score: 0
Joined: 1/19/2005
From:
Status: offline
yes IIS

(in reply to matty_g)
 
 
Post #: 8
 
 Re: WYSIWYG editor - 2/3/2005 5:49:20 AM   
  Valvola

 

Posts: 51
Score: 0
Joined: 2/3/2005
From:
Status: offline
quote:
Originally posted by matty_g

no i didnt, thanx that fixed that error, however now when I submit the form the page displays this error...

HTTP 405 - Resource not allowed
----> Internet Information Services






LOL, you wrote it!
Me mind absent...

Ok, what is trying to do this page?

(mind that the scripts are heavly limited by the standard security browser's settings)

(in reply to matty_g)
 
 
Post #: 9
 
 Re: WYSIWYG editor - 2/3/2005 6:15:07 AM   
  matty_g

 

Posts: 93
Score: 0
Joined: 1/19/2005
From:
Status: offline
i have decided to use an applet to display and edit text instead of this editor which is giviing me problems, thank you for your help

(in reply to matty_g)
 
 
Post #: 10
 
 Re: WYSIWYG editor - 2/3/2005 7:40:32 AM   
  Valvola

 

Posts: 51
Score: 0
Joined: 2/3/2005
From:
Status: offline
:-)

It's a damn good choice, have fun mate

:-D

(in reply to matty_g)
 
 
Post #: 11
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WYSIWYG editor Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts