Gareth,
Thank you for your response. I tried changing the method to Post and
adding the postBody parameter, but still the ajax.Autocompleter
doesn't send the newly input values to the server. The Form.Serialize
method is sending already existing values (initially rendered from
server), but not the newly inputted values.
Here is my new code...
new Ajax.Autocompleter("txtCustName","hint","../auto/server.asp?t=996",
{method:'post',minChars: 4,updateElement:
PopCustName,postBody:Form.serialize($("AddOBBRAcct"))});
Can you please point me where am I missing.
btw my Prototype.js version is 1.5.0_rc0 and
Scriptaculous.js version is '1.6.1
Thank you very much for your time
Best Regds
Prasada
On Jul 9, 5:40 pm, "Gareth Evans" <[EMAIL PROTECTED]> wrote:
> Change your method to post
>
> new Ajax.Autocompleter("txtCustName","hint","../auto/server.asp?t=888",
> {asynchronous:true,*method:'post'*,minChars: 4,updateElement:
> PopCustName,*postBody*:Form.serialize($("AddNewAcct"))});
>
> or use
> Request.Querystring (parameters passes in querystring), or for a combination
> request collection (slower) use simply request.
>
> Gareth
>
> On 7/10/07, Vitruvian <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I am trying to access the form content (using Request.Form) in the
> > server, but Ajax.Updater is not supplying the input field values.
> > I have a form with 10 text fields, I am using auto completion for
> > fields 5, 6..10. When a request is made to the server.asp, I have to
> > supply the values of 1..4 fields (the user will type info. in these
> > fields). This is required to narrow down the auto suggest values.
>
> > Here is my code
>
> > new Ajax.Autocompleter("txtCustName","hint","../auto/server.asp?t=888",
> > {asynchronous:true,minChars: 4,updateElement:
> > PopCustName,parameters:Form.serialize($("AddNewAcct"))});
>
> > When I loop thro' the Request.form collection in the server, I dont
> > see the values the for the 1..4 text fields the user has inputed
> > Any work around for this? How do I pass the form content to the server
> > (POST method) using Ajax.Autocompleter.
>
> > Thank you in advance
> > Prasada- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---