On Apr 22, 9:44 am, Steve <[email protected]> wrote: > I'm a newbie to Javascript. > I'm getting a blank popup window. What's wrong?
I can't tell, my browser doesn't execute code snippets from the group interface... Can you post a link? http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines -- Larry > > Here's the script - > <script type="text/javascript"> > function submitmyform(f) { > f.target = 'apopup' > window.open('',f.target,'menubar=no,scrollbars=no, > width=800,height=800'); > f.submit(); > return false; > } > </script> > > Here's the form - > // The info window version with the "to here" > form open > to_htmls[i] = html + '<br>Directions: <b>To here<\/b> > - <a > href="javascript:fromhere(' + i + ')">From here<\/a>' + > '<br>Start address:<form name="apopup" > action="javascript:getDirections()" target="_blank" method="post" > onsubmit="return submitmyform(this);">' + > '<input type="text" SIZE=40 MAXLENGTH=40 > name="saddr" id="saddr" > value="" /><br>' + > '<INPUT value="Get Directions" TYPE="SUBMIT"><br>' > + > '<input type="hidden" id="daddr" > value="'+name+"@"+ point.lat() > + ',' + point.lng() + '"/>'; > > On Apr 21, 10:46 pm, Mike Williams <[email protected]> wrote: > > > > > You might be able to create a div Element that is not attached to the > > document. Use that for the new GDirections call. Listen for the "load" > > event, and then create yourpopupand cloneNode the div into it. > > > Use cloneNode, rather than just attaching your div to thepopup, allows > > the original div to continue to exist, so that subsequent GDirections > > calls should work. > > > --http://econym.org.uk/gmap > > The Blackpool Community Church Javascript Team- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
