X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=ajax%2Fajax.js;h=257ae02b26582e7bc8733901aa26da30c463e5ea;hb=956529c7beddf7fed3f9d92aec10ecaa3289ad1b;hp=a972871bfd093fe950404705f780b62ffb886085;hpb=d71a85001b0562ed05925e0c5635c3c0a1d52068;p=jquery.git diff --git a/ajax/ajax.js b/ajax/ajax.js index a972871..257ae02 100644 --- a/ajax/ajax.js +++ b/ajax/ajax.js @@ -130,7 +130,7 @@ $.fn.load = function(a,o,f) { h = h.responseText; self.html(h).find("script").each(function(){ try { - eval( this.text || this.textContent || this.innerHTML ); + $.eval( this.text || this.textContent || this.innerHTML ); } catch(e){} }); if(f){f(h);} @@ -146,7 +146,7 @@ $.fn.load = function(a,o,f) { $.fn.formValues = function() { var a = []; this.find("input[@type='submit'],input[@type='hidden'],textarea,input[@checked],input[@type='password'],input[@type='text'],option[@selected]").filter(":enabled").each(function() { - o = {}; + var o = {}; o.name = this.name || this.id || this.parentNode.name || this.parentNode.id; o.value = this.value; a.push(o); @@ -170,7 +170,7 @@ $.update = function(objElement, strURL, arrValues, fncCallback) { // // Evaluate the scripts objElement.html(strHTML).find("script").each(function(){ - try { eval( this.text || this.textContent || this.innerHTML ); } catch(e){} + try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e){} }); //