JS funtion () URL does not jump back to the background action issue
Today encountered a baffled problem, resolved now, but still do not know why (estimated because the domain name inconsistency), record
$.get (ActionURL,
{ "ParentID":p Arentid},
func tion (objresult) {
$ ( "#childType"). Find ( $ ( "#childType"). Append ( ' <option value= "-1" >-Please select- </option> ');
var childtypelist = objresult.data;
for (var i=0;i< childtypelist.length;i++) {
$ ( "#childType"). Append ( "< Option value=\ "" + Childtypelist[i].typeid + "\" > "+childtypelist[i].typename+ "</option>");
}
}
)
Where the parameter "ActionURL" is "lipinka.xxx.com/xxx.action", and the current page of this JS is the domain name of ka.xxx.com.
Now this JS executes, will not jump to the background to make the request.
After changing the parameter "ActionURL" to "Ka.xxx.com/xxx.action", perform a normal jump again.
Reference: HTTP://WWW.VINSUMMER.COM/ARTICLE/VIEW/44
JS funtion () URL does not jump back to the background action issue