<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> Refresh progress bar </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_Progress2 Manual" /> <link rel="up" href="ch10.html" title= "Chapter 10. How to to implement an AJAX Progress Bar" /> <link rel="prev" href="ch10s04.html" title="Handle polling loop" /> <link rel="next" href="ch10s06.html" title="Examples (full source code)" /> <style type="text/css"> /*<![CDATA[*/ body { background-color: white; color: black; } :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } div.c2 {margin-left: 0.5in; margin-right: 0.5in;} h2.c1 {clear: both} /*]]>*/ </style> </head> <body> <table class="progress2Header"> <tr> <td> <img src="img/pear_progress2.gif" align="left" alt= "PEAR Progress2 logo" /> <h1> HTML_Progress2 : The Definitive Guide </h1> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> Refresh progress bar </th> </tr> <tr> <td width="20%" align="left"> <a accesskey="p" href="ch10s04.html">Prev</a> </td> <th width="60%" align="center"> Chapter 10. How to to implement an AJAX Progress Bar </th> <td width="20%" align="right"> <a accesskey="n" href="ch10s06.html">Next</a> </td> </tr> </table> </div> </td> </tr> </table> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> <a name="ajax.refresh.pbar" id="ajax.refresh.pbar"></a>Refresh progress bar </h2> </div> <p> Highlight cells is still done by default progress javascript code <span class="bold"><strong>HTML_Progress2.refresh</strong></span> function. See: HTML_Progress::getScript(), or external file "HTML_Progress2.js", </p> <p> Callback run by HTML_AJAX is <span class= "bold"><strong>HTML_Progress2.statusCheckCallback</strong></span>. </p> <div class="important c2"> <table border="0" summary="Important"> <tr> <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Important]" src="img/admons/important.png" /> </td> <th align="left"> Important </th> </tr> <tr> <td align="left" valign="top"> <p> Server script should return a result object with at least the 'percentage' property defined. 'labels' is optional. </p> </td> </tr> </table> </div> </div> <table class="progress2Footer"> <tr> <td align="left"> HTML_Progress2 : The Definitive Guide </td> <td align="right"> v 2.4.0 : April 20, 2007 </td> </tr> </table> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> <a accesskey="p" href="ch10s04.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch10.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="ch10s06.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> Handle polling loop </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> Examples (full source code) </td> </tr> </table> </div> </body> </html>