[jQuery] Problem with thickbox+form+validation
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have one html who call one iframe with
ajax content via thinkbox</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The link in ths html is that:</FONT></DIV>
<DIV><FONT face=Arial size=2><a id="not_mail"
href="enviarmail.php?option=email&nid=11967&height=245&width=640"
title="Send this newsl" class="thickbox"></a></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My problem is when i click in this link all the
iframe is loaded but when it finish i get this error in ff</FONT></DIV>
<DIV><SPAN
class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"><FONT
face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN
class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened">$.validator
has no properties</SPAN></DIV>
<DIV><SPAN
class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"></SPAN> </DIV>
<DIV><SPAN
class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"><FONT
face=Arial size=2>So i click out of the thinkbox and it close, withount reload
the page i press again in the link, and now the content
appear</FONT></SPAN></DIV>
<DIV><SPAN
class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"><FONT
face=Arial size=2>If i test the script alone it work perfect, but not calling
the thickbox</FONT></SPAN></DIV>
<DIV><SPAN
class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"><FONT
face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN
class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"><FONT
face=Arial size=2>Any1 have an idea why i getting this
error?</FONT></SPAN></DIV>
<DIV><SPAN
class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"><FONT
face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN
class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"><FONT
face=Arial size=2>Thanks in advance</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The enviarmail.php script show the next
html</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "<A
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</A>"><BR><html
xmlns="<A href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"
xml:lang="es-ES" lang="es-ES"><BR><head><BR><meta
http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/></FONT></DIV>
<DIV><FONT face=Arial size=2><script src="js/jquery-latest.pack.js"
type="text/javascript"></script><BR><script src="js/jquery.form.js"
type="text/javascript"></script><BR><script src="js/metadata.js"
type="text/javascript"></script><BR><script
src="js/jquery.validate.js"
type="text/javascript"></script><BR><script
type="text/javascript"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>$(document).ready(function() {</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>
$.validator.setDefaults({<BR> debug:
true<BR> });</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> $().ready(function()
{</FONT></DIV>
<DIV><FONT face=Arial size=2> var v =
$("#enviarmail_form").validate({<BR>
submitHandler: function(form)
{<BR>
jQuery(form).ajaxSubmit({<BR>
dataType:
"json",<BR>
after: function(result)
{<BR>
if(result.status)
{<BR>
v.showErrors(result.data);<BR>
v.focusInvalid();<BR>
}<BR>
}<BR>
});<BR>
}<BR> });<BR>});<BR>
jQuery("#reset").click(function()
{<BR>
v.resetForm();<BR> });<BR>});</FONT></DIV>
<DIV><FONT face=Arial size=2></script></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></head><BR><body></FONT></DIV>
<DIV><FONT face=Arial
size=2>
<form action="enviarmail.php" name="enviarmail_form" id="enviarmail_form"
method="post"><BR>
<label for="envio_emails">Correo/s
electrónico/s</label><BR>
<input name="envio_emails" id="envio_emails" value="<A
href="mailto:a1@a1.com">a1@a1.com</A>, <A href="mailto:b2@b2.com">b2@b2.com</A>"
class="{required:true,minLength:10}" type="text" /><BR>
***********</FONT></DIV>
<DIV><FONT face=Arial size=2>
***********</FONT></DIV>
<DIV><FONT face=Arial
size=2>
</form><BR> </body><BR></html><BR></DIV>
<DIV><BR></DIV></FONT><!-- SPAMfighter Signature -->
<hr>Estoy utilizando la versión gratuita de SPAMfighter para usuarios privados.<br />Ha eliminado 2160 correos spam hasta la fecha.<br />Los abonados no tienen este mensaje en sus correos.<br />¡Pruebe <a href="http://www.spamfighter.com/les">SPAMfighter</a> gratis ya!<br /></BODY></HTML>