Adult Webmaster Forum Adult Affiliates  
Go Back   Adult Webmaster Forum Adult Affiliates > WebmasterBooty.com > Lounge

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2007, 10:09 AM
Junior Member
 
Join Date: Jun 2007
Posts: 1
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?
Reply With Quote
  #2 (permalink)  
Old 06-25-2007, 10:14 AM
Junior Member
 
Join Date: Jun 2007
Posts: 1
JavaScript runs on the client (ie: browser) I thought, whereas .JSP (Java Servlets) can run on a webserver. What are you trying to achieve? ie: Can you provide an example please.Thanks.
Reply With Quote
  #3 (permalink)  
Old 06-25-2007, 10:23 AM
Junior Member
 
Join Date: Jun 2007
Posts: 1
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Style Customized by The Support Guy
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0