Greetings,
Your time and interest is duely appreciated.
I'm currently developing a web app that runs through a loop of db
executions to get data for a particular item on the site. It works by
a selecting a check box, which untilses the onClick function, to
execute the db query and display the results. All good so far.
The function can take up to about 5 seconds to complete the action
which is fine in firefox because I have implemented a little tag which
display 'loading' and I can see each little part being displayed as it
churns through function. The problem is this, in IE is pauses until
the function has completed, then displays it fully, so when the user
views it they may think nothing has happened as the div tag saying
loading doesn't appear and neither does the gradual visual of loading
of the items on the page.
Is there anyway of displaying the loading div tag whilst the function
is in operation in IE? This method works fine in firefox.
If i'm totally going off track with how it supposed to be done please
point me in the right direction.
Cheers,
Dezza
Here is some sample code:
function getData()
{
loaderDiv(“loader”); //display loading tag
…
javascript running here
…
loaderDiv(“loader”);
//hide loading tag
}
//function takes in name of div tag
//set div tag to hide/show accordingly
function loaderDiv(id)
{
if(document.getElementById(id).style.display == "none")
{
document.getElementById(id).style.display = "inline";
document.getElementById(id).innerHTML = "Gathering Data...";
}
else
{
document.getElementById(id).style.display = "none";
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
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-api?hl=en.