Use the layer plugin to encounter the pit--layer pop-up layer flash back

Source: Internet
Author: User

First, preface

Giant pit, the foundation did not learn, led to find an afternoon problem, finally I found out. Say that many are tears, record down, after someone encountered this error can refer to the following

Do a few pages during the project, need to use the pop-up layer, in order to facilitate the use of the layer of the plug-in, and then write the Click event in the form Table consignments (the first pit), followed by the button (the beginning of a tragedy) , which is also placed under the form form. The desired effect is when I click on the button, the pop-up layer. (tragedy)

Well, the pit began, after the beginning of the page hit, put into the SSM framework, the problem arises from the beginning is 404 address can not be found, using absolute positioning no, the browser error has always been the wrong address. Here I spent 2 hours, and then with a very helpless mood, the layer of the folder into the JS file, inexplicably good, I ...

It

The use of the Skin folder, JS folder, CSS folder, and then the introduction of the page

Then there is the mistake:

It's true. Later I put the skin folder to JS is somehow good. Represents a layer just used.

And then it's the beginning of the big pit.

Pop-up layer flashback, finally found that is the form of the problem, think impossible, layer can not be placed in form form,

Finally, only to know

I used the button in the form form, when clicked will trigger the default event, and form action I did not fill, so is the popup layer flash back!! And then I die. Put the page into the SSM framework, the result is a click on the request to the business logic, and I did not write the request, so ...

Here form

And also

Summary: The mood is very happy, but to reflect on, the foundation is not solid, a small mistake, you can waste all day time, so, be careful again carefully.

Use the layer plugin to encounter the pit--layer pop-up layer flash back

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.