Dynamically generated Google Map in new window

I've got a detail page for restaurants and would like to have
a "MAP IT"
link that, when clicked, opens a map of the location in a new
window,
preferably using Google maps since I like them (but that's
not critical).
I've got the WebAssist extension but it will only embed the
map and you have
to enter the address to create it. so, my questions are:
1. How can I generate a Google map using fields from my
Recordset (I'd need
at least street and zip but it's probably better to use the
city and state
too)?
2. How can I have it open in a new browser window?
An extension would be best and easiest, but I'm open to any
possibility that
doesn't require a degree in advanced rocket science.
BTW, I have a Google Maps API for this site. I'm using PHP
and MySQL.
Thanks!
Mad Dog

"Mad Dog" <[email protected]> wrote in
message
news:f5hnhb$qrh$[email protected]..
>I found the answer and it turned out to be simple. The
info is here for
>both Google maps and Yahoo maps, though a couple of
things were confusing
>(like what's with the "+" signs?):
>
http://www.gdsland.com/tutorial/googlemap.php
>
> Here's what I ended up using for Google and it works
like a charm.
>
> <a href="
http://maps.google.com/?q=loc:<?=$row_Recordset['street'
> <?=$row_Recordset['city']?>,
<?=$row_Recordset['state']?>
> <?=$row_Recordset['zip']?>" target="new">MAP
IT!</a>
>
> One thing that messed me up for a while is it turns out
Google maps
> doesn't like a "#" coming at it. It truncates the
address at that point. A
> test record I was using had that as a suite number so
once I changed that
> in the database all is well and good.
I believe this is because the "#" is seen as the beginning of
the "hash"
value (location.hash)
See
http://www.tjkdesign.com/articles/locationobject.asp?who=MD&where=SF#boulange
> Good work, Mad Dog!
Yes indeed!
Thierry
Articles and Tutorials:
http://www.TJKDesign.com/go/?0
The perfect FAQ page:
http://www.TJKDesign.com/go/?9
CSS-P Templates:
http://www.TJKDesign.com/go/?1
CSS Tab Menu:
http://www.TJKDesign.com/go/?3

Similar Messages

  • Help opening google map in new window

    hi. hope you guys can help.. below is a link to my website
    page i need help with... when i put the postcode (zip code) in i'd
    like the google map to open in a new window when i've pressed enter
    and the 'get directions' button but finding it hard to do so. any
    help would be great.
    http://www.panterhudspith.com/contact.html
    thanks

    target="_blank"
    in the <form> tag should do it.

  • Multitouch zoom in google maps on a windows 7 tablet leads to a zoom of the whole browser window including tools.

    Using a tablet with windows 7 and multitouch screen and the actual firefox version. If i open google maps and want to zoom the map with the zoom gesture, firefox zooms the hole browser window including the tools instead of the map. If i open another empty tab and closing it before using the zooming gesture, everything will work. Would be helpful if someone could give me a hint how to overcome these problems without always opening a new empty tab.

    Well, the touch problem was first observed with Firefox Version 21. The Versions 21 to 23 offers the workaround with opening and closing a new tab. Since Version 24 also the workaround didn't work anymore and the problem, that the multitouch gestures zooms the hole browser window is still present. Maybe this makes it clear for now. So would be helpful if anybody could give me a real hint how to overcome these problem.

  • Open a generated pdf file in new window

    Dear all,
    I'm using JDev ADF 11.1.1.4.0
    I use the command button method to generate pdf file with JasperReports and I store it into the public folder /reports/test5.pdf. To open this file I can use goLink or goButton with target frame _blank, but how can I open this file automatically after generation?
    I was reading about fileDownloadActionListener, but it's not what I need, I just want to open the file in new window browser.
    Any help will be appreciated.
    Regards,
    Wojtek.

    try this
    HttpServletResponse response = (HttpServletResponse) FacesContext
                                      .getCurrentInstance().getExternalContext().getResponse();
                       ServletOutputStream servletOutputStream;
                       servletOutputStream = response.getOutputStream();
                       byte[] bytes = null;
                       JasperDesign jasperDesign;
                                try {
                                        jasperDesign = JRXmlLoader.load(ios);
                                        jasperReport = JasperCompileManager.compileReport(jasperDesign);                
                                        JRPdfExporter exporter = new JRPdfExporter();
                                        JasperPrint jasperPrint;
                                        jasperPrint =
                                                JasperFillManager.fillReport( jasperReport, parameters, connection );
                                    } catch (JRException e) {
                                            e.printStackTrace();
                                bytes =
                                JasperRunManager.runReportToPdf(jasperReport,parameters, connection);
                       response.addHeader("Content-disposition", 
                       "attachment;filename=sale.pdf"); 
                       response.setContentType("application/pdf");
                       response.setContentLength(bytes.length);
                       servletOutputStream.write(bytes, 0, bytes.length);
                       servletOutputStream.flush();
                       servletOutputStream.close();
                       context.responseComplete();
                            } catch (IOException e) {
                        e.printStackTrace();
                    } catch (JRException e) {
                         e.printStackTrace();
                    }

  • FM to start IE (google maps) in separate window ?

    Hello experts,
    is there a fm or something in order to start the internet explorer
    in separat window so that I can give this ie-window parameters
    for geodate google-maps ?
    Has anybody experience in this ?
    Thanks for help,
    Gerd

    Hi there you can use a call_browser FM
    to send the parametes to the site.. you need to analyse how google is using ur search criteria in the adress bar and send the URL accordingly.
    ........maps?f=d&saddr=Cleveland ,+ Ohio &daddr= seattle +wa &hl=en&geocode=&mra=pe&mrcr=0&sll=44.527843,-102.041016&sspn=29.551823,56.601562&ie=UTF8&ll=47.575599,-122.161102&spn=0.218641,0.4422&z=11

  • How to install google map on New Ipad use OS6

    Dear Apple
    I use New Ipad with os6, but I want use google map on my Ipad.
    Please help me How way to install google map on my New Ipad.
    Thank you!

    Google Maps is in the App Store bit it is an iPhone version.
    If you want full-screen Google maps on the iPad use the Safari browser to go to http://maps.google.com

  • Embed an interactive google map into a PDF

    Hi there,
    I'm currently working on a client project where many different store locations need to use the same layout, but with a large map. In order to save costs for the client, the aim is that each store will edit the template to their own store. So I'm wanting to embed google maps into the pdf (which I've done via InDesign), where the store can simply drag the map and zoom in on their individual location (pins are not needed) and then print out their document. I've been able to make an interactive map using the html code google maps gives you in InDesign, and works fine in Adobe Content Viewer - but not in Adobe Acrobat, where it ends up as a static image. This happens regardless of wether I save it as an interactive PDF, or SWF file.
    Is there anyway to embed a dynamic, working google map into an interactive PDF document?
    (notes: I am working on iOS. The file will have to work on both Windows and Macintosh, but I understand that it may only work when the file is opened in Acrobat)

    giselabell wrote:
    (notes: I am working on iOS. The file will have to work on both Windows and Macintosh, but I understand that it may only work when the file is opened in Acrobat)
    How do you use InDesign on iOS ?

  • PCUI - open New Window via Button (to call custom URL / HTML viewer)

    Hello group,
    I have followed the "Use CRM PCUI HTML viewer to call a custom URL" in order to create a custom URL to BW web template.
    However, instead of displaying the URL in a tab (this works fine), I want a Button in the Accounts view to open up a New Window displaying the URL there.
    Here is what I have done:
    Create Field Group & Structure
    Create Event
    - Usage: Layout-Relevant
    - Text: Web template call
    Added Event to Toolbar Group ACC_OIC
    Define Application Layout (CRMM_ACCOUNT) for Event
    - Position: New Window
    - Screen Element Type: HTML
    - my field group
    - my structure
    Define Application Set (COMM_BUPA)
    - my structure
    - my access class
    The button is there, when clicked the read-method of my access class is executed, but no New Window is opened with the URL displayed.
    Is there something I am missing? Can the HTML viewer not called in a new window?!
    I appreciate any input you can provide me.
    Thanks and regards,
    Erik

    I have the same problem. PCUI toolbar button open url http://www.google.com in new window   .
    It sames so easy open a link on web page.
    why so hard in PCUI !
    My god , who design the PCUI.
    anyone solve this problem , let me know please. Thanks!
    [email protected]

  • Pdf in new window

    Hi ,
    i have read PDF from DB and set
    response.setContentType("application/pdf");
    response.setContentLength(bytes.length);
    in action class of struts.
    I have one success page .Once the request is processed , pdf gets open. but in same window. Please suggest me how to open the generated PDF type in new window.

    It's too late to open a new window once the request is processed. You can open a new window from the html that links to the pdf by setting the href target to _blank. JavaScript can also open new windows.                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I enabled 3d in google maps, and it now crashes firefox everytime I open maps. HELP!!

    I have a mac, and I was using google maps. I was trying to find the views of the actual buildings on the maps, and clicked on the 3D option in the lower left corner. That caused an immediate crash of firefox and has done so everytime I try to open google maps. The window isn't open long enough for me to try and unclick that option. Please tell me how to get my google maps back! thanks

    Thank you, thank you, thank you!
    I couldn't tell which of the many cookies was the offender, so I had to clear them all...which I know is going to mean I lost some convenience, but it was worth it. For future reference, is there a way to know which cookie is causing the problem?

  • Response in new window, tab, popup

    Hi,
    using JDeveloper 10.1.3.3. ADF BC JSF, I'm going crazy with the following problem,
    I have a page and commandLink on it, when I click on commandLink I call method that parses some XDO file to get the params out, and from that metod I redirect to servlet url with params like this:
    response.sendRedirect("http://10.52.12.221:8993/Publisher-ViewController-context-root/faces/prompt" + params);in servlet I generate html with input fields like this:
    response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    try{
    Enumeration paramNames = request.getParameterNames();
    out.println("&lt;html&gt;");
    out.println("&lt;head&gt;&lt;title&gt;Params&lt;/title&gt;&lt;/head&gt;");
    out.println("&lt;p&gt;Enter params for report&lt;/p&gt;");
    out.println("&lt;FORM action=\"http://10.52.12.221:8993/Test-ViewController-context-root/faces/prompt\" method=\"post\"&gt;");
    while (paramNames.hasMoreElements()) {
    String name = (String) paramNames.nextElement();
    out.println("&lt;INPUT type=\"text\"" + "name=\""+name + "\"&gt;");
    out.println("&lt;INPUT type=\"submit\" value=\"Generate report\"&lt;/P&gt;&lt;/FORM&gt;&lt;/body&gt;&lt;/html&gt;");
    out.close();All I want is to show generated html page in new window, new tab or popup, and I cannot do this. I've tried everything, added javascript in head and in body I've added onLoad which calls javacript function to open new window, but new window is always blank while main page becomes the html generated in servlet. Does anyone have some solution to my problem, advice or anything, please help.
    Thanks in advance,
    Tomislav.

    Hi Frank,
    thanks on your time. I've found a solution to my problem and I cannot believe how I didn't see it before:
    af:form TargetFrame = "_blank" every time commandLink is clicked result is displayed in new window or tab depending on browser configuration. Haven't tested it thoroughly, I will tomorrow and post if everything worked out fine.

  • Open a url in a new window in the backing bean

    Hi to all
    How can i open a website like google in a new window, but via Backing Bean??
    thanks to everyone in advance.

    use javascript..
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExtendedRenderKitService service =
    (ExtendedRenderKitService)Service.getRenderKitService(facesContext,
    ExtendedRenderKitService.class);
    service.addScript(facesContext, "window.open(http://www.google.coml)");

  • Is this the right to use or for iOS can use dynamic google maps embeded(can be embedded fo iOS)

    function displayMap(e) {
    var title = e.data.title,
        latlng = e.data.lat + ',' + e.data.lng;
    if (typeof device !='undefined' && device.platform.toLowerCase() == 'android') {
    window.location = 'http://maps.google.com/maps?z=16&q=' + encodeURIComponent(title) + '@' + latlng;
    } else {
    $('#map h1').text(title);
    $('#map div[data-role=content]').html('<img src="http://maps.google.com/maps/api/staticmap?center=>' + latlng + ' &zoom=16&size=320x420&markers=' + latlng + '&sensor=false">');
    $.mobile.changePage('#map', 'fade', false, true);
    my phonegap (Adobe press, Powers jQuery with dw 5.5) book (old book (c)2010-11) says for above code: // is this valid for today, is this the right to use or for iOS can use dynamic google maps embeded(can be embedded fo iOS)???
    On iOS, calling window.location loads the map directly
    into the app. That’s great until you realize that iOS devices
    don’t have a Back button, so there’s no way to exit the
    map. To get round this problem, I loaded a static map as
    an image in the map page block. It’s not interactive, but at
    least you can continue using the Travel Notes app after
    viewing the map by clicking the Back button generated by
    jQuery Mobile.

    Well, this took me a while to get solved, but it is indeed solved.
    I tried USB Overdrive and it could, and perhaps should work, but apparently it will not. When adding a device, it seems that USB Overdrive is not set up to handle any input device that does not register itself as either a Mouse or a Joystick. The VEC USB Footpedal that I'm using is "Device type: Other".
    So, I went for Quickeys. And Quickeys can do it all. It did recognize the device, I was able to assign it to the scope of the particular audio playback app I wanted to use (Amazing Slow Downer OS X - which is truly amazing. Any musicians reading this who are looking for a way to learn pieces by ear, this does it better than anything else I've seen yet).
    I created a shortcut in Quickeys for the ASD app; added the middle button of the foot pedal as the trigger; set one step, entering 'space bar' as the step (which toggles playback, similar to many audio players).
    It all worked.
    Quickeys is very confusing and seemingly featured with an endless array of options. Enter at your own risk. Ask me for help. This was the only way to get it done that I could find. I did write to the author of USB Overdrive asking him to please support additional devices as I did find some traction from gamers who like to use a foot pedal in addition to other input devices. There was a Windows-only management utility for the foot pedal that was intended for custom input, assigning the buttons to any keyboard input or mouse click event. It would be nice to have a simple and easy to use utility like this. But, Quickeys did do the job.
    Thanks for your help, you guys!!!

  • Command to open a PDF generated Oracle Report in New browser window

    I know this is probably something for the Oracle Forums but I'll ask anyway because I can't find any info out there on this, without some extra work.
    I am generating a PDF file from 10g Oracle reports on Linux RHEL 5 and storing the PDF file to the server. I can send that PDF file directly to a printer with the "lpr" command and that part works fine.
    What I'm wanting to do now is "View" the PDF from within the server in a new window. We are using RHEL 5 (Linux) platform and I'm trying to see if there is a way to open the file with a "command line" command that will open it in a new browser window or new window period (opening it with Adobe Acrobat).
    Does anyone have a command that will do this? Otherwise, how has everyone else been handling this. The idea of just viewing the previously generated PDF Report file will save us overhead on our database servers because they won't have to re-run some of the same reports over and over.
    Any help and assistance is appreciated.
    Chris

    Several options:
    - If you only want to show the pdf to the client without printing, use destype=cache and use WEB.SHOW_DOCUMENT after the RUN_REPORT_OBJECT (for examples search the forms-forum, there are lots)
    -If you have to generate the pdf to a file to get it printed, you could
    +use WEBUTIL_FILETRANSFER.AS_TO_CLIENT after the printing to transfer the file to the client, then use CLIENT_HOST to view it.
    +map the appserver-directory you generate the report to as a virtual directory in the application-server then use WEB.SHOW_DOCUMENT to directly access the generated file via url.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • New Google maps street view is very slow in FF 31.2.0 on Linux (RHEL 6.3)

    The new google streetview (which does not use Flash) is unusable and renders very slow starting with pixelated images that progressively build. The slowness is not present in FF30.0 on Windows.
    It seems to be an issue in Linux Mint as well: http://forums.linuxmint.com/viewtopic.php?f=47&t=180542
    It seems to be quite common on the google map forums: https://productforums.google.com/forum/#!topic/maps/rWUCllpDDSE
    There seems to be bug open already: https://bugzilla.mozilla.org/show_bug.cgi?id=697443
    But why does FF30.0 on windows work O.K but not FF31.2.0 on Linux?
    * ICA Plugin (Linux) Version 12.1.8.250715 (/opt/Citrix/ICAClient/wfica)
    * Shockwave Flash 11.2 r202
    * The IcedTea-Web Plugin executes Java applets.
    * The Totem 2.28.6 plugin handles video and audio streams.
    * DivX Web Player version 1.4.0.233
    * nspluginwrapper is a cross-platform NPAPI plugin viewer, in particular for linux/i386 plugins.This beta software is available under the terms of the GNU General Public License.
    * This plug-in detects the presence of iTunes when opening iTunes Store URLs in a web page with Firefox.
    * Add Block Plus
    * Firebug

    fixed with this method:
    http://bbs.archlinux.org/viewtopic.php?pid=319710

Maybe you are looking for

  • ICal, MS Outlook, and Titles in published calendars

    I need to publish my calendar, and would like to use iCal to do it. However, I only need the equivalent of free/busy information to show (I don't want to show any other information about events). I thought that unchecking "Publish Titles and Notes" w

  • Why can't I open iPhoto 11 in my mac with 10.8.6?

    When I open iPhoto a window pops up and said 'there's a problem with the version'. Why?

  • Black Restart Message-- happening every few minutes!

    A few days ago, I was browsing the web, and a faded gray screen appeared with a restart message. It says something to the effect of "You need to restart your computer. Please hold down the restart button, etc." in about four different languages. So I

  • Configuring 2 Router Interfaces to the same subnet

    Hi There, I have the following setup: Border router which has a serial interface connected to the ISP and 2 internal FE interfaces which need to be connected to 2 different switches in the LAN-side for redundancy. Of course, the 2 FE interfaces shoul

  • Step type section is not visible in workflow builder.

    Hello Friends,                     Step type section is not visible in workflow builder even though I am in change mode. How to make it visible. Cheers, Senthil