MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Virtual Earth & JavaScript Frameworks

This is a discussion on Virtual Earth & JavaScript Frameworks within the Virtual Earth Blogs forums, part of the Map Forums category; Today I was working with some guys who are using the JavaScript Framework MooTools and ran into some problems. Since ...


Go Back   MapPoint Forums > Map Forums > Virtual Earth Blogs

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-19-2008
Member
Green Belt
 
Join Date: Sep 2007
Posts: 50
Virtual Earth & JavaScript Frameworks

Today I was working with some guys who are using the JavaScript Framework MooTools and ran into some problems. Since similar errors might occur not just with MooTools but with other Frameworks as well: here is the problem and the solution:

The Problem

Everything worked fine in Internet Explorer but there were some problems when using Firefox: The text of the Virtual Earth Dashboard was stripped out...

FF01

...and Firebug showed some errors whenever the build-in Virtual Earth event MouseEnter or MouseLeave fired.

Well, the problem is caused by a property "contains" in the "String"-object which coincidently had the same name as a function in the Virtual Earth MapControl. In Virtual Earth this function is part of the atlascompat.js script which is pulled behind the scenes from the Virtual Earth MapControl and not used in Internet Explorer at all.

The Solution

The solution is very simple. Make sure you load the Virtual Earth MapControl BEFORE the JavaScript Framework.

 <script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6" type="text/javascript">script>
<
script src="JS/mootools-release-1.11.js" type="text/javascript">script>

FF02*




Click here to view the article.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/virtual-earth-javascript-frameworks-7326.html

Posted By For Type Date
The Magazine for MapPoint - MP2K Magazine This thread Refback 03-20-2008 09:45 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Virtual Earth JavaScript Intellisense Helper VirtualEarth MSDN Blog Virtual Earth Blogs 0 03-10-2008 03:30 AM
Virtual Earth & SQL Server 2008 - Part 3: Getting Started with Virtual Earth Johannes Kebeck's Blog Virtual Earth Blogs 0 03-02-2008 01:40 PM
JavaScript Intellisense for the Virtual Earth MapControl VE Team Virtual Earth Blogs 0 02-26-2008 04:23 PM
Virtual Earth API: How to Create a Full-Screen Virtual Earth Mashup Keith Kinnan's Weblog Virtual Earth Blogs 0 01-04-2008 09:27 AM
Virtual Earth News from GEOINT 2007: Virtual Earth Appliance VE For Government Virtual Earth Blogs 0 10-24-2007 12:10 PM


All times are GMT -5. The time now is 10:49 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Flights from Coventry
Holiday Hypermarket can help you to find great value holidays to suit you. Book great value flights from Coventry Airport. We provide key information about the airport too.

Turkey Weather
Check Turkey Weather before you travel. We provide information on Turkey including weather, flights and accommodation.

Turkey Holiday
Any Turkey Holiday should include a visit to Anadolu; the Anatolian high central plateau is where Turkish culture is rooted. Book a cheap Turkey Holiday online at dealchecker.co.uk.

Holidays to Dominican Republic
Holidays to Dominican Republic offer a wealth of natural beauty and magnificent views. Come alive in the splendor of the Dominican Republic!

Cheap Morocco Holidays
Cheap Morocco holidays may be the answer to your cheap holiday search. With sunshine throughout most of the year it can be great value if you avoid the peak season. Why not include a trip to the small tranquil town of Chefchaouen Tangier in your visit?

Compare holiday prices
Compare holiday prices online where you can see all the possibilities at Travel.co.uk

Goa Holidays
Enjoy the warm and sunny climate of Western India. Visit On The Beach for information on Goa holidays.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46