Click here to Skip to main content
15,885,817 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
So, I am working on a browser support project to make my application work in most browsers(IE11, Chrome, Safari, Firefox). I am using the following piece of code in my application

function clearall() {
document.getElementById('key').value= '<%= CCLPageConstants.PRODLIST_RESET%>';
document.body.style.cursor = "wait";
document.productListDisplay.submit();
}

But the problem here is my cursor doesn't change from wait state to default state only in safari. It works in remaining browsers. I have searched on google and tried following ways. But it did not work. Please help

1. function clearall() {
document.getElementById('key').value= '<%= CCLPageConstants.PRODLIST_RESET%>';
document.body.style.cursor = "wait";
document.productListDisplay.submit();
document.getElementById('key').scrollLeft = 1;
document.getElementById('key').scrollLeft = 0;
}
window.setTimeout(clearall(),2000);

2. function clearall() {
document.getElementById('key').value= '<%= CCLPageConstants.PRODLIST_RESET%>';
document.body.style.cursor = "wait";
window.setTimeout(function(){document.productListDisplay.submit();
document.body.style.cursor = "default";}),2000);

}

But they did not work.

Regards,
Kruthi
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900