[jQuery] Using javascript variable for "HASH"
Hello,
I imagine that it must be some way to use javascript variable for "HASH"... Is it possible?
I show you the code that I'm using (and it show me an error in FireBug (Firefox):reference to undefined property "imts"):
<span style="font-style: italic;">function LoadAjax(t,d,id){</span><br style="font-style: italic;"><span style="font-style: italic;">var itms</span><br style="font-style: italic;"><span style="font-style: italic;">
itms='{url: "GetValues'+t+'.asp", type: "POST", ';</span><br style="font-style: italic;"><span style="font-style: italic;">itms+='data: "'+d+'"'; </span><br style="font-style: italic;"><span style="font-style: italic;">
itms+='success: function(req) {AjaxOk(req,"'+id+'");},';</span><br style="font-style: italic;"><span style="font-style: italic;">imts+='error: AjaxError}';</span><br style="font-style: italic;"><span style="font-style: italic;">
$.ajax(itms);</span><br style="font-style: italic;"><span style="font-style: italic;">}</span><br style="font-style: italic;">
Regards,
Xavier Pimienta
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/