JS funtion () URL does not jump back to the background action issue

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.