I am trying to change the draggable cursor to the wait cursor, but it never
changes. The following code is invoked after a user clicks on a marker or
bounding box. When I click on an object the cursor goes from an open hand
to a closed hand. Once the URL request has been completed, the hand goes
back to the open hand. In some cases it can take several seconds for the
URL request to complete. There's no difference between leaving the
"map.setOptions({draggableCursor:'wait'});" code in or commenting it out.
What am I doing wrong?
-- Geoff
function httpRequest(url)
{
var pageRequest = false; //variable to hold ajax object
map.setOptions({draggableCursor:'wait'});
/*@cc_on
@if (@_jscript_version >= 5)
try {
pageRequest = new ActiveXObject("Msxml2.XMLHTTP")
}
catch (e){
try {
pageRequest = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e2){
pageRequest = false
}
}
@end
@*/
if (!pageRequest && typeof XMLHttpRequest != 'undefined')
{pageRequest = new XMLHttpRequest();}
if (pageRequest)
{
pageRequest.open('GET', url, false); //get page synchronously
pageRequest.send(null);
openInfoWindow(pageRequest, 0);
}
map.setOptions({draggableCursor:null});
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/TdPWmSqb_cUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.