header problem importing custom form in CF V4 (Joomla 3.0)

christian.gibson 28 Mar, 2013
I already posted a question about header problems in V4 custom forms, but I think my question was misleading. The problem is that my jQuery links seem to be missing in the custom form which I imported to Chronoforms V4 on a Joomla 3.0 site. In the attachment archive I have included the correctly working form in an html page together with the supporting CSS and script folders. When I try to import the form into CF version 4, the links to my jQuery functions and the wufoo.js (my custom form was originally developed from a wufoo form) are not working any more.
Here is the PHP code I included before the form html (with form tags removed just as advised in the Chronoform cookbook):
<?php if ( !$mainframe->isSite()) { return; }
// define a url for the 'clubaero' folder
$clubaero_url = JURI::base() .'components/com_chronoforms/clubaero/';

// define a path for the 'clubaero' folder
$clubaero_path = JPATH_SITE.DS .DS.'components'.DS.'com_chronoforms'.DS.'clubaero'.DS;
$styles = $scripts = array();

// access the Joomla! Document object
$doc =& JFactory::getDocument();

// Add the CSS files
$doc->addStyleSheet($clubaero_url.'css/structure.css');
$doc->addStyleSheet($clubaero_url.'css/form.css');

// Add the JavaScript file
$doc->addScript($clubaero_url.'scripts/clubaero.js');
$doc->addScript($clubaero_url.'scripts/wufoo.js');
$doc->addScript('https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');
?>

Can anyone tell me why the script links are not working in my imported custom form?
GreyHead 28 Mar, 2013
Hi christian.gibson,

I've already answered your other post - please don't double post.

Please post a link to the form so I can take a quick look.

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