SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 120 | Next

Richard Wagner

"Professional iPhone and iPod touch Programming: Building Applications for Mobile Safari"


(continued)
Chapter 5: Handling Touch Interactions and Events
105
The window.onresize event handler would seem like a logical candidate to trap for an orientation
change. For example, consider the following code:
???http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd???>



On Resize
user-scalable=0;???>



Cras sed nibh.



Donec semper lorem ac dolor ornare interdum. Praesent condimentum. Suspendisse
lacinia interdum augue. Nunc venenatis ipsum sed ligula. Aenean vitae lacus. Sed
sit amet neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices
posuere cubilia Curae; Duis laoreet lorem quis nulla. Curabitur enim erat, gravida
ac, posuere sed, nonummy in, tortor. Donec id orci id lectus convallis egestas.
Duis ut dui. Aliquam dignissim dictum metus.




In this example, a function is added as the handler for window.


Pages:
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132