Skip to content Skip to sidebar Skip to footer

Facebook Like Notification Or Ajax Calling?

I have a google map, when a new coordinates inserted into database I want to change location of icon on map. Without ajax calling how can I implement this? I am using Spring, Hiber

Solution 1:

If you are able to use HTML5 you can use Server Sent Events.

http://www.w3schools.com/html5/html5_serversentevents.asp

If you are able to host on Goggle App Engine, check this out. I believe it would support all browsers.

http://code.google.com/appengine/docs/java/channel/overview.html

Solution 2:

If you're not using ajax, you'd have to do a page refresh. Don't know of a way to communicate to the server other than using ajax and doing a page refresh.

Post a Comment for "Facebook Like Notification Or Ajax Calling?"