Solved

Enclose map in a lightbox

Posted on 2014-10-09
3
100 Views
Last Modified: 2014-10-10
Hi,

I want to enclose a google map in a lightbox. This reference shows what I have WITHOUT the lightbox:

http://fwsprinklercdb.info/drive_dirs.html.

I added a lightbox per attached code; it displays nothing. See at http://fwsprinklercdb.info/drive_dirslb.html.

See also http://fwsprinklercdb.info/Murfur_lightbox.html for lightbox that works; uses the same Jquery lightbox_me function.

Why does drive_dirslb.html not work?
drive-dirslb.html
0
Comment
Question by:Richard Korts
  • 2
3 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 40371680
replace :
       $("#calculate-route").submit(function(event) {
		$('#map').lightbox_me({
          event.preventDefault();

Open in new window

by :
       $("#calculate-route").submit(function(event) {
                event.preventDefault();
		$('#map').lightbox_me({

Open in new window

0
 

Author Comment

by:Richard Korts
ID: 40373201
leakim971,

Same result, no map.

fwsprinklercdb.info/drive_dirslb.html

Thanks
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 40373270
replace :
$('#map').lightbox_me({
          calculateRoute($("#from").val(), $("#to").val());

Open in new window

by :
          calculateRoute($("#from").val(), $("#to").val());
          $('#map').lightbox_me({

Open in new window

0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now