hello,
i m getting same problem..
the way i m doing is
//----------------------//
<html>
<head>
<script src="jQuery/jquery-1.3.2.js" type="text/javascript"></script>
<script src="jquery.form.js" type="text/javascript"></script>
<script language="javascript">
$(document).ready(function() {
// bind 'myForm' and provide a simple callback function
$('#myForm').ajaxForm(function() {
alert("Thank you for your comment!");
});
});
// wait for the DOM to be loaded
</script>
</head>
<body>
<form id="myForm" action="comment.php" method="post">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<br />
<input type="submit" value="Upload Pic" />
</form>
</body>
</html>
//----------------------------//
biggimot wrote:
>
> Hi all
>
> I am trying to bind the JQuery form plugin in zend framework.
> I get an error with the sample :confused:
>
> <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!");
> });
>
> return false;
> });
> </script>
>
> and form
>
> <form id="myForm" name="myForm" method="post">
> Name: <input type="text" name="name" />
> Comment: <textarea name="comment"></textarea>
> <input type="submit" value="Submit Comment" />
> </form>
>
> the submit button work but the alert window don't show
>
> in firebug i get this error "$("#myForm").ajaxForm is not a function"
>
> Thanks
> Serge
>
>
--
View this message in context:
http://old.nabble.com/ajaxForm-is-not-a-function-tp17761901s27240p26831146.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.