![]() |
|
||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Is there a way to handle javascript functions on a different server?
Basically, when a website html loads, is there a way to pick out a javascript function you want to be run on another server, run it on that server (so it doesn't run on the original server which the html originated from), send any values it may return back in, and then continue to load the site? Without having access to the original server?
|
|
|||
|
Chris F is correct that most Javascript implementations are executed on the Client, but a Server may also construct an HTML page using JavaScript before serving to the User.If the Javascript is a client implementation, it's still possible to place all your Javascripts in a single file downloaded from a server different than the main webserver. This isn't much different in concept than serving graphics from a server different than the server serving HTML.Offhand, I'm having trouble trying to think of a reason why JavaScript should be offloaded to another machine if you're building the HTML pages with JavaScript Server-side.
|