Monday, December 28, 2009

[jQuery] Re: Problem with a search form in a loaded php file??

On Dec 28, 7:33 am, 123gotoandplay <wesweatyous...@gmail.com> wrote:
> i have further altered the ajax_search function and i get the error
> message [ ... ]
> function err(){
>         alert('something went wrong');
> }

This is the signature from the docs [1]

val err = function (XMLHttpRequest, textStatus, errorThrown) {
// typically only one of textStatus or errorThrown
// will have info
this; // the options for this ajax request
}

So when it's thrown, investigate textStatus and/or errorThrown to help
find the cause of the error.

Good luck,

-- Scott

[1] http://docs.jquery.com/Ajax/jQuery.ajax#options - find "error"

No comments: