[jQuery] Re: jQuery Validation Fails in IE
I was able to work around it by removing the umlauts ÄÖÜ from the Validate plugin regex. I'm suspecting this happens when the page is UTF8-encoded, Yes, that was the reason. I found the issue was discussed in the comments section of Jörn's page http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Jörn suggests to specify the encoding when loading the script: script type=text/javascript src=jquery.validate.js charset=ISO-8859-1 /script Bernd
[jQuery] Re: jQuery Validation Fails in IE
WebolizeR escribió: On Aug 13, 2:55 pm, SeViR [EMAIL PROTECTED] wrote: if IE cannot handle object properties how can we configure that, is there another method to configure the plugin which I donot know? tHanks Simply check if you have a final comma in the list of values. CORRECT IN ALL BROWSER: object={ property1: value1, property2: value2// - I not have a final comma } CORRECT IN BROWSER NOT IE: object={ property1: value1, property2: value2,// - THIS COMMA GENERATES A FAIL IN IE JS ENGINE } -- Best Regards, José Francisco Rives Lirola sevir1ATgmail.com SeViR CW · Computer Design http://www.sevir.org Murcia - Spain
[jQuery] Re: jQuery Validation Fails in IE
On Aug 13, 2007, at 8:40 AM, WebolizeR wrote: var myobject = {property: value,} // fail in IE if IE cannot handle object properties how can we configure that, is there another method to configure the plugin which I donot know? It *can* handle object properties. You just have to remove the trailing comma, as Mike and José suggested: var myobject = {property: value} // will work in IE --Karl
[jQuery] Re: jQuery Validation Fails in IE
final code is here and problem goes on Note: '); after the script is related to PHP code, it cannot cause the problem, it's my problem when I am selecting the text to copy and paster here :D script language=JavaScript !-- $().ready(function() { // validate the form when it is submitted $(#formApp).validate({ messages: { order_name: Please enter your firstname and surname, order_email: Please enter your email, order_phone: { required: Enter your phone number with area code, minLength: Check your phone number, number: Please enter only numbers } } }); }); //-- /script' On Aug 13, 4:08 pm, WebolizeR [EMAIL PROTECTED] wrote: I got it and changed the JS code like below, but it still fails in IE, it submits the form without any validation script language=JavaScript !-- $().ready(function() { // validate the form when it is submitted $(#formApp).validate({ messages: { order_name: Please enter your firstname and surname order_email: { required: Please enter your email }, order_phone: { required: Enter your phone number with area code, minLength: Check your phone number, number: Please enter only numbers } } }); }); //-- /script' ); tHanks... On Aug 13, 3:48 pm, SeViR [EMAIL PROTECTED] wrote: WebolizeR escribió: On Aug 13, 2:55 pm, SeViR [EMAIL PROTECTED] wrote: if IE cannot handle object properties how can we configure that, is there another method to configure the plugin which I donot know? tHanks Simply check if you have a final comma in the list of values. CORRECT IN ALL BROWSER: object={ property1: value1, property2: value2// - I not have a final comma} CORRECT IN BROWSER NOT IE: object={ property1: value1, property2: value2,// - THIS COMMA GENERATES A FAIL IN IE JS ENGINE } -- Best Regards, José Francisco Rives Lirola sevir1ATgmail.com SeViR CW · Computer Design http://www.sevir.org Murcia - Spain
[jQuery] Re: jQuery Validation Fails in IE
WebolizeR, I got it and changed the JS code like below, but it still fails in IE, it submits the form without any validation script language=JavaScript !-- $().ready(function() { // validate the form when it is submitted $(#formApp).validate({ messages: { order_name: Please enter your firstname and surname order_email: { required: Please enter your email }, order_phone: { required: Enter your phone number with area code, minLength: Check your phone number, number: Please enter only numbers } } }); }); //-- /script The above code only defines error messages--it does not actually apply any validation rules. You need to define some rules for it to actually validate: $(#formApp).validate({ rules: { order_name: required, order_email: { required: true, email: true }, order_phone: { required: true, minLength: 10, number: true } }, messages: { order_name: Please enter your firstname and surname order_email: { required: Please enter your email }, order_phone: { required: Enter your phone number with area code, minLength: Check your phone number, number: Please enter only numbers } } }); -Dan
[jQuery] Re: jQuery Validation Fails in IE
I got it and changed the JS code like below, but it still fails in IE, it submits the form without any validation script language=JavaScript !-- $().ready(function() { // validate the form when it is submitted $(#formApp).validate({ messages: { order_name: Please enter your firstname and surname order_email: { required: Please enter your email }, order_phone: { required: Enter your phone number with area code, minLength: Check your phone number, number: Please enter only numbers } } }); }); //-- /script' ); tHanks... On Aug 13, 3:48 pm, SeViR [EMAIL PROTECTED] wrote: WebolizeR escribió: On Aug 13, 2:55 pm, SeViR [EMAIL PROTECTED] wrote: if IE cannot handle object properties how can we configure that, is there another method to configure the plugin which I donot know? tHanks Simply check if you have a final comma in the list of values. CORRECT IN ALL BROWSER: object={ property1: value1, property2: value2// - I not have a final comma} CORRECT IN BROWSER NOT IE: object={ property1: value1, property2: value2,// - THIS COMMA GENERATES A FAIL IN IE JS ENGINE } -- Best Regards, José Francisco Rives Lirola sevir1ATgmail.com SeViR CW · Computer Design http://www.sevir.org Murcia - Spain
[jQuery] Re: jQuery Validation Fails in IE
Final code is below but it still fails and submits the form without any validation, I hate IE, Firefox works fine... $(#formApp).validate({ rules: { order_name: required, order_email: { required: true, email: true }, order_phone: { required: true, minLength: 10, number: true } }, messages: { order_name: Please enter your firstname and surname, order_email: { required: Please enter your email, email: not correct email }, order_phone: { required: Enter your phone number with area code, minLength: Check your phone number, number: Please enter only numbers } } }); On Aug 13, 4:15 pm, Dan G. Switzer, II [EMAIL PROTECTED] wrote: WebolizeR, I got it and changed the JS code like below, but it still fails in IE, it submits the form without any validation script language=JavaScript !-- $().ready(function() { // validate the form when it is submitted $(#formApp).validate({ messages: { order_name: Please enter your firstname and surname order_email: { required: Please enter your email }, order_phone: { required: Enter your phone number with area code, minLength: Check your phone number, number: Please enter only numbers } } }); }); //-- /script The above code only defines error messages--it does not actually apply any validation rules. You need to define some rules for it to actually validate: $(#formApp).validate({ rules: { order_name: required, order_email: { required: true, email: true }, order_phone: { required: true, minLength: 10, number: true } }, messages: { order_name: Please enter your firstname and surname order_email: { required: Please enter your email }, order_phone: { required: Enter your phone number with area code, minLength: Check your phone number, number: Please enter only numbers } } }); -Dan
[jQuery] Re: jQuery Validation Fails in IE
WebolizeR, Final code is below but it still fails and submits the form without any validation, I hate IE, Firefox works fine... I suspect you have another problem that causing IE to fail before it gets to the validation. Can you provide a URL example? -Dan
[jQuery] Re: jQuery Validation Fails in IE
you can check the example from here : http://nexus.di-tasarim.com/index.php?option=com_nexusact=gallerytask=orderid=32 tHanks again On Aug 13, 4:38 pm, Dan G. Switzer, II [EMAIL PROTECTED] wrote: WebolizeR, Final code is below but it still fails and submits the form without any validation, I hate IE, Firefox works fine... I suspect you have another problem that causing IE to fail before it gets to the validation. Can you provide a URL example? -Dan
[jQuery] Re: jQuery Validation Fails in IE
Anything you can find false, site is Joomla based and component is developed by me... On Aug 13, 4:48 pm, WebolizeR [EMAIL PROTECTED] wrote: you can check the example from here : http://nexus.di-tasarim.com/index.php?option=com_nexusact=galleryta... tHanks again On Aug 13, 4:38 pm, Dan G. Switzer, II [EMAIL PROTECTED] wrote: WebolizeR, Final code is below but it still fails and submits the form without any validation, I hate IE, Firefox works fine... I suspect you have another problem that causing IE to fail before it gets to the validation. Can you provide a URL example? -Dan
[jQuery] Re: jQuery Validation Fails in IE
Hi, I have just had a similar problem - this actually happens only with IE6, IE7 is fine. I was able to work around it by removing the umlauts ÄÖÜ from the Validate plugin regex. I'm suspecting this happens when the page is UTF8-encoded, which is the case with your page and the page where I experienced it. I'm working hard on a project right now, so I could not yet investigate further... Bernd
[jQuery] Re: jQuery Validation Fails in IE
From: WebolizeR I implement the jQuery Validation plugin(http://bassistance.de/jquery- plugins/jquery-plugin-validation/) to my order form which you can see in http://nexus.di-tasarim.com/index.php?option=com_nexusact=gallerytask=orde rid=32 it works great in Firefox but I cannot succeed to work in in Internet Explorer checked again and again every line of code but cannot find anything wrong, please help me about that Didn't IE give you an error message? A Runtime Error has occurred. Do you wish to Debug? Line: 31 Error: Expected identifier, string or number If you do a View Source on the page, what is line 31? order_email: { required: Please enter your email, }, See the trailing comma on the required: line? I know, I'm all questions and no answers today... :-) -Mike