Debugging a form submission problem with an IFRAME embedded in an EXT open Windows window

Source: Internet
Author: User

A strange problem is: absconded in the IFRAME page of the individual commits are normal, put into the iframe inside through the JS call on the parent page. The submission is always inexplicably killed.

To confirm that JS is simple and error-free, continue to see the parent's processing logic, there is such a sentence. This.destory ().

Finally, the problem is determined, is open the IFRAME page itself, the window window opened, the results can be submitted to submit execution, directly close the open windows.

As a result, the form is terminated without execution, and all the execution of the IFRAME is game over.

After all, the IFRAME is executed asynchronously and is assumed to be synchronous. Therefore, the author then commits and then kill the parent.

Threads have the same logic.

If you want to do this, you can only wait for the mechanism, or the callback mechanism, the execution after completion of the trigger execution related to other.

Convenient period direct, this.hide (), as long as not destroy the window is OK.

Debugging a form submission problem with an IFRAME embedded in an EXT open Windows window

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.