On Mon, Jul 19, 2010 at 9:07 PM, Tornau, Christoph <
[email protected]> wrote:

> Dear all (once again ;-) ),
>
> the services of the mashup server are implemented in JavaScript. These
> services are executed on the serverside inside the mashup server. That means
> the call to the addressed service is done by the server after the user
> presses the 'Run'-button and the result information is transfered back to
> the browser after the mashup server recieved a result of the service. I was
> wondering if it is possible to bring all Javascript code to the browser side
> so that the service can be called directly from the client not using the
> mashup server. While all services are Javascript it could be possible to
> switch from server to client just by a configuration switch. Is this
> possible?
>


Client side invocations are restricted by javascript's same-domain policy.
Which simply means that once a javascript file is loaded from a certain
domain, it can "only" make XMLHttpRequests to that domain.

If your web application "and" the addressed service are infact in the same
domain, then you can do a full client side mashup using javascript. But
usually this isn't the case when it comes to mashups. This is why we usually
use server side javascript code to invoke cross domain services and expose
them as a mashup's operations.


Tyrell




>
> Thank you for your answer in advance.
>
> Regards
> Christoph
>
>
>
> _______________________________________________
> Mashup-user mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/mashup-user
>



-- 
Tyrell Perera
Product Manager - WSO2 Mashup Server, WSO2 Gadget Server

WSO2, Inc.; http://www.wso2.com/
"Lean Enterprise Middleware"

http://www.linkedin.com/in/tyrell
http://tyrellperera.blogspot.com
http://twitter.com/tyrellperera
_______________________________________________
Mashup-user mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/mashup-user

Reply via email to