Wrox Programmer Forums
|
BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9
This is the forum to discuss the Wrox book Professional ASP.NET MVC 1.0 by Rob Conery, Scott Hanselman, Phil Haack, Scott Guthrie; ISBN: 978-0-470-38461-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 16th, 2010, 03:17 PM
Authorized User
 
Join Date: Mar 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Default Error on Map load

I keep getting an error with the map Object expected.


[
LoadMap(latitude, longitude, mapLoaded);
]

error on page }

my code look like this

[
<scripttype="text/javascript">
$(document).ready(function() {
var latitude = <%=Model.Latitude %>;
var longitude = <%=Model.Longitude %>;

if ((latitude == 0) || (longitude == 0))
LoadMap();
else
LoadMap(latitude, longitude, mapLoaded);
});

function mapLoaded() {
var title = "<%= Html.Encode(Model.Title) %>";
var address = "<%= Html.Encode(Model.Address) %>";

LoadPin(center, title, address);
map.SetZoomLevel(14);
}
</script>
]
 
Old February 17th, 2010, 12:58 AM
Authorized User
 
Join Date: Mar 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Default Problem solved

OK, I had a typo, on shap, and I didn't complete the address, on create dinner files, not sure if this was the full problem but it now works as described.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Heat Map over Google Map ajit Javascript 0 March 7th, 2008 09:01 AM
error at reportDocument.Load akhilvira Crystal Reports 0 April 10th, 2007 12:00 AM
Error: File path and URL http map differently cJeffreywang ASP.NET 1.0 and 1.1 Basics 4 March 27th, 2007 08:03 PM
Error during load neetagp_21 Beginning VB 6 0 February 21st, 2007 02:16 AM
Error On Load and On Click needelp Access VBA 3 November 3rd, 2006 08:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.