Post Code First
1 function(obj, url) {2 varparams = {};3 vartarget_id = obj.attr ("id");4 if(typeof(URL) = = "string" && Url.search (/\?/) >=0){5$.each (Url.split ("?") [1].split ("&"),function(){6 varKeyval = This. Split ("=");7 if(Keyval[0] && keyval[1]){8Params[decodeuricomponent (keyval[0])] = decodeURIComponent (keyval[1]);9 }Ten }); Oneurl = Url.split ("?") [0]; A } - - if(Obj.hasclass ("Refresh-target")){ theObj.data ("Load-url", URL); -Obj.data ("Load-params", params); -Obj.data ("Auto-refresh-load-url", URL); -Obj.data ("Auto-refresh-load-params", params); + } - + if(target_id = = = "Container") { A obj.esfcontentspublish (URL, params); at}Else { - varDFD = $. Deferred (); - if(target_id!== "Action_panel" && -target_id!== "Inner_contents" && -target_id!== "Tree_panel") { - Esf_fw.effects.screen_mask (); in } - to //Reject Auto Refresh + Esf_fw.auto_refresh.reject (DFD); - the obj.fjload ({url:url, params:params, DFD:DFD}); *Dfd.done (function(){ $$ ("<div>"). Fjpublish ("/esf_fw.data.load/complete"), [obj]);Panax Notoginseng Esf_fw.effects.screen_unmask (); - }); the } +}View Code
Using the Data property of HTML to take a value