[Solved] How the ChronoForm can be browser independent

raihan 22 Feb, 2013
Hi,
I have created a web site and used the chronoform. It seems, it works properly with Mozilla or Chrome, but doesn't work properly with Internet Explorer.

Specifically, the validation error doesn't show for Internet Explorer and pass that event. What could be the way to work that, pls?

Thank you.


Raihan
raihan 23 Feb, 2013
Hi,
Thanks for your reply. I hv tried as u suggest. But, still it not working. I am using IE9 in my other computer.

I hv used Chronoform PlugIn in one of my page. Then as u replied, I added 'Custom Code' in the Events of my Form's On Load event. In that custom code, I hv just copy/paste the code you referred me. I am not sure, is there any change I may need to do, in that code. Pls guide me.

Thanking you.

Raihan
GreyHead 23 Feb, 2013
Hi Raihan,

Please post a link to your form and I'll take a quick look.

Bob
raihan 24 Feb, 2013
Thanks bob. I have attached my website link, though it's just for test purpose:
http://raihans.co.uk/index.php/homepage/contact-us

But I am not sure, which link u may looking for. Is that website or any backend link, please reply. If u need any back end details, please reply me ur email address. So, I could send it to u.

Thank you.
GreyHead 24 Feb, 2013
Hi raihan,

It looks as though your form is inside <p> tags which is 'illegal' HTML - when IE sees that it ignores the form tags, so the JavaScript that adds the validation can't find them.
<p>
  <span style="color:#afeeee;">
    <span style="font-family: georgia,serif;">
      <form action="http://raihans.co.uk/index.php/homepage/contact-us?chronoform=contact&event=submit" name="contact" id="chronoform_contact" method="post" class="Chronoform">
. . . 

Bob
raihan 24 Feb, 2013
Hi Bob,
Thanx a lot for ur quick reply. I hv used the code in 'On Load' event with 'Custom Code' action as u referred me, as below:
<?php
// Force IE9 to run in IE8 emulation mode to avoid JS errors with Mootools 1.2.5
jimport('joomla.environment.browser');
$browser =& JBrowser::getInstance();
if ( $browser->getBrowser() == 'msie' && $browser->getMajor() == 9 ) {
 $doc =& JFactory::getDocument();
 $doc->setMetaData( 'X-UA-Compatible', 'IE=EmulateIE8', true );
}
?>

You hv sent me another code. I am not sure where and how I may use that. Pls guide me. Still I am just a begginer and know v v little about programming.

Thanking you agian.
GreyHead 24 Feb, 2013
Hi Raihan,

The code in my last post is the HTML from your form page showing that your form is inside <p> tags.

Bob
raihan 25 Feb, 2013
Sorry, then how I may continue,please?
GreyHead 25 Feb, 2013
Hi Raihan,

Remove the <p> tags.

Bob
raihan 27 Feb, 2013
Still not success. I have even take off full parameters as u suggest me. Please help!!! Thank u.
GreyHead 27 Feb, 2013
Hi Raihan,

The <p> tags are still there. Try checking the article and looking at the HTML source.

Bob
raihan 22 Mar, 2013
I have to change mootools-core.js file. then now it's working.
This topic is locked and no more replies can be posted.