MrPrint
Technical User
- Jun 19, 2009
- 3
Well, this one has me pulling my hair out. Work 99% from a Mac with Safari and Firefox. Developed program for using Google maps and everything works fine in Safari, Firefox, Camino, Netscape, but fails in Opera and Internet Explorer on PC and Mac.
Opera
JavaScript - http//Event thread: load
name: ReferencedError
message: Statement on line 1: Referenced variable: intialize
Backtrace:
Line 1 of script
intialized();
At unknown location
[statement source code not available]
Internet Explorer
Object expected
store_locator2ab.cgi
Code 0
URI: http//
This is the cgi Code:
#!/usr/bin/perl
use CGI qw
standard);
use LWP::Simple;
my $key = "ABQIAAAAsB5176gIBmz8p31P2Gj4_hT_bgrCBItAL-YhyQZ_ACOA6N5LfxTfnN33knHNbv5_NfwzquJ9BYxarA";
print header;
print <<END_OF_HTML;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="
<head>
<title>Test Load function on Internet Explorer and Opera</title>
<script src=" p31P2Gj4_hT_bgrCBItAL-YhyQZ_ACOA6N5LfxTfnN33knHNbv5_NfwzquJ9BYxarA"
</script>
<script type="text/javascript">
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
</script>
</head>
<body onload="initialize()" onunload="GUnload()" style="font-family: Arial;border: 0 none;">
<div id="map_canvas" style="width: 500px; height: 300px"></div>
</body>
</html>
END_OF_HTML
Thanks in advance...A sample piece of code would be nice.
Opera
JavaScript - http//Event thread: load
name: ReferencedError
message: Statement on line 1: Referenced variable: intialize
Backtrace:
Line 1 of script
intialized();
At unknown location
[statement source code not available]
Internet Explorer
Object expected
store_locator2ab.cgi
Code 0
URI: http//
This is the cgi Code:
#!/usr/bin/perl
use CGI qw
use LWP::Simple;
my $key = "ABQIAAAAsB5176gIBmz8p31P2Gj4_hT_bgrCBItAL-YhyQZ_ACOA6N5LfxTfnN33knHNbv5_NfwzquJ9BYxarA";
print header;
print <<END_OF_HTML;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="
<head>
<title>Test Load function on Internet Explorer and Opera</title>
<script src=" p31P2Gj4_hT_bgrCBItAL-YhyQZ_ACOA6N5LfxTfnN33knHNbv5_NfwzquJ9BYxarA"
</script>
<script type="text/javascript">
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
</script>
</head>
<body onload="initialize()" onunload="GUnload()" style="font-family: Arial;border: 0 none;">
<div id="map_canvas" style="width: 500px; height: 300px"></div>
</body>
</html>
END_OF_HTML
Thanks in advance...A sample piece of code would be nice.