For Joomla 3.x don’t use document.id(‘xxx’)
Dimitris
Yeni Üye
Posts: 2
10 yıl 1 ay önce #444
Yazan: Dimitris
For Joomla 3.x don’t use document.id(‘xxx’), Dimitris tarafından oluşturuldu
Joomla 3.x is supporting IE8 and newer. Using this legacy mootools code is useless. For example the following code:Can be: Without any compromise.
Recently I propose removing these legacy mootools methods in Joomla PR
Thanks Dimitris
<script type="text/javascript">
js = jQuery.noConflict();
js(document).ready(function() {
});
Joomla.submitbutton = function(task)
{
if (task == 'basic.cancel') {
Joomla.submitform(task, document.getElementById('basic-form'));
}
else {
if (task != 'basic.cancel' && document.formvalidator.isValid(document.id('basic-form'))) {
Joomla.submitform(task, document.getElementById('basic-form'));
}
else {
alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED')); ?>');
}
}
}
</script>
if (task != 'basic.cancel' && document.formvalidator.isValid(document.getElementById('basic-form'))) {
Recently I propose removing these legacy mootools methods in Joomla PR
Thanks Dimitris
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Andres Maeso
Platin Üye
Posts: 338
10 yıl 1 ay önce #446
Yazan: Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Andres Maeso tarafından For Joomla 3.x don’t use document.id(‘xxx’) konusunda yanıtlandı
Hey there!
Thanks for your feedback, actually it's a good idea, but as you probably know we stick to Joomla Standards, so we can't remove them until they're removed from Joomla Core. But please, do not hesitate to come back to us when they accept the PR
Regards,
Andrés.
Thanks for your feedback, actually it's a good idea, but as you probably know we stick to Joomla Standards, so we can't remove them until they're removed from Joomla Core. But please, do not hesitate to come back to us when they accept the PR
Regards,
Andrés.
Andrés Maeso
Customer relations manager at Joomla Component Creator.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Dimitris
Yeni Üye
Posts: 2
9 yıl 10 ay önce #582
Yazan: Dimitris
Dimitris tarafından For Joomla 3.x don’t use document.id(‘xxx’) konusunda yanıtlandı
FYI Joomla 3.4 is scheduled for mid February and has those changes. Also There is a JTHML::(behavior.formvalidator); instead of the JTHML::(behavior.formvalidation); which uses only jQuery.
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Andres Maeso
Platin Üye
Posts: 338
9 yıl 10 ay önce #583
Yazan: Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Andres Maeso tarafından For Joomla 3.x don’t use document.id(‘xxx’) konusunda yanıtlandı
Thank you Dimitris, duly noted. I'll pass it to our developers.
Andrés Maeso
Customer relations manager at Joomla Component Creator.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Sayfa oluşturma süresi: 0.054 saniye