Sending a string to a webserver.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cainnech
    New Member
    • Nov 2007
    • 132

    #1

    Sending a string to a webserver.

    Hello,

    I've got a question that I would like to ask you javascript-wizz.

    I have a page which shows a map. On that map I add a marker dynamically using latitude & longitude.

    Now I would like to update those values, not on the client side but on the serverside. So when the user loads the page there's a javascript that looks for the coordinates and uses it to create a marker on the map.

    Now I'm looking for the best way to send my coordinates to the webserver.

    First I was thinking of just sending a textfile with the coordinates in it. But that would mean I would have to open an ftp-connection send the file and close it again. Not very bandwidth-economical.

    Then I was thinking of using a post such as on a form to send the coordinates, but that would mean opening a site and fill the coordinates in and send it. Same problem as before, I want to make it easier.

    Basically, what I would like is that my GPS-receiver (who is connected to my laptop) sends the coordinates using something like a command-line.

    So does anybody here have an idea how i could accomplish that?

    Please don't start about Google Latitude because I know you can do it with that but I don't want to do it with that...

    Greets,
    Cainnech
  • chathura86
    New Member
    • May 2007
    • 227

    #2
    you can use AJAX to send the Data

    Regards

    Comment

    Working...