[ Index ] |
|
Code source de PRADO 3.0.6 |
1 <com:TContent ID="body" > 2 3 <h1 id="3401">TJavascriptLogger</h1> 4 <com:DocLink ClassPath="System.Web.UI.WebControls.TJavascriptLogger" /> 5 6 <p> 7 <tt>TJavascriptLogger</tt> provides logging for client-side javascript. It is mainly a wrapper of the Javascript developed at <a href="http://gleepglop.com/javascripts/logger/">http://gleepglop.com/javascripts/logger/</a>. 8 </p> 9 10 <p> 11 To use <tt>TJavascriptLogger</tt>, simply place the following component tag in a page template. 12 </p> 13 <com:TTextHighlighter Language="prado" CssClass="source"> 14 <com:TJavascriptLogger /> 15 </com:TTextHighlighter> 16 17 <p> 18 Then, the client-side Javascript may contain the following statements. When they are executed, they will appear in the logger window. 19 </p> 20 <com:TTextHighlighter Language="js" CssClass="source"> 21 Logger.info('something happend'); 22 Logger.warn('A warning'); 23 Logger.error('This is an error'); 24 Logger.debug('debug information'); 25 </com:TTextHighlighter> 26 27 <p> 28 To toggle the visibility of the logger and console on the browser window, press ALT-D (or CTRL-D on OS X). 29 </p> 30 31 </com:TContent>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |