CustomButton doesn't paste javascript

Last post 06-16-2009, 3:34 AM by Peter van den Boogaard. 3 replies.
Sort Posts: Previous Next
  •  06-15-2009, 9:50 AM 53149

    CustomButton doesn't paste javascript

    Hello,
     
    I'm having a problem pasting the returnvalue of my custom pop-up window.
    The returnvalue is
     
    "<script type='text/javascript'>PGEmbedFlash('src','userdata/swf/Videoplayer','movie','userdata/swf/VideoPlayer','width', '300','height', '200','FlashVars', 'videourl=../videos/starwarskid.flv&videowidth=300&videoheight=200','id', 'VideoPlayer','quality', 'high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','scale', 'showall','wmode', 'transparent','devicefont', 'true','menu','true','allowFullScreen','true','allowScriptAccess','sameDomain','salign', 'L','codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0');</script>"
     
    In debugging it goes past the PasteHTML function with the correct value, but it doesn't paste anything in the control.
    when i remove the script tags it works as expected.
    I have made other buttons which paste plain html without any problems.
     
    What can i do to make this work?
     
    framework3.5
    cuteeditor6.3
     
    Regards
      Peter van den Boogaard
      Princen Group ICT
     
     
  •  06-15-2009, 10:06 AM 53150 in reply to 53149

    Re: CustomButton doesn't paste javascript

    Hi,
     
    Tried  EditField.EnableClientScript = "True"
    Doesnt help
     
    Regards
      Peter
  •  06-15-2009, 3:08 PM 53155 in reply to 53150

    Re: CustomButton doesn't paste javascript

     
     

    EnableStripScriptTags

    Specifies whether to remove inject script before write the string into the db. When this property is set to true (the default) Cute Editor strips all script elements and script contents from the html.


    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

  •  06-16-2009, 3:34 AM 53165 in reply to 53155

    Re: CustomButton doesn't paste javascript

    Hi Adam,
     
    Thanks for the fast reply.
     
    For other ppl trying the same, you need the switches set in the init. the page_load is too late if you edit the text later-on.
     
    Peter
View as RSS news feed in XML