Topic: :interactive ajax callback?

Hey guys,

I want to be able to add categories to my model by having a javascript prompt dialog pop up which asks the user to input the name of the category and then submit that value.

Now I can make a link_to_function to prompt for the name but that doesn't send the name back to the server.

  <%= link_to_function 'add', 'prompt("Category name?")' %>

If I use link_to_remote I can send the query but I can't send the prompt before the update action is called.

I noticed a callback called :interactive in the api for link_to_remote but I can't find any information on how to use it.

Any thoughts would be much appreciated.

-- marsvin