CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   Why are button clicks so slow in IE (http://www.codingforums.com/showthread.php?t=275043)

m2244 10-03-2012 02:04 PM

Why are button clicks so slow in IE
 
I am testing my site out with different browsers and I have noticed that with IE, when I click a button several times quickly only a portion of the clicks register. On Chrome or FF the clicks register much quicker.

Is there a way to fix this problem?

abduraooft 10-03-2012 02:40 PM

Quote:

Is there a way to fix this problem?
Is there a way to have a demo/some code ?

m2244 10-03-2012 03:31 PM

Quote:

Originally Posted by abduraooft (Post 1275922)
Is there a way to have a demo/some code ?

Code:

<div id="next_prev_btn">
                <div id="prev_btn"><a class="prev_btn" href="javascript:goToPrev();"></a></div>
                <div id="next_btn"><a class="next_btn" href="javascript:goToNext();"></a></div>
</div>

Code:

function goToNext()
 {
        var next_ind = current_pg_ind + 1;
        if (next_ind <= pages_arr.length - 1)
        {
                current_pg_ind = next_ind;
                requestPage(current_pg_ind);
        }
 }

There is a good deal going on here but I don't understand why one browser is so much quicker at performing these button clicks than IE.


All times are GMT +1. The time now is 10:14 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.