- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
4 Posted Topics
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 …
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; …
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 …
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 …
The End.
patocardo