JavaScript Error - IE7 - Insert Script Drop Down

Last post 08-26-2008, 6:07 PM by Anonymous. 3 replies.
Sort Posts: Previous Next
  •  08-26-2008, 4:37 PM 43286

    JavaScript Error - IE7 - Insert Script Drop Down

    Hi Adam,
     
    We are getting JavaScript Errors preventing the insertion of code from the code snipit drop down. When an item is selected from the dropdown the dropdown lable goes blank and no code is inserted. Instead we get an "Unknown runtime error" error message.
     
    When using FireFox there is no problems. When using IE 6 or IE 8 beta we still get the error, but the code is inserted correctly.
     
    The code sniptes on your demo seem to work correctly, however I have manage to recreate the issue in a simplified project, which I can email to you if required. This project can be viewed here:
     
    Many Thanks,
    Ady
  •  08-26-2008, 5:36 PM 43289 in reply to 43286

    Re: JavaScript Error - IE7 - Insert Script Drop Down

    Ady,
     
    Can you tell me the code you added into this dropdown?
     
    Did you have any problems with the example incuded in the download package?

    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

  •  08-26-2008, 5:40 PM 43290 in reply to 43289

    Re: JavaScript Error - IE7 - Insert Script Drop Down

    Hi Adam,
     
    The code added to the drop down is dynamically generated (in final product), the test case added using the following:
     
    Dim oList As CuteEditor.RichDropDownList = oEditor.ToolControls("Layouts").Control
    Dim oItem As New CuteEditor.RichListItem()
    oItem.Text =
    "Test Item"
    oItem.Value = "Code Snipet"
    oList.Items.Add(oItem)
     
    The control "Layouts" is added in the configuration file via:

    <item type="dropdown" width="170" ForeColor="Black" name="Layouts" text="Insert Layout" RenderItemBorder="true" />

    Many Thanks,
    Ady
  •  08-26-2008, 6:07 PM 43292 in reply to 43290

    Re: JavaScript Error - IE7 - Insert Script Drop Down

    Ha!
     
    Worked it out. Changed:
     
    Dim oItem As New CuteEditor.RichListItem()
    oItem.Text =
    "Test Item"
    oItem.Value = "Code Snipet"
    oList.Items.Add(oItem)
     
    to:
     
    oList.Items.Add("Test Item", "Code Snipet")
     
    Don't know why this should make a difference specifically for IE7, but it looks like it works. No JavaScript error, and code inserted correctly.
     
    Many Thanks,
    Ady
View as RSS news feed in XML