Forums

Image Verification Fails on Chromium

meep 07 Mar, 2011
http://www.airtel-atn.com/index.php/register

The image verification fails on this form when accessed from Chromium 8.0.552.237 (70801) Ubuntu 10.10

Failing to complete the Image Verification field does not prevent submission in this browser.

Submitting the form with or without the verification field complete generates a blank Joomla message (red box with X icon).

This form works OK on Chrome OSX/Windows and all other browsers tested.

Any thoughts?

Peter
GreyHead 07 Mar, 2011
Hi Peter,

Sorry for the slow reply. I had to go and hunt down the Chromium installer . . .
I get the same error in Chromium as you do and also in Chrome.

I think that the problem is that you are using the ChronoForms plug-in and Joomla! has helpfully wrapped it in <p> . . . </p> tags. However all of the form code goes in between these and the browser has to decide how to resolve the opening <p> tag.

The code ChronoForms creates is
<span class="cf_alert">
  <ol>
    <li>You have entered an incorrect verification code at the bottom of the form.</li>
  </ol>
</span>


Chromium and Chrome decide (probably correctly*) that the <span> tag is also unclosed and interprets this as
<p><span class="cf_alert"></span></p>
<ol>
  <li>You have entered an incorrect verification code at the bottom of the form.</li>
</ol>


Firefox accepts the span and the unclosed <p> as they are and creates:
<p>
<span class="cf_alert">
  <ol>
    <li>You have entered an incorrect verification code at the bottom of the form.</li>
  </ol>
</span>


I think that the fix is to wrap the plug-in tags with a <div> so that the Text Editor doesn't try to add a <p>
<div>{chronocontact}ReReg{/chronocontact}</div>

Bob

* As <ol> is a block level tag inside a <span> in-line tag
meep 07 Mar, 2011
Bob

Helpful Joomla indeed!

That did the trick. Many thanks, especially for the prompt reply!

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