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
~603 People Reached
Favorite Forums

4 Posted Topics

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 Member #908245
0
213
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
142
Member Avatar for softDeveloper

I prefer to split textnodes into span elements with one character each. But if you want to take the challenge, you have to get the Range object and then obtain both start and end elements and offset. A very complete reference of this can be read [here](http://help.dottoro.com/ljxsqnoi.php). I hope it …

Member Avatar for patocardo
0
183
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
65

The End.