Re: Newbie questions...

Alex Russell <[email protected]> Thu, 11 Sep 2003 10:19:03 -0500
Newsgroups gmane.comp.windows.devel.netwindows
Organization netWindows.org
Message-ID <[email protected]>
On Thursday 11 September 2003 03:44, [email protected] 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!

Hrm. Let me make sure that code is still up to date. I doubt it = \

> Please can anyone tell me the right procedure to load content into a
> container?

//////////////// example /////////////////

// get a reference to the container:
var myContainer = document.getElementById("containerID");

// load it!
__env__.addToPageQueue("http://somwhere.com/foo.html", myContainer);

////////////// end example ////////////////

Note that foo.html MUST include a line like:

<script 
src="http://yourdomain.com/netWindows/winScripts/load_page_callback.js" 
language="JavaScript"></script>

> Another (important) thing: where can I find the NW API?

An incomplete draft of the documentation for the API as it exists in CVS (the 
development of which has been generously sponosred by Mark) is available at:

	http://netWindows.org/docs/manual.pdf
	http://netWindows.org/docs/manual.html

Both are now linked from the netWindows.org main page thanks to some proding 
from Michael last night.

I realize the docs are currently incomplete, so if you have any questions, 
don't hesitate to post them here.

Hope that helps.

-- 
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