[Mono-list] Script Locations of WebUIValidation.js, SmartNav.js

Gonzalo Paniagua Javier gonzalo@ximian.com
Fri, 10 Oct 2003 03:12:19 +0200


> El jue, 09-10-2003 a las 08:00, Gaurav Vaish escribió:
> > Hi,
> > 
> >     In the method
> > System.Web.UI.WebControls.BaseValidator::RegisterValidatorCommonScript()
> > 
> >     I need information about the location of the WebUIValidator.js file kept
> > in system_web subdirectories when ASP.Net is registered using
> > aspnet_regiis.exe (-i option).
> 
> We can put the .js files somewhere down ${prefix}/etc/mono/ and add that
> <webControl> and its handler to CVS. Of course, we should cook our own
> javascript.

Okay. It's done now. From inside System.Web assembly you can do:

        using System.Web.Configuration;
        .....
        WebControlsConfig c = WebControlsConfig.Instance;
        Console.WriteLine (c.ScriptsPhysicalDirectory);
        Console.WriteLine (c.ScriptsVirtualDirectory);
        ....
        
And that, in my system, prints:

        /home/gpanjav/go-mono/install/etc/mono/web_scripts
        /web_scripts

Now I will map the request from that virtual directory to the physical
one.

What's needed now?

     1. We need someone to either write or search for some scripts that
        provide similar functionality as those by MS
     2. Tell me the javascript code I should have to produce from the
        data in the page.

Any taker?

-Gonzalo