Could you provide a testpage?

Jörn

On Thu, Oct 9, 2008 at 9:05 PM, jonr <[EMAIL PROTECTED]> wrote:
>
> This does not work:
>        $(document).ready(function()
>        {
>
>           $("#menu_move_eq").click( function() {
>                $(".hiddenform").hide();
>                $("#movebox").show();
>            })
>            $("#menu_new_equipment").click( function() {
>                $(".hiddenform").hide();
>                $
> ("#equipmentbox").load("form_equipment.php","",LoadFormEquipment);
>                $("#equipmentbox").show();
>            })
>
>        }
>
>    );
>    function LoadFormEquipment() {
>        $("#commentForm").validate(); /// Fails, never returns.
>        $("#cemail").hide("slow");
>        $("#cemail").show("slow");
>    }
>
> The form_equipment.php:
>  <form class="cmxform" id="commentForm" method="get" action="">
>  <fieldset>
>   <legend>A simple comment form with submit validation and default
> messages</legend>
>   <p>
>     <label for="cname">Name</label>
>     <em>*</em><input id="cname" name="name" size="25"
> class="required" minlength="2" />
>   </p>
>   <p>
>     <label for="cemail">E-Mail</label>
>     <em>*</em><input id="cemail" name="email" size="25"
> class="required email" />
>   </p>
>   <p>
>     <label for="curl">URL</label>
>     <em>  </em><input id="curl" name="url" size="25"  class="url"
> value="" />
>   </p>
>   <p>
>     <label for="ccomment">Your comment</label>
>     <em>*</em><textarea id="ccomment" name="comment" cols="22"
> class="required"></textarea>
>   </p>
>   <p>
>     <input class="submit" type="submit" value="Submit"/>
>   </p>
>  </fieldset>
>  </form>
> Basically it is the demo form from 
> http://docs.jquery.com/Plugins/Validation#Example
> It doesn't work. I thought that by using the callback function,
> everything would be ready for the jquery to parse the form. But
> nothing happens. Is this even possible in jQuery or am I doing
> something wrong?
>
> J.
>

Reply via email to