hello,
i'm running with joomla 1.6 and chronoform V4_rc3.11
i use a jquery fonction for show hide some field of my form whoes is really long.
because mootool and jquery are not friend i need jQuery.noConflict();.
and that was working from a long.... but... one day... i dont know when the show hide fonction does't work anymore... i go to look my custom code and i see jQuery.noConflict(); are not there anymore.
i think well maybe one day i look at this and i cut and not copy wathever just put it again... but nothing to do my form don't want to hear about the noconflict fonction anymore. i write into a custom elment pure code. save then save the form. i load the custom code and the var jQuery.noConflict();
as desapear. just that, function the other are ok :-S soo strange look like filtred but i'm the super admin i choose no filter.
what happen to me?
that look like a gremlins or a bad spirit somwhere.
my code is
but need to be
thank to your help
i'm running with joomla 1.6 and chronoform V4_rc3.11
i use a jquery fonction for show hide some field of my form whoes is really long.
because mootool and jquery are not friend i need jQuery.noConflict();.
and that was working from a long.... but... one day... i dont know when the show hide fonction does't work anymore... i go to look my custom code and i see jQuery.noConflict(); are not there anymore.
i think well maybe one day i look at this and i cut and not copy wathever just put it again... but nothing to do my form don't want to hear about the noconflict fonction anymore. i write into a custom elment pure code. save then save the form. i load the custom code and the var jQuery.noConflict();
as desapear. just that, function the other are ok :-S soo strange look like filtred but i'm the super admin i choose no filter.
what happen to me?
that look like a gremlins or a bad spirit somwhere.
my code is
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
// bha oué sa, sa evite les conflic
var $j =
$j(document).ready(function() {
// choix du texte pour la fonction toogle
var showText='+/-';
var hideText='+/-';
// initialisation de la variable de visibilité
var is_visible = false;
// hé hop un petit tour de passe passe avec le css
$j('.toggle').prev().append(' (<a href="#" class="toggleLink">'+showText+'</a>)');
$j('.toggle').hide();
// tu clique et t'inverse la variable de visibilité logique non
$j('a.toggleLink').click(function() {
is_visible = !is_visible;
// ici c pour faire joli (fonction de déploiement)
//$j('.toggle').hide();$('a.toggleLink').html(showText);
$j(this).parent().next('.toggle').toggle('slow');
return false;
});
});
</script>
<?php
// recevoir l'utilisateur joomla et le mettre dans la variable user
$user = &JFactory::getUser();
?>
<!-- un saut de ligne pour faire joli -->
<br />
<!-- le champ avec la variable user -->
nombre de la mercantil <input type="text" name="username" id="username" size="20"
maxlength="40" value="<?= $user->name; ?>" />
but need to be
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
// bha oué sa, sa evite les conflic
var $j = jQuery.noConflict();
$j(document).ready(function() {
// choix du texte pour la fonction toogle
var showText='+/-';
var hideText='+/-';
// initialisation de la variable de visibilité
var is_visible = false;
// hé hop un petit tour de passe passe avec le css
$j('.toggle').prev().append(' (<a href="#" class="toggleLink">'+showText+'</a>)');
$j('.toggle').hide();
// tu clique et t'inverse la variable de visibilité logique non
$j('a.toggleLink').click(function() {
is_visible = !is_visible;
// ici c pour faire joli (fonction de déploiement)
//$j('.toggle').hide();$('a.toggleLink').html(showText);
$j(this).parent().next('.toggle').toggle('slow');
return false;
});
});
</script>
<?php
// recevoir l'utilisateur joomla et le mettre dans la variable user
$user = &JFactory::getUser();
?>
<!-- un saut de ligne pour faire joli -->
<br />
<!-- le champ avec la variable user -->
nombre de la mercantil <input type="text" name="username" id="username" size="20"
maxlength="40" value="<?= $user->name; ?>" />
thank to your help