On Thu, Mar 11, 2010 at 12:27 PM, Zoran Jeremic <[email protected]> wrote:
> Hi Luciano,
>
> Thank you very much for your answer. It helps me very much as I was blocked
> to continue my work. I'm basically java programmer and didn't have
> experience with javascript before so please don't mind for my fundamental
> questions.
>
>>Note that i have to access the application trough
>>(http://localhost:8080/sample-intelleo-lpc-webapp/lpc/index.html) to
>>get the javaScript included via relative paths to work.
>
> As I understood this, there is no way to have a javascript outside of the
> Web service application? My idea was to extend some of the existing Web
> application like Elgg, Wiki etc., with additional Learning Web services
> accessible through a popup containers developed with javascript and jQuery.
> This javascript client should communicate with Web services to get its
> functionality. It is possible to let javascript client be part of the same
> application where Web services are stored, and include it in Elgg with
> absolute path to remote javascript file, or to make it be on the same server
> where Elgg is stored and then access Web services from javascript through
> absolute url. I hope you understand my idea, so I would like to hear your
> comment and idea what would be the best possible approach to make all these
> thinks work together.
> Do I have to put all three parts (Web services, javascript client and Elgg)
> in the same application?
>
> Zoran
>

I'm not familiar with ELGG and how it integrates with other
applications, but you could use JSONP from our 2.x code base (there is
an example/testcase using JQuery [1]), or maybe define a proxy
component similar to the idea implemented in [2], which proxy the
calls to the remote service via a json-rpc reference.

[1] 
https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/binding-jsonp-runtime/
[2] 
https://svn.apache.org/repos/asf/tuscany/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite


-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Reply via email to