zero0x wrote:
I suppose you're using prototype, so you just need to get the value of
the select box.
$(id-of-the-element).getValue()
On 28. Dec., 15:04 h., Zhao Yi rails-mailing-l...@andreas-s.net
How can I send more than one parameters?
--
Posted via http://www.ruby-forum.com/.
By sending JSON:
{name: value, name1:value1, ... }
in your case
{name: $(id-of-the-element).getValue()}
or something similiar.
On 31.12.2008, at 12:50, Zhao Yi wrote:
zero0x wrote:
I suppose you're using prototype, so you just need to get the value
of
the select box.
Oh I'm sorry that was probably wrong advice :)
Forget about it.
I just realized, that you're sending a http query, which looks like:
name=valuename1=value1...
So it's pretty simple:
query = name=+...+name1=+...
On 31.12.2008, at 12:50, Zhao Yi wrote:
zero0x wrote:
I suppose you're using
I suppose you're using prototype, so you just need to get the value of
the select box.
$(id-of-the-element).getValue()
On 28. Dec., 15:04 h., Zhao Yi rails-mailing-l...@andreas-s.net
wrote:
Frederick Cheung wrote:
You have to tell remote function what to submit, it's not going to
guess
Check source code and find select name=xxx
The xxx value is what you can access with params[:xxx]
--
Good advice: Download Firebug plugin for Firefox, which shows all the
communication between page and server, and you'll see all the POST
variables with the values :)
On 28. Dec., 14:08 h.,
zero0x wrote:
Check source code and find select name=xxx
The xxx value is what you can access with params[:xxx]
--
Good advice: Download Firebug plugin for Firefox, which shows all the
communication between page and server, and you'll see all the POST
variables with the values :)
On 28 Dec 2008, at 13:34, Zhao Yi wrote:
zero0x wrote:
Check source code and find select name=xxx
The xxx value is what you can access with params[:xxx]
--
Good advice: Download Firebug plugin for Firefox, which shows all the
communication between page and server, and you'll see all
Frederick Cheung wrote:
You have to tell remote function what to submit, it's not going to
guess for you.
This is what the :with option for remote_function is for. Check the
docs for link_to_remote for some examples, I've got some extra ones at
8 matches
Mail list logo