<html><head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
<script src="http://www.bitbonsai.com/facybox/facybox.js" type="text/javascript"></script>
<script type="text/javascript" src="http://github.com/malsup/form/raw/master/jquery.form.js?v2.43"></script>
<script type="text/javascript">
var options = {
// target identifies the element(s) to update with the server response
beforeSubmit:function() { alert('yes') },
target: '#f2',
resetForm: false,
// success identifies the function to invoke when the server response
// has been received; here we apply a fade-in effect to the new content
success: function() {
$('#f2').fadeIn('slow');
}
};
$(document).ready(function() { // when the page loads
try{
// bind form using ajaxForm
$('#feditform').ajaxForm(options);
}
catch(e) {alert(e.message)}
});
</script>
</head><body>
<a href="#" onclick="jQuery.facybox({ div: '#formDiv' }); return false">Show form</a>
<div id="formDiv" style="display: none;">
<form id="feditform" action="http://plungjan.name/eetest/dump.php" method="post" class="webform">
<fieldset>
<legend>Update File/Box #</legend>
<br>
<div id="dataText">You can edit either the Box # or File #</div>
<input id="id" name="id" value="5751" type="hidden">
<label for="custref">File Reference #:</label><input id="custref" name="custref" class="text" value="" type="text">
<label for="boxref">Box Reference #: </label><input id="boxref" name="boxref" class="text" value="" type="text">
</fieldset><br>
<input class="submit" name="fileedit" value="Update" type="submit">
</form>
</div>
<div id="f2"></div>
</body></html>
|