& in link_to_remote... :with => "A=1&B=2" becomes &

Are you saying that this doesn't work for you? It is the correct thing to see even if most browsers relax the rules and let "parameters:id='img_name=myimg.jpg&img_nr=2'" work the same way. That's technically illegal since &img_nr... isn't a valid character entity.

-Rob

Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com

This being javascript and all, I believe what you actually need to produce in terms of js is

parameters: {img_name: "myimg.jpg" img_nr: 2}

There are to_json helpers available to help you on your way. Fred