mootools and JS validation

Please post your suggestions or any hacks you have made here

mootools and JS validation

Postby gg4j on Sat Jan 19, 2008 11:20 pm

Hello guys!!

So I tryed to play around a bit.

I enabled mootools in the frontend of my site,
my purpose was to give hints.
See for that:
www.benintegrati.it

and move the mouse onto the icons at the right.


MT worked fine on other pages, but was not on the page where the chronoform was added.

see for that:
http://www.benintegrati.it/concorso
icons hints not working anymore..


the bad thing is that I did a JS validation that was working fine
with RC1, but it's not with RC4.
hints are no more showned, despite the JS is loaded in the form code to generate the chronoform.

I thought that maybe it causes conflicts...
so i was on purpose to use mootools to validate forms as well to give hints.

There are examples of that.

I tryed to use mootools on a simple html page, to test it on a form, and it works fine.

Unfortunately, if the form is generated with CC inside Joomla it doesent.

I sent you the formcheck I used.
(give credits to the guy who did it!)

If you analyse the code, you'll see that as parameters the guy use the form name,
i tryed to modify it giving "chronoforms_nameform_1", but no results.

Have you ever tryed to use mootools with CC?
It could be good to load down the JS that could be featured by mootools..

Could you give the attached a view and test it as well, in html apart and with CC in Joomla?




I'm happy to contribute to make CC look great!
It is very usefeul! [file name=formcheck.zip size=81028]http://www.chronoengine.com/components/com_fireboard/uploaded/files/formcheck.zip[/file]
gg4j
Senior Boarder
 
Posts: 53
Joined: Fri Nov 02, 2007 11:08 am

Re:mootools and JS validation

Postby GreyHead on Sun Jan 20, 2008 2:05 am

Hi gg4j,

You don't need to enable Mootools in Joomla 1.5 - Joomla uses it and installs it anyhow. You actually have it loaded twice on your home page.

The problem with the ChronoForms page is that both Mootools & Prototype are loaded and they conflict.

Max has added a Mootools option for validation into ChronoForms 2.3.7 for Joomal 1.0.x and I expect that this will be in the next release for Joomal 1.5 as well.

Bob

Image<br><br>Post edited by: GreyHead, at: 2008/01/19 21:06
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: 3176
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:mootools and JS validation

Postby gg4j on Tue Jan 22, 2008 8:40 am

oh i see..
but i did'nt get it how to use mootools if it is already loaded by default in J1.5

should i declare the JS call in the index.php?


when will it be available for CC working in J1.5?

is the 2.3.7 upgrade working for the J1.5 version?
(the 2.5Ja) ?

THANKS!:laugh:
gg4j
Senior Boarder
 
Posts: 53
Joined: Fri Nov 02, 2007 11:08 am

Re:mootools and JS validation

Postby GreyHead on Tue Jan 22, 2008 1:13 pm

Hi gg4j,

Sorry 2.3.7 is only for Joomla 1.0.x still waiting on the Joomla 1.5 version.

You only need to load Mootools if Joomla hasn't already done so - and then you should load the Joomla version to avoid any conflicts.

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: 3176
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany


Return to Suggestions & Hacks

Who is online

Users browsing this forum: No registered users and 3 guests