Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

AJAX and cURL

Re: AJAX and cURL

Hi Rahul,

in the J1.7 version of RokModule there's the following code:

$module_name = JRequest::getVar('module', null);
$module_id   = JRequest::getInt('moduleid', null);
$db =& JFactory::getDBO();
if (isset($module_name)) {
    $query = "SELECT DISTINCT * from #__modules where title=" . $db->quote($module_name);
} else {
    $query = "SELECT DISTINCT * from #__modules where id=" . $module_id;
}


This clearly shows that you can provide a URL parameter called moduleid, to retrieve that module. As for the rest of the URL, yes, that will be a little different in J1.7 to what it was in J1.5 because there's no index2.php. I think you had the right format earlier with tmpl=component&type=raw so my guess is that something like this will work:

index.php?option=com_rokmodule&tmpl=component&type=raw&moduleid=XXX

(actually not sure about the "type" parameter but it can't hurt).

As for the MooTools/jQuery debate: I'd just use whatever library is already loaded with your template. Can you check your page source and see what's loaded? Hopefully you'll be able to see if it's MooTools or jQuery, and which version.

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3329 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1695
Total Polls:
6
Total Posts:
5939
Posts this week:
2
User Info:
 
Total Users:
6311
Newest User:
davisc73n
Members Online:
0
Guests Online:
146

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked