T
tim
Hello All,
I have a problem I have not been able to resolve with a webbased
project I am working on for work (not fun).
The scenario is this: I have a search that can take quite some time
depending on the search parameters, so I would like to be able to let
the user know their data is coming they just need to sit back and wait
a couple of seconds.
To do this, I cover the form with a <div> while the search is taking
place. Seems simple enough. So simple it works in Firefox and
Konqueror (yeah im a linux) guy. But when I try it on IE6, the status
bar looks likes it had loaded a page, the page sits their without the
div showing, then the results page is rendered. I have used the script
debugger in IE and determined the code is actually executing, but the
div is not being rendered. Is this a result of how IE handles
rendering after submitting or some other craziness ?
Below are excerpts from my code.....
function loading(msg,status) {
swapDOM("statusmessage",DIV({'id':'statusmessage'},DIV({'class':status},P({'class':'statusText'},msg))));
callLater(1, loading, msg+' . ', status);
return true;
}
function doSearch(){
//SEARCHING is a global variable I use as a fix to prevent double
submitting in IE since the div doesnt show
if (SEARCHING==false){
loading("Searching",'search');
document.search.submit();
SEARCHING=true;
return true;
}
else{
return false;
}
}
<form method='post' id='search' name='search' action="'/search"
onSubmit="javascript: return doSearch();">
....
....
...
</form>
Thanks in advance for any help,
Tim
I have a problem I have not been able to resolve with a webbased
project I am working on for work (not fun).
The scenario is this: I have a search that can take quite some time
depending on the search parameters, so I would like to be able to let
the user know their data is coming they just need to sit back and wait
a couple of seconds.
To do this, I cover the form with a <div> while the search is taking
place. Seems simple enough. So simple it works in Firefox and
Konqueror (yeah im a linux) guy. But when I try it on IE6, the status
bar looks likes it had loaded a page, the page sits their without the
div showing, then the results page is rendered. I have used the script
debugger in IE and determined the code is actually executing, but the
div is not being rendered. Is this a result of how IE handles
rendering after submitting or some other craziness ?
Below are excerpts from my code.....
function loading(msg,status) {
swapDOM("statusmessage",DIV({'id':'statusmessage'},DIV({'class':status},P({'class':'statusText'},msg))));
callLater(1, loading, msg+' . ', status);
return true;
}
function doSearch(){
//SEARCHING is a global variable I use as a fix to prevent double
submitting in IE since the div doesnt show
if (SEARCHING==false){
loading("Searching",'search');
document.search.submit();
SEARCHING=true;
return true;
}
else{
return false;
}
}
<form method='post' id='search' name='search' action="'/search"
onSubmit="javascript: return doSearch();">
....
....
...
</form>
Thanks in advance for any help,
Tim