Validation doesn't work in Firefox

rahulngupta 29 Sep, 2009
Hello,

Have browsed through the various topics on the forum and have tried the various solutions, but still am not able to get the form to validate in Firefox. Works fine in IE7.

What is strange is that this was working perfectly fine a few days ago. The link to the form is:
http://www.rtination.com/index.php?option=com_chronocontact&Itemid=8

The solutions I have tried:
1. This works fine without the template
2. Tried installing the joomla extension to remove mootools and jquery conflicts.. Did not help

Kindly help me out on this issue. Thanks

Regards
Rahul
nml375 29 Sep, 2009
Hi Rahul,
You've got some unbalanced div-tags, which causes firefox to close the form-tag prematurely. Hence, most of your inputs end up outside the form, and livevalidation will disregard them. Most likely, you are missing a "form_item" class div-tag in your heading:
   <div style="background-color:#357EC7;height:10px">
    <div class="cfclear"> </div>
   </div>

<!-- missing tag here, <div class="form_item"> -->
   <div class="form_element cf_heading">
    <b>powered by <a href="http://www.rtination.com" target="_blank">rtination.com</a> </b>
   </div>
   <div class="cfclear"> </div>
  </div>
  <div >
   <div class="form_element cf_heading" >
    <h3> Applicant Details</h3>
   </div>
   <div class="cfclear"></div>
  </div>


/Fredrik
GreyHead 29 Sep, 2009
Hi Rahul,

I suggest that you disable the multimedia box plugin and see if that fixes the problem with the form.

Bob
rahulngupta 29 Sep, 2009
Thanks a ton!! Just adding a Div tag at the starting and end of the form did the trick..

The solution just made the hours i spent on the problem worthwhile

@greyhead - Have already disabled the Multimedia box.. I do not know for some reason the js and css are still loaded. I tried deleting the plugin, but then for some strange reason I just couldnt access the site. The site would just show a blank page. I installed it back again and things are back to normal now!!

loads of thanks.. You guys are great!!
silentskillz1 30 Sep, 2009
I had pretty much the same problem. I have to slow way down otherwise I'll miss a <div> here and there or forget to close one out....frustrating to say the least 🤣
nml375 30 Sep, 2009
Personally, I find xhtml/xml validators a very valuable tool when dealing with html-code with multiple layers of div/span. I recommend http://validator.w3.org/

A typical set of errors when you've got unbalanced div's in forms is something like this:
Error: Line 2418, Column 6: end tag for "form" omitted, but OMITTAG NO was specified
Info: Line 517, Column 33: start tag was here
Error: Line 2421, Column 15: end tag for element "form" which is not open

These are taken from your current form layout, so that would suggest you still got some issues with your div-tags.
Looking at the HTML Tidy output also reveals that the Joomla security token is positioned outside the form, so your form might work unreliably with some browsers if you enable the token check - most likely as a result of the above errors.

/Fredrik
This topic is locked and no more replies can be posted.