-
AuthorPosts
-
December 19, 2008 at 8:05 pm #136371
Hi everyone,
On my site http://www.spiele4us.org I have the standard Joomla 1.5.7 Production/Stable registration page + JA Purity.
I have changed only the template layout of components/com_user/views/register/tmpl/default.php
to provide a few clearer error messages for the field validation but nothing drastic.The validation works fine on Firefox (text and box turns red when fields are incorrectly filled out)
On IE6 + 7 nothing happens…
When I change the template to e.g. rhuk_milkyway everything works fine in both IE browsers
The url for the registration page is http://www.spiele4us.org/Neuen-Account-anlegen.html
Any suggestions gratefully received…
December 20, 2008 at 4:58 pm #283629The site has a JSCook menu.
When I remove the call to the JSCook script (includes/js/JSCookMenu.js) then everything is working again in IE.Found if the validate.js & mootools.js are called after the JSCookMenu.js script everything works.
To do this change the 2 script calls in the head by commenting out and inserting these lines in
libraries/joomla/html/html/behavior.php
line 35
function mootools($debug = null)
{
$task = JRequest::getVar( 'task' );// get the task variable in url
static $loaded;// Only load once
if ($loaded) {
return;
}// If no debugging value is set, use the configuration setting
if ($debug === null) {
$config = &JFactory::getConfig();
$debug = $config->getValue('config.debug');
}// TODO NOTE: Here we are checking for Konqueror - If they fix thier issue with compressed, we will need to update this
$konkcheck = strpos (strtolower($_SERVER['HTTP_USER_AGENT']), "konqueror");if ($debug || $konkcheck) {
JHTML::script('mootools-uncompressed.js', 'media/system/js/', false);
}
elseif ($task == 'register'){
JHTML::script('mootoolsx.js', 'media/system/js/', false);//if task is register incl fake file
} else {
JHTML::script('mootools.js', 'media/system/js/', false);
}
$loaded = true;return;
}
And line 67function formvalidation() {
//JHTML::script('validate.js' );
}
and add these lines to your template index.php in my case after the div id=”ja-mainbody”
<?php if( JRequest::getVar( 'task' ) == 'register' )echo '
<script type="text/javascript" src="http://your_site/media/system/js/mootools.js"></script>
<script type="text/javascript" src="http://your_site/media/system/js/validate.js"></script>'
?>Doesn’t seem to break anything…
-
AuthorPosts
This topic contains 2 replies, has 1 voice, and was last updated by lumo 15 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum