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:

link_to_remote(image_tag("/images/interface/add.png"),
:before => “$name = prompt(‘Name?’)”,
:url => { :action => ‘add_child’, :id => node, :name => XXX },
:update => “node_list_#{node.id}”,
:position => ‘top’,
:complete => visual_effect(:highlight, “node_list_#{node.id}”)
)

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,
Nickolay