Onclick Javascript error ?

Last post 07-30-2004, 11:03 AM by jameswhittaker. 2 replies.
Sort Posts: Previous Next
  •  07-30-2004, 6:52 AM 1380

    Onclick Javascript error ?

    Hi

     
    Every time i click the mouse within the editor, i get a javascript error, object required.
    When i debug the JS in visual studio, the highlighted line is :
     
    var host = window.open('UploadDialog.aspx?Id=_ctl0' + ((document.getElementById('_ctl0').value!='') ? '&selectedfile=' + document.getElementById('_ctl0').value : ''), 'browse', 'width=700,height=400,status=yes,resizable=yes');
     
    I am not sure why it is trying to open a window on every mouse click?
     
    Have i got something set wrong?
     
    Thanks in advance
     
    James Whittaker
  •  07-30-2004, 9:44 AM 1381 in reply to 1380

    Re: Onclick Javascript error ?

    James,
     
    Do you have the same problem with our  onlinde demo?
    "UploadDialog.aspx" is not a file of CuteEditor. I have no clue how you got it.
     
    Maybe you can create a simple example and post the code here.

    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

  •  07-30-2004, 11:03 AM 1384 in reply to 1381

    Re: Onclick Javascript error ?

    Hi

     
    Thanks for the reply.
     
    It seems to have corrected itself now. I had been trying a few similar controls, and after i had removed all the references from the project/page etc to the others, the problem seemed to go away. Was odd as only the references remained, no imports, actual use of other controls etc. Anyhow, that is fixed.
     
    However, i now have a problem with the image gallery, in that i get an error when i try to upload an image. The pop-up window just errors:
     

    BC30691: 'FileInfo' is a type in  'IO' and cannot be used as an expression.

    There error is on line 20 of ThumbList.ascx
     
    My app is VB.NET, and i am wondering if there is an issue there as the code in the script/aspx files is c#?
     
    Any ideas?
     
    Thanks - James
     
View as RSS news feed in XML