Validation causes script error in IE

Post any questions you may have here

Validation causes script error in IE

Postby trevb on Tue Feb 26, 2008 4:57 am

Hi all,

I know form validation has been discussed many times in this forum, but I have not found anything specific to my case. I've enabled form validation and either using mootools or prototype validation, I always get the following error in IE:

Error: Object doesn't support this property or method

http://www.agentswelcome.ca/contact

This form works in Firefox, but not in IE.

Any ideas appreciated.

Thx!

Trev
trevb
Fresh Boarder
 
Posts: 13
Joined: Wed Nov 21, 2007 6:10 pm

Re:Validation causes script error in IE

Postby GreyHead on Tue Feb 26, 2008 5:26 am

Hi trevb,

Hard to tell I get the error showing as line 124 which appears to be the search module. Have you tried turning that off to see if there's a conflict?

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3358
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Validation causes script error in IE

Postby trevb on Tue Feb 26, 2008 5:35 am

Hi Bob,

Thanks for the reply. I've tried turning off all modules, and get the same results.

Interestingly enough, on the following form I get an error on line 29..

http://www.agentswelcome.ca/agent-resou ... ation.html

(this form is currently being worked on).

For whatever reason, validation doesn't seem to work. Perhaps everyone should use FireFox :blink: . While that would be idea, it isn't practical and I like the integrated validation provided in the engine.

Any other ideas would be greatly appreciated.

Cheers!

Trev B
trevb
Fresh Boarder
 
Posts: 13
Joined: Wed Nov 21, 2007 6:10 pm

Re:Validation causes script error in IE

Postby trevb on Sat Mar 01, 2008 3:18 am

Me again.

I loaded the default rhuk_solarflare_ii template and to my suprise the validation worked.

So, I'm assuming this could be the result of some kind of javascript conflict? Any insight on what I should be looking for?

Thx!

Trev B
trevb
Fresh Boarder
 
Posts: 13
Joined: Wed Nov 21, 2007 6:10 pm

Re:Validation causes script error in IE

Postby admin on Sat Mar 01, 2008 4:41 am

Hi Trev,

Have you tried bot the mootools and Prototype validations libraries ?

Cheers,

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3081
Joined: Mon Aug 14, 2006 5:29 am

Re:Validation causes script error in IE

Postby trevb on Sat Mar 01, 2008 8:03 am

Hi Max,

Thanks for the reply. I have tried both, with the same results. Unfortunately the validation never takes place.

I've used javascript validation on another form that came as part as a component I purchased. It just seems limited to the built-in validation as part of the chrono forms.

Any other ideas greatly appreciated. I'd be happy to hack away at any advice you can provide.

Cheers!

Trev B
trevb
Fresh Boarder
 
Posts: 13
Joined: Wed Nov 21, 2007 6:10 pm

Re:Validation causes script error in IE

Postby GreyHead on Sat Mar 01, 2008 4:46 pm

Hi Trev,

There's a file you can put on your site to give you at least the FireBug console in IE see here. It might help you diagnose this.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3358
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Validation causes script error in IE

Postby trevb on Sun Mar 09, 2008 5:00 am

Thanks Bob. I've narrowed it down to the combination of template and and the built-in form validation. The error goes away if a disable form validation in the form options.

I'm sure others have run into this in the past. Any other solution short of using a different template?

Many thanks!

Trev B
trevb
Fresh Boarder
 
Posts: 13
Joined: Wed Nov 21, 2007 6:10 pm

Re:Validation causes script error in IE

Postby admin on Sun Mar 09, 2008 7:00 am

Hi Trev,

Please open chronocontact.html.php and remove this line :
Code: Select all
<script src="components/com_chronocontact/js/mootools-release-1.11.js" type="text/javascript"></script>


now, set the validation library to mootools and retest, any updates ?
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3081
Joined: Mon Aug 14, 2006 5:29 am

Re:Validation causes script error in IE

Postby trevb on Mon Mar 10, 2008 2:09 am

Hi there,

Thanks for the reply. Unfortunately this made no difference. I still get the script error. I even get the same error if I chose the prototype library.

Any other thoughts?

Cheers!

Trev B
trevb
Fresh Boarder
 
Posts: 13
Joined: Wed Nov 21, 2007 6:10 pm

Re:Validation causes script error in IE

Postby trevb on Thu Mar 20, 2008 7:54 am

Hi all,

ANy other ideas? Or failing this, can I pay someone to poke around to try to isolate the problem? Or failing this, can I use regular Javascript to validate my forms (with the preference leading to the built-in validation).

Thanks!

Trev Burchett
trevb
Fresh Boarder
 
Posts: 13
Joined: Wed Nov 21, 2007 6:10 pm

Re:Validation causes script error in IE

Postby admin on Thu Mar 20, 2008 11:06 am

Hi Trev,

I looked at your template source code, your joomlashack template is using prototype library, at the same time your ezrealty component using mootools, this is a conflict before going to ChronoForms, can you adjust your site modules so only 1 library is used and then use the same one with chronoforms then see if the error is gone ?

Let me know

Cheers

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3081
Joined: Mon Aug 14, 2006 5:29 am

Re:Validation causes script error in IE

Postby trevb on Thu Mar 20, 2008 11:13 pm

Hi Max,

I very much appreciate your help on this.

You are correct. I've modified the templates index.php file and ran some tests. Essentially, I can use both validation types in IE now (mootools and prototype) if I remove the following from the EZ Realty includes header file:

script type="text/javascript" src="<?php echo $mosConfig_live_site; ?>/components/com_ezrealty/library/slimbox/js/mootools.js"></script>

This is ok, because I can live without the slimbox features. That being said however, having removed the reference to the mootools script used by EZ Realty, I'm puzzled as to why both validation types now work. I would expect mootools validation to fail with the call to this script, but why is prototype failing? I would expect that putting this back in that I'd still be able to use the prototype validation.

Any ideas?

Thanks again for taking the time to help Max. Love your component, and the support so far has been excellent!

Cheers!

Trev B
trevb
Fresh Boarder
 
Posts: 13
Joined: Wed Nov 21, 2007 6:10 pm

Re:Validation causes script error in IE

Postby admin on Sat Mar 22, 2008 3:53 am

Hi Trev,

I cant understand, you mean that right now both validation works ? mootools and proto ? if so then whats the problem!! :)

Cheers

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3081
Joined: Mon Aug 14, 2006 5:29 am

Re:Validation causes script error in IE

Postby trevb on Sat Mar 22, 2008 6:25 am

Hi Max,

Don't get me wrong, I'm quite happy to have either working. However having removed the reference to mootools in the EZ Realty header file, both validation types now work. So the question is when I leave this reference to mootools in the template index file, I would expect mootools to fail, but prototype to work.

Is this correct?

Many thanks!

Trev B
trevb
Fresh Boarder
 
Posts: 13
Joined: Wed Nov 21, 2007 6:10 pm

Next

Return to ChronoForms Questions & Answers

Who is online

Users browsing this forum: Ask Jeeves [Bot], Google [Bot], MSNbot Media and 4 guests