Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 47
  1. #16
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Update Google Eartk KLM file in real time (200

    Have a look at this .

    When you click the submit button, it writes the last point to the database, then reads ALL the points back into the KML file, and shows the whole journey.

    In this case you see a trip heading north west from Canberra in Australia.

    At the moment, the entries are data stamped in the db. Do you want the dates to show in Google Earth?

    added a little later
    I have added another option that allows you to look at the route without submitting a new point.
    Regards
    John



  2. #17
    Lounger
    Join Date
    Apr 2008
    Location
    Colchester, Essex, United Kingdom
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update Google Eartk KLM file in real time (200

    Hi John,

    I have successfully created an ASP Host account and your original 1st draft has been successfully uploaded to http://www11.asphost4free.com/GlobalTracker/index.asp . (I know that not the latest version, but I wanted a proof of concept, which I now have.)

    Regards Paul

  3. #18
    Lounger
    Join Date
    Apr 2008
    Location
    Colchester, Essex, United Kingdom
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update Google Earth KLM file in real time (200

    Hi John, PMed you with some details not for the forum. Code OK, seems not to link to the database :-(.

    NB your form wants to download log_test.klm rather than open it directly in Google (as you previous example did). If I allow that it works fine. Probably we should use the online map as the download Google Earth might not be for everyone.

    Fancy there being a Chelmsford on the other side of the world, it really is a small place! Regards Paul

  4. #19
    Lounger
    Join Date
    Apr 2008
    Location
    Colchester, Essex, United Kingdom
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update Google Earth KLM file in real time (200

    Have contacted the site for advice ~ not a quick response then :-(

  5. #20
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Update Google Earth KLM file in real time (200

    Paul

    A computer can <font color=red>never</font color=red> open anything from a website without downloading it first. Google Earth is running on the local PC, that is viewing the webpage (which it has already downloaded.) To view the contents of a KML file on that computer, the KML file must be downloaded to that computer.

    What varies if whether this download process is invisible to the user (as it usually when you click a link in a webpage, and view a different web page) or whether the user is asked whether they want to save the downloaded file or open it.

    When I put up my first example using KML, my computer would ask me what to do with it. It has now stopped doing that, and automatically just shows it to me in Goolge Earth. I don't think this is caused by any changes in the script. I think the association between KML and Google Earth on my computer has been changed.
    Attached Images Attached Images
    Regards
    John



  6. #21
    Lounger
    Join Date
    Apr 2008
    Location
    Colchester, Essex, United Kingdom
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update Google Earth KLM file in real time (200

    Thanks John, Am still awaiting a reply from the host ~ Prehaps I'll look for a new one :-) Paul

  7. #22
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Update Google Earth KLM file in real time (200

    What is the question you are asking them to answer?
    Regards
    John



  8. #23
    Lounger
    Join Date
    Apr 2008
    Location
    Colchester, Essex, United Kingdom
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update Google Earth KLM file in real time (200

    The link to the database does not seem to be working ~ the form shows up but I get error message(s) when I press the submit button. Paul

  9. #24
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Update Google Earth KLM file in real time (200

    Does it work when you use my form at http://www11.asphost4free.com/GlobalTracker/submit.html ?
    It does for me.

    I think your hosts instructions on how to connect to the database are just wrong.

    I used this : conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("Db/Tracking.mdb") & ";"

    which just involved adding the Db/ in front of Tracking.mdb, compared to earlier versions.
    Regards
    John



  10. #25
    Lounger
    Join Date
    Apr 2008
    Location
    Colchester, Essex, United Kingdom
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update Google Earth KLM file in real time (200

    Hi John, sorry for the delayed reply ~ yes that works. I'll hopefully have some time to experiment tomorrow. Regards Paul

  11. #26
    Lounger
    Join Date
    Apr 2008
    Location
    Colchester, Essex, United Kingdom
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update Google Earth KLM file in real time (200

    Hi John,

    That works well ~ the last location did just as I expected. Thanks.
    The [view existing route] produces an error page "the website cannot display the page" for me.

    I'm impressed at the additions you have added ~ your using GE well.

    Regards Paul

  12. #27
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Update Google Earth KLM file in real time (200

    Have a look at Map My Ride
    It seems to me a very sophisticated version of what you want to do.
    Regards
    John



  13. #28
    Lounger
    Join Date
    Apr 2008
    Location
    Colchester, Essex, United Kingdom
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update Google Earth KLM file in real time (200

    Thanks John

  14. #29
    Lounger
    Join Date
    Apr 2008
    Location
    Colchester, Essex, United Kingdom
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Update Google Earth KLM file in real time (200

    Thanks John, I've got the map to work and fill your field with a single click (phew!, took a while).

    In the process I have broken your code ~ Could you have a look and see why the tracking.asp page no longer opens?
    (nb I've stopped asking for an e-mail (and removed the checking code) and added a yearbirth to the database ~ have I messed up the changes?

    Finally when they press submit I would lile to replace the submit.html page with a results page http://"]http://www11.asphost4free.com/GlobalTracke...t.html">http:// http://www11.asphost4free.com/GlobalTracker/result.html[/url], How do I do that in your code?

    I have written the embryo of the results page (although I have yet to work out how to populate it with the results ~ yet more research to GE needed!)

    Despite all the questions this is making good progress.

    Regards Paul

  15. #30
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Update Google Earth KLM file in real time (200

    I don't follow the structure anymore. What is the starting page now?
    You still have an Index.asp which still asks for an email address.
    That is the page displayed at http://www11.asphost4free.com/GlobalTracker/

    If you have an alternative starting page what is it?
    Regards
    John



Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •