Forums

ChronoForms JS and CSS loads into the body not head

chrisr 29 Jul, 2009
I'm using Joomla with the ChronoForms plugin. When I use validation on the forms, it obviously requires the ChronoForms JS and CSS to be loaded. The problem is that it loads into the body of my page and not the head tag. It is very important that every page validates as XHTML Transitional and, of course this is preventing any of my forms from validating.

Is there any way to get the JS and CSS to load between the head tags instead of the body?
GreyHead 29 Jul, 2009
Hi Chrisr,

Only by hacking the ChronoForms core code at the moment.

Bob
chrisr 29 Jul, 2009
Has anyone got any tips before I dive into it?
GreyHead 29 Jul, 2009
Hi Chrisr,

I had a version of an earlier release more or less working. You can catch most of it by using the Joomla $doc->addScript() and $doc->addScriptDeclaration() functions. The biggest problem are some of the files in the libraries/includes folders which are Javascript written with PHP.

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