Zdravim,
Myslim ze tady byla pred par dny nejaka diskuze jak dosahnout postupneho 
nacitani stranky. Zrovna jsem zjistil, ze jeden z mejch skriptu  to dela.  Ale 
dela to jen ve Firefoxu 3.x, IE7 to neumi.

V configu apache mam tohle:

<Directory /var/www/vpn>
        DirectoryIndex index.psp
        AddHandler mod_python .psp .psp_
        SetHandler mod_python
        PythonHandler mod_python.psp
        PythonDebug On
</Directory>

Ta psp stranka pak obahuje neco takoveho:

def getRows(table):
    out = ''
    for row in table:
        historyAddUser(row)
        out = out + '<tr>'
        for cell in row:
            out = out + '<td>' + cell + '</td>'
        out = out + '</tr>'
    return out

<!-- content-->
    <div class="content-area">
        <div class="content">
            <h2>PPTP VPN - history</h2>
            <table>
                <tr>
                    <th>VPN type</th><th>User</th><th>Connected 
since</th><th>Duration</th><th>IP address</th>
                </tr>
                <%=getRows(vpn.getPPTPHistory())%>
            </table>
        </div>
        <div class="content">
            <h2>OpenVPN - history</h2>
            <table>
                <tr>
                    <th>VPN type</th><th>User</th><th>Connected 
since</th><th>Duration</th><th>IP address</th>
                </tr>
                <%=getRows(vpn.getOpenVPNHistory())%>
            </table>

        </div>
  </div>

Takze nic zvlastniho. Podle me je to tedy doopravdy zalezitosti brosweru. 
Vypada to ze server postupne posila stranku tak jak ji script stiha generovat a 
zatimco Firfox ji hned zkousi renderovat IE7 ceka az je stranka natazena cela a 
pak teprve zobrazuje. Ale asi by to chtelo vic testu.

David
_______________________________________________
Python mailing list
[email protected]
http://www.py.cz/mailman/listinfo/python

Odpovedet emailem