Getting error in AdvancedChat example

Help
Howard
2005-09-15
2013-04-11
  • Howard
    Howard
    2005-09-15

    Get following error using Firefox 1.0.(php version 4.3.10) And text does not transfer to chat window. Basic chat works fine.

    Error: [Exception... "'Permission denied to get property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "JS frame :: http://www.myserver.com/najax/examples/chatAdvanced/ :: sendMessage :: line 259"  data: no]
    Source File: http://www.myserver.com/najax/examples/chatAdvanced/
    Line: 259

     
    • Stan Angeloff
      Stan Angeloff
      2005-09-15

      Please, comment the following line in sendMessage (index.php); from:

      message.value = '';

      to:

      // message.value = '';

      I don't think that this error has anything to do with the transfer problem. You should check your MySQL connection again :-).

      If the above work-around fixed the problem, please post a message :-).

       
      • Howard
        Howard
        2005-09-15

        Well, it removes the error..;-} But as you'd expect the typing area does not clear, plus text is not transferred to chat area. I did check the MYSQL connection and the id, nick and time seem to be updating just fine.

         
    • Stan Angeloff
      Stan Angeloff
      2005-09-15

      Can you send me some URL address where I can test the advanced chat? You can use my profile.

       
    • Stan Angeloff
      Stan Angeloff
      2005-09-17

      Fixed.