Hi,
I'm trying to implement nyromodal in my solutions and I'm struck with the
following issue
<script type="text/javascript">
$(function() {
$('#editGeneralDetails').click(function(e) {
e.preventDefault();
$.nyroModalManual({
url: 'edit.php',
modal: true,
resizeable: true
});
return false;
});
});
</script>
<a id="editGeneralDetails" href="#">edit</a>
When I click edit for first time the modal is opened perfectly.
I have placed a button in the modal called "Save Changes" which calls an
ajax script.
I have written my own function which submit the form through ajax post and
in the handler, I close the modal window and set the content in the main
window container is reset using the script below
+ ajax call is made which returns the content
+ following is the handler
if (XMLHTTP.xmlHttpObj.readyState==4 ||
XMLHTTP.xmlHttpObj.readyState=="complete") {
var responseText = XMLHTTP.xmlHttpObj.responseText;
var divObj = document.getElementById("formContainer");
$(responseText).appendTo("#formContainer")
}
=============================
So far everything is fine.
The following lines also set again using the above handler
<a id="editGeneralDetails" href="#">edit</a>
The problem is that when I click the edit link again, nothing happens and
the JS is not triggered.
Any smart solution for this please?
Thanks
Faheem
Hong Kong
Mergedinto: 76