close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Stop the info window from opening in Google Map on pageload

Thread began 6/15/2012 7:35 am by Rune Brynestad | Last modified 6/16/2012 2:18 pm by Rune Brynestad | 874 views | 5 replies |

Rune Brynestad

Stop the info window from opening in Google Map on pageload

I believe that the latest version of Design Extender should automatically close info windows in Google Maps on page loads.

See the second forum post from Ray here:
showthread.php?t=25111&highlight=info+window

Live UR: here: maptest.php

I'm attaching my working files so you can inspect them.

Regards
Rune

Attached Files
Test.zip
Sign in to reply to this post

Jason ByrnesWebAssist

In the post you reference ray was talking about closing the info windows when using links to change the active marker, not closing the info windows as a general rule.

The issue being discussed in that thread was that when using links to change the focus address, it would leave the initial info window open, and also open the new focused info window.

to close the info window on page load, find the following code:

// open info window for default address
if (isDefault) {
infowindow.open(map1,marker);
map1.setCenter(point);
}




and change it to:

// open info window for default address
if (isDefault) {
//infowindow.open(map1,marker);
map1.setCenter(point);
}
Sign in to reply to this post

Rune Brynestad

The map displays on the page as it should now, but it looks like it destroys most of my serverside code.

Before Google Map: detaljer.php?Id=2

After Google Map: detaljer_2.php?Id=2

Do you see any work around ? I also have DMXZone Calandar and WA Power Gallery on the same page, so there could be some clash of frameworks.

I'm attaching before and after file.


Regards
Rune

Attached Files
vestfoldferie.zip
Sign in to reply to this post

Jason ByrnesWebAssist

a few things i see in your page.

it looks like you are loading a jquery map plugin:
<script type="text/javascript" src="ScriptLibrary/jquery.gmap.min.js"></script>
<link rel="stylesheet" type="text/css" href="Styles/dmxCalendar2.css" />
<link rel="stylesheet" type="text/css" href="Styles/jqueryui/redmond/redmond.css" />
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

also at the top of your page, you have 2 head sections:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="../CSSMenuWriter/cssmw0/menu.js"></script>
<style type="text/css" media="all">
<!--
@import url("../CSSMenuWriter/cssmw0/menu.css");
-->
</style>
<!--[if lte IE 6]>
<style type="text/css" media="all">
@import url("../CSSMenuWriter/cssmw0/menu_ie.css");
</style>

<![endif]-->
</head>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
Sign in to reply to this post

Rune Brynestad

Yes, you are correct.

<script type="text/javascript" src="ScriptLibrary/jquery.gmap.min.js"></script>
and
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
does not need to be there and I have removed them.

<link rel="stylesheet" type="text/css" href="Styles/dmxCalendar2.css" />
<link rel="stylesheet" type="text/css" href="Styles/jqueryui/redmond/redmond.css" />
are used by the calendar and must stay.

It's only 1 head section on my page, but the left menu is inserted as a Framework builder plugin, so it looks like 2 when you view the source code in a browser,

Anyway, removing
<script type="text/javascript" src="ScriptLibrary/jquery.gmap.min.js"></script>
and
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

did not help. Still the same problem with most of my serverside code.

I'm attaching an updated file.

Live URL here: detaljer_2.php?Id=2

Regards
Rune

Attached Files
detaljer_2.zip
Sign in to reply to this post

Rune Brynestad

Probmen solved by embeding the Google Map on another page and load the Google Map as an iFrame.

Regards
Rune

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...