Re: Newbie question...
Alex Russell <[email protected]> Thu, 11 Sep 2003 10:30:39 -0500
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Organization | netWindows.org |
| Message-ID | <[email protected]> |
On Thursday 11 September 2003 02:46, Luca Mariano wrote: > Hi people, > please help me with a very basic question: I want to use the NW content > loading mechanism in my new web applications, but the example shipped with > the distribution doesn't work for me. > I used the code from http://www.netwindows.org/docs/round_trips.html , but > it does nothig! Question: what version of the toolkit are you using? 0.3? CVS? Ok, think I found the problem with this. This document hasn't been updated in nearly a year and a half, but the looks of it. Sorry! The first problem was that the <script> tags were declared with a language level of "JavaScript1.2" instead of "JavaScript" or "JavaScript1.5". Mark discovered that the 1.2-specific declaration induced a "quirks" mode in Mozilla that was causing us all kinds of headaches. As a result, we now explicitly don't load the environment if we detect that we're in quirks mode. Soooo, the right way to declare the scripts at the top of the page would be: <script language="JavaScript" type="text/javascript"> Next up, it used a now-extinct version of our event handling infrastructure was being used. Instead of: __env__.addEvtFP(loadFoo, 'onload'); You'll want to use: __sig__.connectByName(__env__, "onLoad", null, "loadFoo"); The last major change is actually a simplification. On pages that you're loading, you now no-longer have to call load_page(); from the document's onLoad handler. Just include load_page_callback.js and you're set! The document has been updated with these changes: http://netwindows.org/docs/round_trips.html Let me know if you're still having trouble using the now-updated example. Sorry for the inconvenience! -- Alex Russell [email protected] BD10 7AFC 87F6 63F9 1691 83FA 9884 3A15 AFC9 61B7 [email protected] F687 1964 1EF6 453E 9BD0 5148 A15D 1D43 AB92 9A46 _______________________________________________ The netWindows developers list: [email protected] http://netwindows.org/mailman/listinfo/devel_netwindows.org