Re: [Netwindows-cvs-notify] netWindows/docs/widget_test_pages validator_test.html, 1.2, 1.3

Michael Flanagan <[email protected]> Mon, 15 Sep 2003 11:45:15 -0700
Newsgroups gmane.comp.windows.devel.netwindows
Message-ID <[email protected]>
I'm also seeing this problem Alex.

Using DOM Inspector and analyizing the runtime page, the validators.js 
include is actually below that of validator and validator_group widgets.

My temporary solution has been to include the validators.js file into 
the set of core files that get loaded at nw initialization. Anyone 
interested can apply the following patch to netWindows.js from cvs head:

Index: netWindows.js
===================================================================
RCS file: /cvsroot/netwindows/netWindows/winScripts/netWindows.js,v
retrieving revision 1.133
diff -u -r1.133 netWindows.js
--- netWindows.js	14 Sep 2003 01:26:01 -0000	1.133
+++ netWindows.js	15 Sep 2003 18:40:41 -0000
@@ -1247,6 +1247,7 @@
  			this.addIncURL(cp+"component_registry.js");
  			this.addIncURL(cp+"widget_core.js");
  			this.addIncURL(cp+"data_core.js");
+			this.addIncURL(this.widgetPath+"validators.js");

  			if(this.includeTooltips){
  				this.addIncURL(cp+"tooltips.js");


[email protected] wrote:

> Update of /cvsroot/netwindows/netWindows/docs/widget_test_pages
> In directory sc8-pr-cvs1:/tmp/cvs-serv22343
> 
> Modified Files:
> 	validator_test.html 
> Log Message:
> explicitly requiring validators.js, as there seems to be a latent inclusion problem with this file
> 
> 
> Index: validator_test.html
> ===================================================================
> RCS file: /cvsroot/netwindows/netWindows/docs/widget_test_pages/validator_test.html,v
> retrieving revision 1.2
> retrieving revision 1.3
> diff -u -w -d -r1.2 -r1.3
> --- validator_test.html	13 Sep 2003 06:13:03 -0000	1.2
> +++ validator_test.html	13 Sep 2003 06:44:51 -0000	1.3
> @@ -21,13 +21,20 @@
>  	</script>
>  	<script language="JavaScript" type="text/javascript" src="../../winScripts/netWindows.js"></script>
>  	<script language="JavaScript">
> +
>  		//widget includes
> -		__scripts__.require(__config__.widgetPath+"validator_widget.js");
> -		__scripts__.require(__config__.widgetPath+"validator_group_widget.js");
> +		with(__scripts__){
> +			require(__config__.widgetPath+"validators.js");
> +			require(__config__.widgetPath+"validator_widget.js");
> +			require(__config__.widgetPath+"validator_group_widget.js");
> +		}
> +
>  		function envInit(){
>  			create_console('<<debugging console initialized>>', 0, 0, 'right', 'top', 600, 500, 100);
>  		}
> +
>  		__sig__.connectOnceByName(__env__, "onLoad", null, "envInit");
> +
>  	</script>
>  	<style type="text/css">



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