Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Professional ASP.NET MVC 2
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET MVC 2
This is the forum to discuss the Wrox book Professional ASP.NET MVC 2 by Jon Galloway, Scott Hanselman, Phil Haack, Scott Guthrie, Rob Conery; ISBN: Professional ASP.NET MVC 2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old January 26th, 2011, 11:11 AM
Friend of Wrox
Points: 539, Level: 8
Points: 539, Level: 8 Points: 539, Level: 8 Points: 539, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2010
Location: Seattle
Posts: 106
Thanks: 1
Thanked 17 Times in 17 Posts
Default

Bingo! this is it for sure. Case sensitive. JavaScript is "loose" and will just create OnLoadMap along side with the real, existing onLoadMap.
Code:
    if (onMapLoaded != null)
        map.OnLoadMap = onMapLoaded;
should be:
Code:
    if (onMapLoaded != null)
        map.onLoadMap = onMapLoaded;

Debugger in visual studio shows:
map.OnLoadMap {...}
map.onLoadMap undefined

Last edited by flyinhawaiian; January 26th, 2011 at 11:15 AM..
The Following User Says Thank You to flyinhawaiian For This Useful Post:
  #12 (permalink)  
Old January 26th, 2011, 11:23 AM
Registered User
 
Join Date: Jan 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by flyinhawaiian View Post
Bingo! this is it for sure. Case sensitive. JavaScript is "loose" and will just create OnLoadMap along side with the real, existing onLoadMap.
Code:
    if (onMapLoaded != null)
        map.OnLoadMap = onMapLoaded;
should be:
Code:
    if (onMapLoaded != null)
        map.onLoadMap = onMapLoaded;

Debugger in visual studio shows:
map.OnLoadMap {...}
map.onLoadMap undefined
Doh! I had just gone back and copied the "loadMap" function from the snippet back into map.js, and it started working...and now I know why...sorry for the wasted b/w
  #13 (permalink)  
Old January 26th, 2011, 11:26 AM
Friend of Wrox
Points: 539, Level: 8
Points: 539, Level: 8 Points: 539, Level: 8 Points: 539, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2010
Location: Seattle
Posts: 106
Thanks: 1
Thanked 17 Times in 17 Posts
Default

Nothing wasted. We both gain experience. Have a great day!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd new webpart problem out of the blue. scottlucas58 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 17th, 2009 03:40 PM
how to include .js file in .aspx page shanwaj ASP.NET 2.0 Basics 13 March 11th, 2008 07:36 AM
Google Maps JS in ASPX page error kingroon ASP.NET 2.0 Basics 0 December 7th, 2007 09:52 AM
Odd PHP Session Problem moajosh Beginning PHP 2 February 24th, 2005 03:15 PM
Odd problem with ADO CreateParameter Imar Pro VB Databases 7 January 13th, 2005 09:59 AM



All times are GMT -4. The time now is 09:33 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.