First, I will note that none of the following relates to the Maps API, and I would recommend an investment in good books about HTML, Javascript and (it appears) VBScript.
On Apr 2, 2:17 pm, newbee <[email protected]> wrote: > Hi, > > I have 2 questions: > 1)I would like to create a slot to browse the directories so that I > can choose > where to save the data file at. Can Google Maps API do that? Javascript can't save to the local computer, so the API won't do that. You might be able to get VBScript to, perhaps, but then you're restricted to IE. However, it does look like you're using VBScript... > 2)How do you direct where to save a file instead of on the Desktop by > defaut ? > I wrote this but it only saved on the Desktop. How do set/change the > path? > > var fso = new ActiveXObject("Scripting.FileSystemObject"); > var write_id; > write_id = document.getElementById('write_id').value ; > alert('The data has been written to \n' + write_id); > var s = fso.OpenTextFile(write_id, 8, true,0); Presumably the element called write_id is an <input> element. If you only put a filename in that, then the text file which is created (or appended to) will be relative to the location of the script. If you specify a name starting "C:\" you should be able to specify an absolute path. I think. Again, THIS group will help with the Maps API and the Javascript you need to manipulate that. Anything else, including HTML and especially VBScript, is down to you. Perhaps we could come up with a recommended reading list in the Pages section of the group... Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
