Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

SIG Pro not working properly with AJAX

  • GaloreCrew
  • GaloreCrew's Avatar Topic Author
  • Offline
  • New Member
More
15 years 10 months ago #21083 by GaloreCrew
SIG Pro not working properly with AJAX was created by GaloreCrew
Hi,

I am experiencing some problems with SIG Pro not working with a custom ajax component.

What i am doing is pulling content out the DB with AJAX. The thumbnail gallery loads with no problems.
The problem comes in when clicking on a thumbnail image - it loads in a new browser window. Not in a lightbox - I have tried with all the engines.
I think am having a problem with headers as i don't see the javascript include files in my page source - i am not too sure.
Some of the code for my component is as follows:
global $mainframe;
$dispatcher	=& JDispatcher::getInstance();
$db =& JFactory::getDBO();

$sql = "SELECT `introtext`, `title` FROM #__content WHERE `id` = ".$contentID."";
$db->setQuery($sql);
$content = $db->loadObject();

$content->text = $content->introtext;
$params		=& $mainframe->getParams('com_content');

JPluginHelper::importPlugin('content');
$results = $dispatcher->trigger('onPrepareContent', array (& $content, & $params, 0));

echo $content->text;
Link to site: [url=http://chery.galore.co.za?option=com_model_Listing&Itemid=55]Site[/url]
To get to gallery:
click 2nd (Blue Car) Top left
Then click Gallery & 360 Views (Top Menu)
Then on right 3 image links -> click bottom 1(Interior)

All assistance appreciated!

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
15 years 10 months ago #21084 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: SIG Pro not working properly with AJAX
Hi there!

You use AJAX for the updating of the content ( nice effect! )
but when you load the page where the sigpro is executed
you can notice that in the HEAD section of the page aren't loaded the necessary files
of the plugin.

Try to load those files directly into the template!

Thank you!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum