Hallo!
Auf der Übersichtsseite meines Newssystems gibt es den Punkt "News anlegen" - beim Klick wird das Formular geladen und includet.
Das Beispiel funktioniert wunderbar, solange ich das Formular nicht durch einen AJAX Aufruf include.
Quelle: http://www.malsup.com/jquery/form/
Hat jemand eine Idee? Bin ratlos...
Auf der Übersichtsseite meines Newssystems gibt es den Punkt "News anlegen" - beim Klick wird das Formular geladen und includet.
Code:
onClick="AjaxUpdater('newsAddFormDiv', 'index.php?modul=news&action=getNewsAddForm')"
Code:
<head>
<script type="text/javascript" src="path/to/jquery.js"></script>
<script type="text/javascript" src="path/to/form.js"></script>
<script type="text/javascript">
// wait for the DOM to be loaded
$(document).ready(function() {
// bind 'myForm' and provide a simple callback function
$('#myForm').ajaxForm(function() {
alert("Thank you for your comment!");
});
});
</script>
</head>
<form id="myForm" action="comment.php" method="post">
Name: <input type="text" name="name" />
Comment: <textarea name="comment"></textarea>
<input type="submit" value="Submit Comment" />
</form>
Hat jemand eine Idee? Bin ratlos...

Comment