Embedding javascript documents

Last post 10-04-2005, 4:28 PM by Stephen. 4 replies.
Sort Posts: Previous Next
  •  10-04-2005, 4:25 PM 11381

    Embedding javascript documents

    I am encoutering a problem with the editor when trying to embed javascript within my tags.
     
    Such as when I want to use the onmouseover and onmouseout events of images and links.  Way back in Version 3.0 this they worked ok, but now these scripts are automatically removed by the CuteEditor!  Why is this??
     
    For example:
     
    Try inserting the following tags by hand into the HTML view:
     
    <p><a href="/" target="_blank">Javascript Test!</a></p>
     
    now add the following BLOCKED SCRIPT
     
    <p><a onmouseover="BLOCKED SCRIPT alert('Go to CuteSoft!')" href="/" target="_blank">Javascript Test!</a></p>
     
    If you go driectly to the Preview screen its works.  BUT if you switch back and forth between the Normal view and the HTML view that onmouseover event gets removed.
    This is the same behaviour when saving and loading the generated HTML to and from a database.
     
    Why does the editor not allow me to have my own javascript calls??
     
    Thanks
  •  10-04-2005, 4:26 PM 11382 in reply to 11381

    Re: Embedding javascript documents

    BTW ... where my following post reads "BLOCKED SCRIPT" it should read "BLOCKED SCRIPT" in lower case letters
  •  10-04-2005, 4:27 PM 11383 in reply to 11382

    Re: Embedding javascript documents

    OK ... I'll try one more time
     
    "BLOCKED SCRIPT" should read j@v@script: (@ being 'a')
  •  10-04-2005, 4:27 PM 11384 in reply to 11382

    Re: Embedding javascript documents

    Stephen,
     
    Please set EnableStripScriptTags property to false:
    Editor.EnableStripScriptTags Property
     
    Specifies whether to remove inject script before write the string into the db.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-04-2005, 4:28 PM 11385 in reply to 11384

    Re: Embedding javascript documents

    I'll try that ... thanks again
View as RSS news feed in XML