JavaScript Prompt and link_to_remote

Hi all,

I would like to get one of the parameters for a link_to_remote with
JavaScript prompt. So far I have this:

:before => “$name = prompt(‘Name?’)”,
:url => { :action => ‘add_child’, :id => node, :name => XXX },
:update => “node_list_#{}”,
:position => ‘top’,
:complete => visual_effect(:highlight, “node_list_#{}”)

I get prompted for the name. How do I add it to the parameter list,
i.e. what do I have to put in the place of XXX on the third line above?

Many thanks in advance,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs