[SOLVED] Is it possible to return to the initiating program after a call to google.maps
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it possible to return to the initiating program after a call to google.maps
Hi,
I am trying to run google maps from an 'html' program and have it return back to the initiating program. At present the return from google.maps is to the Desktop. PATH: index.html ---> gMapsFrontEnd.html ---> comes back to Desktop.
Does the google maps program return something that I can access and call the original index.html program?
What is the "initiating program" and what would it expect as a return value?
Is this in a browser? How are you calling index.html that the "return from google maps is to the Desktop"?
Please tell us what you are trying to accomplish and how, exactly, you are doing it.
Please revisit the Site FAQ for guidance in asking well formed questions. Especially visit the link from that page, How to Ask Questions the Smart Way for discussion of things to consider when asking others for help.
I'm likewise baffled, but wonder if whatever is being attempted here is either in ignorance of the Google Maps API, or an effort to get around paying Google?
If you enter https://maps.google.com you can do whatever you want with google.maps, right? When you are finished you will be returned to the computer Desktop you started from.
Now look at the attached screenshot. If you click on the Google Maps Icon you will be taken to the above site. When you are done the return is the computer Desktop as above. I made the gMapsFrontEnd.html to try to have the return to my control where I want it to go back to my index.html page and be able to click on another icon, however it too returns to the computer Desktop thus the reason for my question.
Well no, you can't do "whatever you want" with Google Maps, but that's an unrelated subject. It's not even clear if Google Maps itself is relevant to what you might be asking, or just an example.
You haven't provided any context on the environment you're using, the program that is (possibly) misbehaving, where the posted HTML comes from, how/what interactions are performed, etc.
The screenshot implies a mobile device, but you've made no mention of that...
The "target=_vblank" attribute on an A tag causes it to open in a new tab or window. That's the most obvious way to get what I think you're asking for.
Opening Google Maps in an IFrame is another option.
If you enter https://maps.google.com you can do whatever you want with google.maps, right? When you are finished you will be returned to the computer Desktop you started from.
Now look at the attached screenshot. If you click on the Google Maps Icon you will be taken to the above site. When you are done the return is the computer Desktop as above.
Enter it where?
From the screenshot I have to guess that the desktop icon, if that is what it is, opens your browser with the given URL. Then when you close it you are just closing your browser. It doesn't "go back to" your Desktop, it is simply closed and so no longer covers your desktop from view. If you want to keep your browser open and go to another URL, like your local index.html then you would have to enter that URL directly or provide a link to click from your browser's bookmarks or menu bar.
But the main point being, if my guess is in the ballpark, it is just a browser so you have to browse normally to the next desired URL, not close it.
If your browser supports it, you might just encode the icon to open with multiple tabs - one for the maps and one for your local index.html, then when done with the maps just close that tab. Which browser is this?
Beyond the already voiced calls for more clarity & information, I'd like to add that the 2nd code example from post #1 is very poorly formatted.
It would've been nice if OP would have removed some whitespace to make it more readable.
Since the chances of succesfully defining, then solving the problem are so slim from the onset, I didn't really see a reason to do that myself.
Opening Google Maps in an IFrame is another option.
I tried that. See DuganIframe.png attachment. I read the "Learn More" paragraph and it is just as you say below.
Quote:
The "target=_vblank" attribute on an A tag causes it to open in a new tab or window. That's the most obvious way to get what I think you're asking for.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.