error messages. Can I use innerHTML instead of alerts?

Last post 04-11-2010, 7:45 PM by Kal. 3 replies.
Sort Posts: Previous Next
  •  04-09-2010, 12:10 PM 59966

    error messages. Can I use innerHTML instead of alerts?

    Hi, Could you please let me know if I could modify the error messages from a Javascript alert, to innerHTML, where I could set the element id as I wish, and if so, how, please?
     
    Thanks 
    Kal 
  •  04-09-2010, 4:41 PM 59974 in reply to 59966

    Re: error messages. Can I use innerHTML instead of alerts?

    Please check the following code:
     
    function CuteWebUI_AjaxUploader_OnError(msg)
    {
         alert("global error:"+msg);
         return false;
    }
    function CuteWebUI_AjaxUploader_OnTaskError(obj,msg,reason)
    {
        alert("file error:"+obj.FileName+" , "+msg);
        return false;
    }
     
    You can change alert and use innerHTML to display the error message.
     

    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

  •  04-10-2010, 11:56 AM 59989 in reply to 59974

    Re: error messages. Can I use innerHTML instead of alerts?

    Thanks Adam,
    It looks like using these error functions are conflicting with this function. The below function doesn't work when used with the error functions
     
    function CuteWebUI_AjaxUploader_OnQueueUI(list)
    {
        return false;
     
    Any suggestions to how to use the error functions with this function correctly, or is there a different way to solve this conflict?
     
    Thanks
    Kal 
  •  04-11-2010, 7:45 PM 59994 in reply to 59989

    Re: error messages. Can I use innerHTML instead of alerts?

    Looks like this is working well now. Don't know what happened.
View as RSS news feed in XML