> 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"): > > function LoadAjax(t,d,id){ > var itms > itms='{url: "GetValues'+t+'.asp", type: "POST", '; > itms+='data: "'+d+'"'; > itms+='success: function(req) {AjaxOk(req,"'+id+'");},'; > imts+='error: AjaxError}'; > $.ajax(itms); > }
It looks like this is what you are trying to do: function LoadAjax( t, d, id ) { var itms = { url: 'GetValues' + t + '.asp', type: 'POST', data: d, success: function( req ) { AjaxOk( req, id ); }, error: AjaxError }; $.ajax( itms ); } -Mike _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/