close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

"Object doesn't support this property or method" error

Thread began 11/05/2009 8:20 am by Nathon Jones Web Design | Last modified 11/19/2009 12:46 pm by Jason Byrnes | 6993 views | 5 replies |

Nathon Jones Web Design

"Object doesn't support this property or method" error

For some reason, I'm now getting the following error on my maps page where it used to work:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 5 Nov 2009 16:18:10 UTC

Message: 'x' is null or not an object
Line: 1163
Char: 56
Code: 0
URI: main.js

On the same page, I'm also getting the following error:

Message: Object doesn't support this property or method
Line: 12
Char: 1
Code: 0
URI: %7Bmod_drag,mod_ctrapi,mod_zoom,mod_ovrmpc,mod_api_gc,mod_apiiw%7D.js

Here's a link to the offending page:
scottish-music-event.asp?e=891&b=1

I'm using DW8.0.2, Win XP Pro, IE8 and Pro Maps for Google version 1.0.5.
Hope someone can help. Thanks.

Regards
Nathon

Sign in to reply to this post

Jason ByrnesWebAssist

The error is occurring because you cometed out the following line:

// icon_0.infoWindowAnchor = new GPoint(8,3);


un-comment that line, and the error will go away.

Sign in to reply to this post

Nathon Jones Web Design

removing the WindowAnchor

Thanks Jason.

What if I don't want the WindowAnchor though? I really don't want the "speech bubble" thing on the map and was advised that I could comment that out.

How do I prevent that from displaying, without commenting out that line and without causing "error on page" errors?

Much appreciated.
Regards
Nathon

Sign in to reply to this post

Jason ByrnesWebAssist

comment the code that loads the info window.

To keep if from opening on initial load, do search for all occurance of:
marker_0_0.openInfoWindowHtml

It will be in a few places,Whether to comment it or not depends on the surrounding code. It will either look like:
if('address_0_0' == 'address_0_0')
marker_0_0.openInfoWindowHtml(address_0_0.infowindowtext);




or:
GEvent.addListener(marker_0_0, 'click', function() {
marker_0_0.openInfoWindowHtml(address_0_0.infowindowtext);
});


to make it not load the bubble on initial load, comment it if it looks like the first example:
//if('address_0_0' == 'address_0_0')
//marker_0_0.openInfoWindowHtml(address_0_0.infowindowtext);

This will still allow the bubble to load if the marker is clicked. if you do not want that to happen as well, comment the second example too:
//GEvent.addListener(marker_0_0, 'click', function() {
//marker_0_0.openInfoWindowHtml(address_0_0.infowindowtext);
//});

Sign in to reply to this post

Nathon Jones Web Design

ta.

Perfect. Thank you Jason.

If I upgrade my version of Pro Maps for Google, will it overwrite my commented out lines?

Sign in to reply to this post

Jason ByrnesWebAssist

Only if you edit the map.

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...