Loading content into widgets...

"luca\.mariano\@email\.it" <[email protected]> Wed, 18 Feb 2004 15:49:55 +0100
Newsgroups gmane.comp.windows.devel.netwindows
Message-ID <[email protected]>
Hi all,
I'm facing a problem whiile using the netwindows framework.
I've designed a simple GUI with a menu_bar and a content_area; the menu is
loaded once, when the user click on a menu item the loadContentURL(url) function
is called:


	function loadContentURL (url)
	{
	var objS = __components__.getComponentsOfType('content_area');
	var cAreaObj = objS[0];
	cAreaObj.loadURL (url);
	}

This function simply get a reference to the content panel, then loads the given
URL into it.

All works fine when the loaded page is a plain HTML; but when I try to load a
netWindows-powered page into the content pane I'm not able to obtain a corret
widget rendering, and sometimes the nested widget is not working at all.

In this case I need to load into the content_area a gen_data_table, but when I
try this conmibation the resulting gen_data_table is not accessible; every mouse
click on a data or header row result into a JS exception:

Error: __components__.getComponentFromNode(this) has no properties

The _same_ page with the gen_data_table widget works fine when loaded alone into
a browser window.
I found the same behaviour when using as container other widgets (e.g. split_pane).
Finally the only way to have this working is using an Iframe instead of a
content_area, but I don't like this workaround because I want to use only
netWindows components here...

Can anyone point me to the right direction?

Thanks,
Luca


Ing. Luca Mariano
-------------------------------------
- email:
[email protected]
- cell:
347/56.03.614
- web:
http://www.lucamariano.it
-------------------------------------



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Realizza i tuoi sogni con Blu American Express e vinci una Rover! Clicca qui
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1853&d=18-2

_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org