Hello,
I'm using Chronoforms 4.0 RC3.5.2 and it has been working perfect until now. When I save one of my forms - even without changing anything on that form - it will ignore the dFilter.js script which I'm using for inputfiltering.
During my own research I found out that it's related to my current Joomla version which is 2.5.9 because on my old Joomla 2.5.1 site, which I had local in MAMP, everything is still working.
I uploaded the 2.5.1 site to the same server in a separate directory and database to rule out that it has anything to do with my local installation. But it's still working. I can save forms on the 2.5.1 site and even restore them into the 2.5.9 site and everything is still okay. As soon as I save a form directly on the 2.5.9 site the dFilter.js script is ignored again.
The dFilter.js script is loaded as:
I can't figure out what is going on between Chronoforms and this Joomla version.
Do you have any idea? Any help would be great. Thanks in advance.
Best regards,
Peter.
I'm using Chronoforms 4.0 RC3.5.2 and it has been working perfect until now. When I save one of my forms - even without changing anything on that form - it will ignore the dFilter.js script which I'm using for inputfiltering.
During my own research I found out that it's related to my current Joomla version which is 2.5.9 because on my old Joomla 2.5.1 site, which I had local in MAMP, everything is still working.
I uploaded the 2.5.1 site to the same server in a separate directory and database to rule out that it has anything to do with my local installation. But it's still working. I can save forms on the 2.5.1 site and even restore them into the 2.5.9 site and everything is still okay. As soon as I save a form directly on the 2.5.9 site the dFilter.js script is ignored again.
The dFilter.js script is loaded as:
<script type="text/javascript" src="<?php echo $this->baseurl ?>/components/com_chronoforms/js/dFilter.js"></script>
I can't figure out what is going on between Chronoforms and this Joomla version.
Do you have any idea? Any help would be great. Thanks in advance.
Best regards,
Peter.
Hi Peter,
You don't say where you are adding this tag? Please see this FAQ for some notes on adding script snippets and files.
I think also that $this->baseurl probably no longer works, try JURI::root() instead. So the code in a Custom Code action in tht On Load event would be
Bob
PS Looks like a useful script - I found a downloader here but the demo seems to be broken :-(
You don't say where you are adding this tag? Please see this FAQ for some notes on adding script snippets and files.
I think also that $this->baseurl probably no longer works, try JURI::root() instead. So the code in a Custom Code action in tht On Load event would be
<?php
$document =& JFactory::getDocument();
$doc->addScript(JURI::root().'components/com_chronoforms/js/dFilter.js');
?>
Bob
PS Looks like a useful script - I found a downloader here but the demo seems to be broken :-(
Hello,
Thanks for your quick reply. After your suggestion I wanted to verify the broken situation but it suddenly worked as usual. Strange because I tried it many times before. Now I realize that on my regular testsite I had the RSFirewall disabled. I ran some tests and now I understand that it's actually the firewall which is messing up the form.
So I found out that if I save a form while the RSFirewall component is active, the dFilter.js in combination with the form is not working anymore. When I disable the firewall and save the restored form again, everything keeps working.
Thanks a lot for your suggestion about the baseurl format but in this case it's actually the RSFirewall which corrupts something. I never noticed this before. I guess I have to send my question to RSJoomla!
PS I will attach the dFilter.js in case you want to look at it yourself.
Regards,
Peter.
Thanks for your quick reply. After your suggestion I wanted to verify the broken situation but it suddenly worked as usual. Strange because I tried it many times before. Now I realize that on my regular testsite I had the RSFirewall disabled. I ran some tests and now I understand that it's actually the firewall which is messing up the form.
So I found out that if I save a form while the RSFirewall component is active, the dFilter.js in combination with the form is not working anymore. When I disable the firewall and save the restored form again, everything keeps working.
Thanks a lot for your suggestion about the baseurl format but in this case it's actually the RSFirewall which corrupts something. I never noticed this before. I guess I have to send my question to RSJoomla!
PS I will attach the dFilter.js in case you want to look at it yourself.
Regards,
Peter.
This topic is locked and no more replies can be posted.