> 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:
Post a Comment