| WishList: Readonly Arrays (3 replies) |
| microsoft.public.dotnet.languages.jscript |
| It would be nice if Arrays exposed a readonly wrapper. From example... Dim X() As Integer //fill the values Dim R() as Integer X.ReadOnly R would be a wrapper for X, not a copy. Thus any changes to X would be reflected in it. However, anyone given R would be prevented from making changes to the array. Also, the type used for R would inherit from Integer() so that you can pass it to methods that ne... |
|
| Page Scoped Static Class Vars? (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hello, I just found out after much consternation that jscript static class member variables, when run in the ASP.NET environment, maintain their value across page accesses. (but not across pages within an application, even if the code is in a shared include file). At first glance this seemed to be a nifty thing, but in practice I bet hardly anyone will use this feature. Far more handy for me would... |
|
| Handling events raised by generated controls (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hi, I have a form that contains generated text boxes and select controls. I need to know how to catch an event raised by any of these controls and know where it came from.The events that I need to work with are the change event from the textbox and the selectedIndexChanged from the select. Thanks for your help! |
|
| Anybody can tell me how to increase the JScript performance in ie? (8 replies) |
| microsoft.public.dotnet.languages.jscript |
| Anybody can tell me how to increase the JScript performance in ie? My program that runs very slowly is a bit complicated. Have you ever read any issue about the JScript performance in ie? Lilt |
|
| Tool Tips for drop down lists (7 replies) |
| microsoft.public.dotnet.languages.jscript |
| Does anyone know how this can be done? I can provide tool tips for other types of control using either the built in tool tip property or by using the onmouseover event in an html control but It doesn't work for either a HTML dropdown or a HTML listbox and it doesn't work for an ASP.NET DropDownList. It appears that the mouseover event doesn't ever fire for the dropdownlists |
|
| BeforeNavigate2 bug (8 replies) |
| microsoft.public.dotnet.languages.jscript |
| I just found out that there is a bug in the .NET framework that makes the event BeforeNavigate2 of the Webbrowser control not work. Does anyone have a hint or idea of how i can work around this problem? I want to port this old application to the .NET framework as soon as possible but the application is very dependent on that event that the .NET framework somehow won't fire. Per |
|
| WSC JS vs. JS.Net Speed Comparison (27 replies) |
| microsoft.public.dotnet.languages.jscript |
| I am now far enough along with our application conversion from js (with wsc) to js.net to get some reasonable speed comparisons. In all cases, the js.net is slower, in some cases considerably so. At this point we have not included the server and form controls (which would make it slower) or the cache (which would make it faster perhaps in some cases, considerably so). But we have made our applicat... |
|
| Big in JScript.NET Compiler (5 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hello Everyone, I found a bug in the JScript.NET compiler. If you do a " " operation on a string stoerd as a Session variable, the JScript compiler will exit with an "Internal compiler error". I am including the sample code to test this. //////////////// CODE START //////////////////// %@ Page language "JScript" % html body script language "jscript" runat "server" function AppendSession() { Sessio... |
|
| Q: A function reference invocation (15 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hi All, The following results in errors at RunStatic2 (compiled with JSC). Any ideas on how to get it working via eval would be appreciated, tks. // cut here function TestGlobal(a: String): String { print(a); } class Runtime { static function TestStatic(a: String) { print(a); } function RunGlobal() { var method: Function eval("TestGlobal") method("Global!"); } function RunStatic1() { var method: F... |
|
| ThreadPool examples in JScript.NET? (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| Before I go through the exercise of trying to translate C# and VB.NET thread pool (and other System.Threading) examples into JScript I figured I could at least ask if there is anyone with sample code showing use of the ThreadPool to execute stuff asynchronously and, of course, in a multi threaded fashion. Many thanks, Richard |
|
| Using Win32API in JScript (6 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hi. I found a lot of samples on how to use unmanaged functions of Win32API DLLs in VB.NET and C# .NET (For example: http://msdn.microsoft.com/library/default.asp?url /library/en us/cpref/html/ frlrfSystemSecurityPrincipalWindowsIdentityClassImpersonateTopic.asp) Tried to make it work in JScript.NET and ... no luck Are there any way to use those functions or is it another limitation of JScript.NET ... |
|
| Using Jscript with xml/xlst (10 replies) |
| microsoft.public.dotnet.languages.jscript |
| ..Net offers a number of new opportunities for working with xml/xlst. Unfortunately most of the examples I have seen are in VB and C# and do not do exactly what I want anyway. For example, if I understand them correctly, the .net docs tell us the most efficient way to perform xml/xlst transformation is with XPathDocument. The examples only show how to do this if the xml is coming from a file (url)... |
|
| exec in js .net (3 replies) |
| microsoft.public.dotnet.languages.jscript |
| In my application, I have form variables with names like hChestPain, hChestPain period, hChestPainChar, etc. (I didnot come up with these names, my doc did). Anyway, these are stored in the db as name value pairs. As we want to "set" the variables in a .Net page init manner for loading the input, I want to execute the command like retdata("CHName").Value retdata("CHValue"); where the retdata("CHNa... |
|
| Problem INSERTing JScript Date Variable INTO MS Access DATETIME Type Field (9 replies) |
| microsoft.public.dotnet.languages.jscript |
| Help! How do you INSERT a JScript Date variable INTO an MS Access field that is of DATETIME type? My code below otherwise works perfectly when INSERTing JScript string, integer, boolean variables, etc., INTO their respective MS Access VARCHAR or TEXT, INTEGER, BOOLEAN, etc., fields. Should I use JScript.Net or maybe even C# instead? tia vanessa %@ ENABLESESSIONSTATE false LANGUAGE JScript % % Resp... |
|
| Terrarium in JScript.NET? *problem* (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| Hey, I'm trying to extend an Animal class in MS's Terrarium in JScript.NET. Since there appears to be no JScript.NET examples before me, I'm on my own here. My test class with no implementation at all, save for one trace call, compiles, but then gives the error: Assembly failed validation process. Please fix the following: You are deriving from a base class that isn't allowed in JScript 0 So does ... |
|
| Handling VS.NET Build Events using Jscript (5 replies) |
| microsoft.public.dotnet.languages.jscript |
| Has anyone successfully accomplished this? Try as I might, I can't get it to work. I'd be very appreciative if someone could post simple sample code that creates the DTE object and then hooks up a handler for the BuildDone event. Thanks, Tim |
|
| Nothing vs null as argument (2 replies) |
| microsoft.public.dotnet.languages.jscript |
| I have multple examples of the following: Dim objReader as XmlReader; objReader objTransform.Transform(objXPNav, Nothing) which works in vb. When I try to use js and var objReader : XmlReader; objReader objTransform.Transform(objXPNav, null); I get the following: JS1183: More than one method or property matches this argument list. What am I missing? I believe that I have all of the other variables... |
|