What is this? <!-- Inject Script Filtered -->

Last post 04-14-2007, 1:40 AM by Adam. 10 replies.
Sort Posts: Previous Next
  •  12-27-2006, 10:52 AM 25361

    What is this? <!-- Inject Script Filtered -->

    Why is this showing up when I load an html page?
     
    How do I turn this "feature" off?
  •  12-27-2006, 11:32 AM 25363 in reply to 25361

    Re: What is this? <!-- Inject Script Filtered -->

    Editor.EnableStripScriptTags Property

    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

  •  12-27-2006, 11:41 AM 25368 in reply to 25363

    Re: What is this? <!-- Inject Script Filtered -->

     
    This is occurring when I use the LoadHTML function to load an HTML page. It has nothing to do with writing a string into the db.
     
    CuteEditor appears to be stripping some of the script code and inserting the referenced comment.
     
    Am I wrong?
     
    If not, how do I fix this?
  •  12-27-2006, 7:57 PM 25397 in reply to 25368

    Re: What is this? <!-- Inject Script Filtered -->

    In the download package, you can find editHtml.aspx file. It uses LoadHTML method. Please set EnableStripScriptTags property to false in the example and test it.
     
    For example:
     
    <CE:Editor id="Editor1" EnableStripScriptTags="false" runat="server" ></CE:Editor>
     
    >>CuteEditor appears to be stripping some of the script code and inserting the referenced comment.
     
    Make sure you set EnableStripScriptTags property to false otherwise 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

  •  12-27-2006, 9:13 PM 25401 in reply to 25397

    Re: What is this? <!-- Inject Script Filtered -->

    How do I test editHtml.aspx? What are the steps?
  •  12-27-2006, 9:32 PM 25402 in reply to 25401

    Re: What is this? <!-- Inject Script Filtered -->

    FYI. here is the first section of the HTML file, followed by CuteEditor's translation, including the comments "Inject Script Filtered". Can you tell me why CuteEditor is inserting those comments:
     

    Actual HTML:
     
    <html>
    <head>
    <title>Qasper :: beyond CRM - information organizer project and document management and more</title>
    <meta name="Description" content="If you are looking for a CRM software which does more than simply manage contacts then you need Qasper.  It is also a personal information manager, help desk solution, project management software and much more.">
    <meta name="Keywords" content="crm software personal information organizer help desk solution project management software customer experience">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <link rel="alternate" type="application/rss+xml" title="ROR" href="ror.xml" />
    <link href="styles.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="js/chrome.js"></script>
    <script language="JavaScript" src="js/pop.js"></script>
    </head>
    <body bgcolor="#cce2fc" background="images/stripe_back.gif">
    <center>
    <table background="images/stripe_back.gif">

    <tr>
     <td id="tdTopFiller" class="tinyHeader" width="100%" valign="top" align="left">&nbsp;</td>
    </tr> 

    Translated as:
     
    <html>
        <head>
            <title>Qasper :: beyond CRM - information organizer project and document management and more</title>
            <meta content="If you are looking for a CRM software which does more than simply manage contacts then you need Qasper.  It is also a personal information manager, help desk solution, project management software and much more." name=Description>
            <meta content="crm software personal information organizer help desk solution project management software customer experience" name=Keywords>
            <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
            <meta content="Microsoft FrontPage 4.0" name=GENERATOR>
            <meta content=FrontPage.Editor.Document name=ProgId>
            <link title=ROR href="ror.xml" type=application/rss+xml rel=alternate>
            <link href="styles.css" type=text/css rel=stylesheet>
            <link href="http://cutesoft.net/oneto1/class/qword.css" rel=stylesheet>
        </head>
        <body bgcolor="#cce2fc" background="images/stripe_back.gif">
            &lt;!-- Inject Script Filtered --&gt; &lt;!-- Inject Script Filtered --&gt;
            <center>
            <table background=images/stripe_back.gif>

                <tbody>
                    <tr>
                        <td class=tinyHeader id=tdTopFiller vAlign=top align=left width="100%">&nbsp;</td>
                    </tr>
                </tbody>
            </table>
    ... continues
     

     
     
     
     
  •  12-28-2006, 9:29 AM 25412 in reply to 25402

    Re: What is this? <!-- Inject Script Filtered -->

    Can I get an answer, please?
  •  12-29-2006, 12:31 PM 25440 in reply to 25412

    Re: What is this? <!-- Inject Script Filtered -->

    Still waiting for an answer on this.
  •  12-29-2006, 2:13 PM 25445 in reply to 25440

    Re: What is this? <!-- Inject Script Filtered -->

    In the download package, you can find editHtml.aspx file. It uses LoadHTML method. Please set EnableStripScriptTags property to false in the example and test it.
     
    For example:
     
    <CE:Editor id="Editor1" EnableStripScriptTags="false" runat="server" ></CE:Editor>
     
    >>CuteEditor appears to be stripping some of the script code and inserting the referenced comment.
     
    Make sure you set EnableStripScriptTags property to false otherwise 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

  •  01-04-2007, 7:45 PM 25558 in reply to 25445

    Re: What is this? <!-- Inject Script Filtered -->

    For my application, the editor still strips all script elements though I set EnableStripScriptTags = false.
     
    My application is an email editor page that allows users to edit 2 versions of email, html and plain text. There is a CuteEditor for html email and a TEXTAREA for plain text email in the same page. I use 2 radio buttons (postback) to switch between the CuteEditor and TEXTAREA, i.e. when Editor1.Visible=false, TextArea1.Visible=true; when Editor1.Visible=true, TextArea1.Visible=false.
     
    I put some Javascript code into the CuteEditor, then switch to TEXTAREA view. After switching back to the CuteEditor view, those Javascript code has been replaced with <!-- Inject Script Filtered -->. I do set EnableStripScriptTags = false. And, if the CuteEditor view postback to itself, the Javascript code is still there. Looks like switching between Editor1.Visible=true and false causes the issue.
     
    Any ideas? Thanks.
     
     
  •  04-14-2007, 1:40 AM 28356 in reply to 25558

    Re: What is this? <!-- Inject Script Filtered -->

    Version 6.0 is out.  This issue is resolved in this new release.
     
    It's a free upgrade.
     
    Demo:

    http://cutesoft.net/example/general.aspx

    Download:

    http://cutesoft.net/downloads/default.aspx

    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

View as RSS news feed in XML