On Fri, Feb 24, 2012 at 10:59 PM, Peter Bittner <[email protected]> wrote: > 2012/2/24 lkcl luke <[email protected]>: >> a few things need tidying up - there's a "recursion exceeded" error >> you can see the results of, in the left pane: this never happened >> before. also the layout has a couple of "whoopsies", and the >> "loading" gif never disappears, remaining behind the tabs. > > Pardon me, a "recursion exceeded" error? Can you do a clean 'git > clone' of the repository, and try to build the pyjs_site again?
i haven't done that - i used pyjd. python website.py > There is no error, neither with pyjsbuild nor with the resulting > application in the web browser. > Also, with a build from a freshly cloned repository the layout is > identical to the screenshots I posted. No flaws whatsoever. What do > you see? i'm using pyjd. >> the addition of that "loading" gif therefore really needs to be done >> *by* the bootstrap js loader (very early, obviously) *not* blopped >> onto the static HTML in the random hope that it will go away. > > There is no random hope: the loading gif is hidden by the pink area as > soon as the site is drawn. no it's not, because pyjd doesn't run bootstrap.js, does it? everything that goes into pyjamas *has* to work with both pyjs and pyjd. > So, if you really really by all means want that in the bootstrap > loader, what shall I do? what i would suggest is this (documented, of course): * look for a div with an id of "bootstrap-loader". * if it doesn't exist, create one, and add it with a "float" and a higher z-index, perhaps centre it etc. etc. * add the gif image to it (again, using DOM appendChild) * run the usual stuff * after everything's loaded, remove the div. in this way, the operation of the bootstrap loader does *not* interfere with pyjd. l.

