The form does display correctly on one of my pages: http://www.tecb2b.com/about.html but all other pages shows three dots instead. Any suggestions?
Bill
For some reason the mootools library is not loaded on the pages the extension is not working.
You need to identify what is preventing it from loading and stop this behavior.
Alex Dobrin
Algis Info Grup
Follow me on Twitter
I have the same problem - just ... and no form
I have a Javascript error "Calendar not defined"
I tried turning off all modules but I still get the error on that page.
I tried to take out the code:
if ($user->get('guest') == 1) {
$headerstuff = $this->getHeadData();
$headerstuff['scripts'] = array();
$this->setHeadData($headerstuff); }
from the index.php but this just caused a fatal error.
Any other ideas on how to identify the problem?
Alex,
That was it. I actually had mootools disabled in the rt_afterburner template that I'm using, so if aiContactSafe requires mootools it's a mystery as to why it was working on the one page.
I've enabled mootools now and aiContactSafe now works correctly with no other ill effects.
Thanks for your speedy and insightful reply.
Bill
Gina wrote:
I tried turning off all modules but I still get the error on that page.
I tried to take out the code:
if ($user->get('guest') == 1) {
$headerstuff = $this->getHeadData();
$headerstuff['scripts'] = array();
$this->setHeadData($headerstuff); }
from the index.php but this just caused a fatal error.
This means you didn't remove it correctly. Make sure you removed the "<?php" and "?>" that is in front and at the end of that code.
Bill Jenkins wrote:
I've enabled mootools now and aiContactSafe now works correctly with no other ill effects.
Happy to hear that. 
Alex Dobrin
Algis Info Grup
Follow me on Twitter
I've just used the form by adding a new menu item and chosen the type as aicontactsafe, rather than using the {aicontactsafeform pf=1} and the form is now appearing OK.
I'm very new to Joomla so I didn't know I could do it this other way. Thanks for your help, and hope I haven't wasted your time. I don't know why the other way didn't work though.
If you can post a link to the page that was not working I can take a look.
It should work ( the extension is working fine ) in both ways if mootools was loading and the plugin aiContactSafeForm was installed and activated.
Alex Dobrin
Algis Info Grup
Follow me on Twitter
Here's the link: http://www.datapa.com/NewWebsite/index. … ;Itemid=73
(site is a work in progress! got menu issues)
I have realised that I do need to embed the form in an article as I need to add other things to the page, so if you could give me tips to get that working, that would be great.
Thanks
I'm guessing that is a templatemonster.com template and you need to remove their code preventing mootools ( default javascript library oj Joomla ) from loading.
That is done modifying the index.php file and removing this lines:
<?php
$user =& JFactory::getUser();
if ($user->get('guest') == 1) {
$headerstuff = $this->getHeadData();
$headerstuff['scripts'] = array();
$this->setHeadData($headerstuff); }
?>
Alex Dobrin
Algis Info Grup
Follow me on Twitter
I tried removing those lines, but it is still not working:
/**
*$user =& JFactory::getUser();
*if ($user->get('guest') == 1) {
*$headerstuff = $this->getHeadData();
*$headerstuff['scripts'] = array();
*$this->setHeadData($headerstuff); }
*/
and using {aicontactsafeform pf=1} to call the form
Any other ideas?
Thanks
Now the mootools library is loading but you have a javascript conflict with it.
I'm guessing it is generated because you're loading the top menu twice, since the jquery code contains "jQuery.noConflict();".
Try removing one of the menus.
Alex Dobrin
Algis Info Grup
Follow me on Twitter
I've got rid of the 2nd menu, but form is still not appearing.
I have a javascript error:
$("aiContactSafe_form_1").setHTML is not a function
[Break on this error] $('aiContactSafe_form_1').setHTML('Please wait ...');
Any ideas?
Page link is: http://www.datapa.com/NewWebsite/index. … ;Itemid=75
You have a javscript conflict with mootools.
Your site is loading jquery twice ( jquery00.js and jquery.js ).
I'm guessing that if you modify your template so jquery will be load only once everything will work fine.
Alex Dobrin
Algis Info Grup
Follow me on Twitter
Happy I could help you. 
Alex Dobrin
Algis Info Grup
Follow me on Twitter
Sorry, you need to contact the developer of that script to make it not conflict with mootools.
After the second call of jquery the noConflict function is called so maybe it will work if you let the first one load and comment out the second one.
Alex Dobrin
Algis Info Grup
Follow me on Twitter
Forum Legend: