Forums

Validation text wount apper if javascript enabled in yoothem

mcfrojd 01 Oct, 2008
Is there any way to work around this?

If i enable javascript in the yooteme MEE, then the validation text wount appear.
There will be a space as if the text was there but not wisibe, but when turning of javascript in the theme settings for the theme yootheme MEE, the text appears again.
But then other theme functions wount work.

Anyone else know what to do?
GreyHead 01 Oct, 2008
Hi mcfrojd,

It's probably a css mismatch - try looking at the page in FireBug to see what css is being applied.

Bob
mcfrojd 01 Oct, 2008
When looking with firebug i can see that with javascript off in template settings it looks lite this:

<input class="required validation-failed" type="text" size="30" name="name"/>
<div id="advice-required-name" class="validation-advice" style="display: block; visibility: visible; opacity: 1;">Required.</div>

and with javascript enabled the visibility is hidden like this:

input class="required validation-failed" type="text" size="30" name="name"/>
<div id="advice-required-name" class="validation-advice" style="display: block; visibility: hidden; opacity: 1;">Required.</div>

But how do i find out where to look for whats causing this

Im running this installation on a localhost so i cant give any url for you guys to checkout
GreyHead 01 Oct, 2008
Hi mcfrojd,

The only answer I know is to work though the JavaScript to see what could be making this change. Tedious but usually reliable.

Bob
mcfrojd 01 Oct, 2008
If i only know what to look for..
My coding experience is'nt that good im afraid..
Max_admin 01 Oct, 2008
Hi mcfrojd,

you said earlier that while the yoo js is ON you can not see the text but the field moves as if the text is there, correct ? at this moment, press CTRL+A at your keyboard, can you see the text there selected now ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mcfrojd 01 Oct, 2008
No! the text is not there, not in the same colour as the background, but the field boves up andmakes room for the text.
It must be something with the "visible: hidden" statment... but what cause it?
Max_admin 01 Oct, 2008
Ok, try this, put the cursor in the field then click outside, the text doesn't appear ? see if its visibility: hidden; or not

nobody never had this problem, I think its a YOO theme conflict, these YOO themes loads tons of JS and it may be anything!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 01 Oct, 2008
Hi mcfrojd,

You can try forcing the css by putting this in the form html:
<style type="text/css">
<div#advice-required-name {visibility: visible;}
</style>

Bob
mcfrojd 01 Oct, 2008
No the code didnt help..
Minnie Mouse 30 Oct, 2008
i am also seeing this in a yoo theme template. i think it has to do with the yoo validation that it runs...?? anyway, has anyone figured this out...?
Minnie Mouse 30 Oct, 2008
SOLVED: go into com_chronocontact>js>mooValidation.js there is a line in there that adds the visibility: hidden. change to visibility: visible

that's it.

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