var XMLContext={ "http://10.150.22.1/web/lcam/fwms/equipment/desktop/index?TOKEN=":TOKEN }; function TOKEN( $dom,urlStr,urlJson){ //alert(urlJson); var vUrl="http://10.150.22.1/web/lcam/fwms/sso/certificate.ac?sapHrUserId="+urlJson.saphruserid; jQuery.ajax({ url:vUrl, dataType:'JSONP', success: function(result) { var indexUrl="http://10.150.22.1/web/lcam/fwms/sso/ssoLogin.ac?ssoticket="+result+"&path="+encodeURIComponent(urlStr+result); $dom.attr("src",indexUrl); } }); }