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