Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Service oriented module or plugin
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rostom  
View profile  
 More options Sep 11 2012, 3:24 am
From: rostom <rostom.aghan...@gmail.com>
Date: Tue, 11 Sep 2012 00:24:28 -0700 (PDT)
Local: Tues, Sep 11 2012 3:24 am
Subject: Service oriented module or plugin

Hi All,
I want to develop a custom module or plugin that I can call asynchronously (i.e. via Ajax). How would I go about doing this in Joomla (v2.5)?

The idea is that I will call this method asynchronously from my Javascript code. The module/plugin will then make a call to a 3rd party API (i.e. Youtube) and return back some data in XML or JSON format.  The 3rd party API is REST based and requires a login/pass to be passed in as part of its query, which is why I don't want to call it directly from my JS code.

In the Java (Spring) world, I would do this by writing a class and/or method and associating it with a URL. Then it just becomes a matter of calling this URL from my JS and passing it the proper parameters.  Is there a way to do this in Joomla?

Thanks in advance.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
piotr_cz  
View profile  
 More options Sep 11 2012, 4:32 am
From: piotr_cz <pkoniec...@hotmail.com>
Date: Tue, 11 Sep 2012 01:32:29 -0700 (PDT)
Local: Tues, Sep 11 2012 4:32 am
Subject: Re: Service oriented module or plugin
1) Check out Joomla docs
http://docs.joomla.org/index.php?title=Special%3ASearch&profile=defau...
(beware of outdated docs)
2) Some Joomla packages use ajax (installer, administrator/
com_languages, com_finder)
3) Search forums for similar quesions, this has been discussed here
before
4) For API calls, check out JHttp package
https://github.com/joomla/joomla-platform/tree/staging/libraries/joom...
and JGoogle package

Once you get on track, it's a lot of fun.

On Sep 11, 9:24 am, rostom <rostom.aghan...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
elin  
View profile  
 More options Sep 11 2012, 7:27 pm
From: elin <elin.war...@gmail.com>
Date: Tue, 11 Sep 2012 16:27:52 -0700 (PDT)
Local: Tues, Sep 11 2012 7:27 pm
Subject: Re: Service oriented module or plugin

Also take a look at the Github package in the platform and the JGoogle
package in the platform tracker (unless it was merged) that Aaron wrote and
Diana's packages for Facebook, Twitter and Linked in which should be coming
in as PRs soon.

If it really is YouTube you might want to contribute code to the Google
package.  It's going to  take a long time and a lot of people to cover all
of the APIs they offer.

Elin

Elin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »