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},
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,
{
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