I have been working on a mobile application for the iPhone/iPod that needs to be installed on the user’s device in “fullscreen mode.” Naturally, I wanted to prevent the user from being bothered by the little magnifying/selecting controls, as well as any long-touch menus. So, I thought that I would make a global CSS declaration:
* {-webkit-user-select: none; -webkit-touch-callout: none;}
Worked a treat until I about went bald trying to figure out why my form elements would not accept user-input. If I touched on a textarea, for example, the keyboard would pop up, and keyup/keydown events would fire, but nothing would get inserted into the element, and no cursor appeared. I put -webkit-user-select: text; in the form element’s css declaration, and everything started working great again.
If you get this error in plesk when you are trying to create a new domain, chances are you moved your /var/www/vhosts to a new partition or disk with more space, and you forgot to copy the .skel directory to the new partition.
Did you know?
As of PHP 5, you can easily modify array’s elements by preceding $value with &. This will assign reference instead of copying the value.
<?php $arr = array(1, 2, 3, 4);
foreach ($arr as &$value) {
$value = $value * 2;
}
// $arr is now array( 2, 4, 6, 8 )
unset($value); // break the reference with the last element
?>
In an excellently written article, Steve states clearly why Apple is embracing the future, and not relying on flash.
http://www.apple.com/hotnews/thoughts-on-flash/
If the inspector is open in docked mode, interaction within the webkit content window – typing text into an input, using a menu, selecting text – causes it to frantically scroll downwards.
via BogoJoker » Improving the Web Inspector.
…Glad I’m not the only one that noticed that behavior!