I am wondering why:
$.post("remote.php",
{'f':a_searchtype, 'partial':value},
function(data){
$("#result").html(data);
});
worksfine. but using a variable such as:
ajax_arg = {'f':a_searchtype, 'partial':value};
$.post("remote.php",
ajax_arg,
function(data){
$("#result").html(data);
});
causes javascript errors in unrelated sections of code.
The second version can be used in a common routine that doesn't know what is being passed.