Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~561 People Reached
Favorite Forums
Favorite Tags
Member Avatar for patocardo

For security reasons, several articles recommend "do not cache pages". So I usually put the following at the beginning of my web pages header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); That works very …

Member Avatar for jmichae3
0
201
Member Avatar for patocardo

I cannot find the mistake in the following code function doArray(n){ // test with n > 1000 var str, i, j,arr=[], cnt=0, q=0, re; str = ["one two three","two three four","three four five", "four five one", "five one two"]; for(i=0; i<n; i++){ j = Math.round(Math.random()*(str.length-1)); arr.push(str[j]); } re =/two/g; for(i=0; …

Member Avatar for Airshow
1
128
Member Avatar for softDeveloper

Dear All, Please suppose that I have this line of code, and that my selection range goes from div element with id=1, starting at '2', to div element with id='2', ending at '8'. `<div id='1'>1`2`3</div>456<div id='2'>7`8`9</div>`. I'm using chrome, I would like to get the position of the cursor inside …

Member Avatar for patocardo
0
177
Member Avatar for patocardo

Hi: I'm trying to set a dropdown autosuggestion inside a textarea or a rich textarea (iframe+designmode). The problem I found is that I don't know how to get the caret coordinates in gecko-based navigators. In MSIE, the caret coordinates seems to be gotten by offsetTop and offsetLeft applied to the …

0
55