Submit button in a UI dialog box not submitting properly
Hi,
I am working on a CMS project that is within a Spring/Velocity
framework. I have a form that calls some information from a page to be
edited. When the fields are edited, the user will click on a save
button, which calls up the ui dialog box, asking if they are sure they
want to save. In this dialog box, I have the submit button for the
form.
This form works by sending the name element from the submit button to
a java page controller, which then saves the information back to the
file that was to be edited, and the whole page is then reloaded.
My problem is however that although the submit button works, and
reloads the page, the name element is not submitted and therefore the
file is not changed and saved.
Here is part of the code:
<form id="edit" method="post" action="editpage.html"> //ie the
same page that is now open
<div>
* some elements of form that are editable*
</div>
<div id="buttons">
<a href="#" id="saves"><img src="#springTheme('save')" alt="Spara/
publisera" style="margin-bottom: 20px"/></a> //This is the button
that calls the popup dialog
</div>
<!-- hidden div -->
<div id="sureSave" style="padding: 0px">
<p style="padding: 1.5em 1.7em;">Are you sure you want to publish
your changes?
<div class="ui-dialog-buttonpane" style="position: absolute;
bottom: 0px; display: block">
<input type="button" class="button" id="close1" value="Cancel" /