Alan Burlison wrote:
> John Plocher wrote:
> 
>> Is this AJAX API usable by other nodes in the opensolaris community?
>>
>> i.e., the ARC community needs these lists when creating a new ARC Case...
> 
> It isn't really an API as such, it is more of a technique.  There is a 
> thin wrapper around XMLHttpRequest 
> (http://src.opensolaris.org/source/xref/website/auth/trunk/AuthWebapp/web/javascript/Ajax.js)
>  
> which is used to make the Ajax requests in the browser, and the 
> framework I'm using (Stripes) vectors the AJAX requests onto the 
> appropriate methods in the server code, e.g. 
> http://src.opensolaris.org/source/xref/website/auth/trunk/AuthWebapp/src/java/org/opensolaris/auth/webapp/admin/UserCollectivesAction.java#98
>  
> 
> The server methods then query the database to obtain a collection of 
> Java objects representing the records of interest, and these are 
> converted by the Stripes framework into the corresponding JavaScript 
> which is returned to the browser and evaluated.
> 
> External applications won't be allowed to access the database directly, 
> but there will be an XMLRPC interface which will allow you to obtain the 
>  information you require.  How you ship that data across to the browser 
> really depends on your choice of application framework.


Right.  The "API" I was asking about is the server-side URL that XMLHttpRequest
talks to - I don't have access to the server that the database is running on,
so I can't write the code under that URL...

i.e., the user connects to arc.opensolaris, gets my page, and on my page there
is javascript that needs to get the list of cats/projects...

The browser can't cross connect to auth.opensolaris because of the security
protections in the browser, so it needs to contact arc.opensolaris for the 
lists.

So, the Q is how can I (on arc.opensolaris) get access to the data?  If the
URL is a stable API, then I can have my server grab the data by treating it as
a web service....

I'm assuming from this email that this will be your XMLRPC interface, but that
it isn't there yet?

Clear as mud?

    -John



_______________________________________________
website-discuss mailing list
[email protected]

Reply via email to