Question

In my application there is a drop down box, second drop down box value depends on first.I developed it using AJAX and Struts1.3.8.
When the second drop down box item selects it will display some information of the selected item of select options. Here the processing of the request takes much time. But end user thinks it is not working.So to avoid that i want to display the temporary page displaying
"Processing request.. Please wait...."
How to implement it using AJAX and Struts1.3.8.
In struts2 it is predefined and using stop and wait we can achieve it..
But how to do in Struts1.3.8???
Any idea and response highly appreciatable.

Thanks in advance,
Laxman chowdary

Was it helpful?

Solution

in ur ajax code ..use this

document.getElementById(disid).innerHTML= "Processing request.. Please wait....";

keep rest of ur ajax code the same way ..

OTHER TIPS

This is usefull for your Requirement.Try it

<script type="text/javascript">
        function callLoadingDiv(){
            $("#spinner").fadeIn("fast");
        }
</script>
<style type="text/css">
#spinner {
    position: fixed;left: 0px;top: 0px;width: 100%;height: 100%;z-index: 9999;background: url(images/loading.jpg) 50% 50% no-repeat #ede9df;
}
</style>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top