If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

successful AJAX query results in "undefined"-alert...

Hallo,

I seem to have a sneaky little problem in my ajax-based function. The function is supposed to check at the server if the given username/password-combination is valid. On server-side everything is working correctly (Output is either "OK" or "Error") but within the js-application I always receive an alert-box stating "undefined" in the very end.

Could you please take a look at my code and give me a hint where the problem is?

Re: successful AJAX query results in "undefined"-alert...

I can't say for sure what the problem is, as I never use XMLHttpRequest directly. Have you considered using a library like jQuery or prototype? They make DOM manipulation and AJAX queries much simpler.

Re: successful AJAX query results in "undefined"-alert...

Hallo Chris_F,

indeed, Frameworks make DOM-Modifications easier but I am developing an extension for firefox and I do not want to embed any overloaded Framework into it, as my aim is to keep the extension as small as possible. Though, thanks for the hint