Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals 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
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 25th, 2011, 02:53 AM
Authorized User
Join Date: Oct 2010
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default Map do not show on Chrome

Hello everybody

When using Google Chrome I get the "Google Chrome" alert, which occurs after the init function is called, but I never get the f1() function.
If you have any further ideal, please help me

Thanks in advance

function loadXML() {
bounds = new GLatLngBounds();
markerList = [];
var error = "";
var file = "hotels/MapData.aspx";

try //Internet Explorer
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = false;
catch (e)
try //Firefox, Mozilla, Opera, etc.
xmlDoc = document.implementation.createDocument("", "", null);
xmlDoc.async = false;
catch (e)
try //Google Chrome
alert("Google Chrome");
var xmlhttp = new window.XMLHttpRequest();
xmlhttp.open("GET", file, false);
xmlDoc = xmlhttp.responseXML.documentElement;

catch (e)
error = e.message;

  #2 (permalink)  
Old April 16th, 2011, 12:43 AM
Friend of Wrox
Points: 1,749, Level: 16
Points: 1,749, Level: 16 Points: 1,749, Level: 16 Points: 1,749, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2007
Location: San Diego, CA, USA.
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts

I'm also a JS programmer, and about 4 months ago I started with a new company that uses jQuery for all it's AJAX communications. I hadn't really worked with AJAX much before this, I'm mainly a server side programmer.

I think you would really prefer letting jQuery do all of this fundamental AJAX processing for you, especially since their team of developers has worked out virtually all of the really nasty cross-browser stuff over the course of years. It frees you from learning all that stuff over the next several years before your program will work, and you can just focus on making your program do what you want it to do. The thing I really like about jQuery though is that it doesn't impose any constraints on you. It's just a function library; if there are useful functions that you want to use, you use them. If not, you just write your custom code the way that makes the most sense to you. You're not required to relearn how to do simple things in javascript via some complex new tool (like when you work with CMSs like WordPress or frameworks like drupal).

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.

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
Previewing in IE and Chrome WillieO BOOK: Beginning HTML, XHTML, CSS, and JavaScript 3 February 1st, 2011 02:43 PM
Menus in Chrome, Ch 7 p244- Alanrf BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 9 May 17th, 2010 01:37 PM
zXml.js for Chrome jabadia BOOK: Professional Ajax ISBN: 978-0-471-77778-6 2 October 5th, 2009 09:41 AM
Heat Map over Google Map ajit Javascript 0 March 7th, 2008 09:01 AM

All times are GMT -4. The time now is 06:45 PM.

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