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 250 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

These
methods include the database, php-eaccelerator, and php-pecl-apc. We must install
php-eaccelerator or php-pecl-apc on the server if we have to use them.
There is a limitation of database session-storage. The session data size
is limited to 65,535 characters. This can cause problems with extensions
that require large amounts of session storage space.
The Browser
A useful source of information about the client is the browser. We can use the
JBrowser class, located in joomla.environment.browser, to investigate the
client browser.
Browsers have features that enable them to behave in certain ways. For example, a
browser may or may not support JavaScript. We can use the hasFeature() method
to check for different features.
Extension Design
[ 186 ]
This example checks for JavaScript support:
$browser =& JBrowser::getInstance();
if ($browser->hasFeature('javascript'))
{
// the browser has JavaScript capabilities
}
This is a list of the different features we can check for when using the hasFeature()
method:
accesskey
cite
dom
frames
hdml
homepage
html
iframes
images
java
javascript
optgroup
rte
tables
utf
wml
xmlhttpreq
Browsers also have quirks (peculiarities of behavior).


Pages:
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
Zakłady Sportowe Bet-at-home wizytówki online Świątynia Humoru - Przypowieść dobre programy alveo