×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: undefined error on IE7 while removing post

undefined error on IE7 while removing post 15 years 9 months ago #2455

  • Guillermo
  • Guillermo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Guys, I found an error (at least in my install) where after editing a comment I got an "underfined" error.

I traced down the error to client.js script, near line 280. It appear that at least for IE7, the responseText attribute gets undefined when removing a post, so I added a previous check for it before testing its value.

Here's the fix
if (JOSC_ajaxReady()) { // @willy - fixed on cases were responseText is undefined (perhaps a more deep fix avoids this...
                    if ((JOSC_http.responseText) && (JOSC_http.responseText != ''))
						alert(JOSC_http.responseText);
                    else
						JOSC_removePost(document.getElementById('post' + id));
                }

Perhaps a better fix is possible or even it's just my particular installation.

Hope this helps, Willie.

undefined error on IE7 while removing post 15 years 9 months ago #2456

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Guillermo!
In my IE installation there is no error when I delete the text. Any ideas why you are getting this error?

undefined error on IE7 while removing post 15 years 9 months ago #2462

  • Guillermo
  • Guillermo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Well, frankly I did some customization so perhaps it's that I've messed things up.. I will then try this in a clean install and tell you about it, but that will have to wait a while. I will record the bug into my list, though.
Tks a lot for checking it out!

undefined error on IE7 while removing post 15 years 9 months ago #2464

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Guillermo, thank you for taking the time and helping us make !jocomment better!
  • Page:
  • 1
Time to create page: 0.108 seconds