[Proto-Scripty] Re: Ajax.request problem

2012-08-13 Thread Gaurav Dubey
Hello Akaballa Well as long as I understand prototype ajax request you need to add asynchronous: false, in you ajax request definition. So try like this: new Ajax.Request('some url', { asynchronous: false, method:'post', parameters: {searchString: searchQuery},

[Proto-Scripty] Re: Ajax.request problem

2008-10-22 Thread Aurélien DESMULIER
I suppose 'secid','Name' and 'cIns' are input elements from your 'trainingForm' form? Why don't you use the serialize() method from the Form object in order to send the parameters ? *ie*: var url = 'courseSecIdUpdate.php'; new Ajax.Request(url, {

[Proto-Scripty] Re: Ajax.request problem

2008-10-22 Thread Baglan
I see an error in your code which could have prevented it from working at all; the ',' (comma) after the onSuccess function definition is missing (happens to me all to frequently :)) - could that be the issue or is it a typo? I'd suggest you to use some kind of debugger for spotting that kind of