permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes Java script in The Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Java script in The "Hello, World" of Google Maps" Watch "Java script in The "Hello, World" of Google Maps" New topic
Author

Java script in The "Hello, World" of Google Maps

jite eghagha
Ranch Hand

Joined: Oct 06, 2006
Posts: 127
The hello world of Google Maps is straight forward.

But, I want to have several users interacting on the "one" map.

So that if one user places a marker at a lat/lng, that change reflects on all users; and if one user is tracking a cars movment, that movement shows on all my users maps.

I want to host the "one" true map on my server that will propagate all changes to all users.

How do i use java scripts on the server side of a Java web application? How do i make the client sided "hello world", a server sided "hello world"



The "hello world" of google maps

google maps "Hello World"
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41144
    
  45
On a very fundamental level, that will require the "master" map to communicate any noteworthy changes back to the server (most likely using an AJAX library like Prototype or jQuery), then a server component that accepts these changes (maybe a servlet), and finally all other map instances must check with the server every so often if there's anything new, also using AJAX or maybe Comet.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java script in The "Hello, World" of Google Maps
 
Similar Threads
Validate
problem when integrating jspell with tinyMCE editor
Can you read this?
wml?
Functionality working in IE but not Firefox (Google Map API experience helpful!)