microsoft.public.dotnet.languages.jscript Archive - July 2003
Post a message to this list
Messages
Page: 12
Executing shell commands in JScript.NET (2 replies)
microsoft.public.dotnet.languages.jscript
What is the easiest way to execute a shell command in JScript.NET? /Klas Mellbourn
Disabling Asp Button on click (2 replies)
microsoft.public.dotnet.languages.jscript
Hi! I have a Aspx button that i want to disable when i click it, so that the user doesn't click it two times! This button as 'private void bt gravar Click(object sender, System.EventArgs e)' on the server. I have to do this with javascript, because if i do it on the server, the buton will only be disabled on the end of the PostBack! I have tryed this: this.bt gravar.Attributes.Add("onclick","docum...
how to refresh page after date selection from popup calendar? (2 replies)
microsoft.public.dotnet.languages.jscript
hi guys, I have a textbox and an image button beside it which I click to pop up a calendar. I click a date in the calendar and it is displayed in the textbox. I used an article written by colt. It's fine. I've set the autopostback property of the textbox to true because just below I have a datagrid that needs to bring the data for that date. So when I change the date (by typing) in the textbox, th...
getting input from CLI (3 replies)
microsoft.public.dotnet.languages.jscript
How can I get input from the commandline in Jscript (compiled code ofcourse) Regards Jonas
How to eliminate Microsoft.JScript.INeedEngine... ? (2 replies)
microsoft.public.dotnet.languages.jscript
If you compile anything using jsc.exe you will eventually run into needing a reference the Microsoft.JScript namespace if you are integrating with other code using C# or VB.NET. If you look at your dll in ildasm.exe you will find that your classes will implement Microsoft.JScript.INeedEngine and have a field using Microsoft.JScript.Vsa.VsaEngine. I have heard that it is not possible to eliminate t...
javascript calling a .NET event on an asp page? (2 replies)
microsoft.public.dotnet.languages.jscript
Ok...I've got a List window which has an "Add" button. The Add button opens a popup window and the user enters some data and clicks submit. I've registered a "refresh()" javascript function on the List window and I can access this function from my popup window by registering the following script cmdSubmit click event... i oBusinessObject.AddsomeCode(.....) If i 0 Then 'Close the window automaticly...
Translate C++ dynamic_cast to JScript? (2 replies)
microsoft.public.dotnet.languages.jscript
How do I translate this C into JScript? class SQLNode : public TreeNode { }; SQLNode * pS; if( pS dynamic cast SQLNode* (tv SelectedNode) ) { }
round a float (2 replies)
microsoft.public.dotnet.languages.jscript
I'm trying to do this operation: s 100 33.33 and i get s 66.6600000000001 instead of 66.67 i m using s Math.round(s) but it response me s 67 How i should do?? thanks Trozky
JScript.net newbie question (2 replies)
microsoft.public.dotnet.languages.jscript
I have a large JScript based server component that I'm contemplating moving to .NET. It makes extensive use of eval(), so it's not really feasible to port it to C# JScript.Net seems like the perfect execution vehicle. For starters, I'm experimenting with simple scripts to learn may way around. Consider the following: // import System; function test() { return function (x) { return x*2; } } var a t...
jscript events in multiple script blocks (2 replies)
microsoft.public.dotnet.languages.jscript
Hello, I am creating WebControl object in ASP.NET which register a script on the page. As there are multiple controls there are multiple scripts (one for each type of control). Each script just points it too a URL which contains the actual script file. I think the problem I am having is that each control has some event handlers and I read in MSDN (http://msdn.microsoft.com/library/default.asp?url ...
how to expose XmlNode as GlobalObject (2 replies)
microsoft.public.dotnet.languages.jscript
Hi, I'm trying to implement a prototype of a system that would use JScript.Net with VSA to manipulate data that is eventually stored in a database as an Xml Stream. For instance, say I have this simple xml fragment in the db (extreme simplification, but it's not important for my question): object name "info" string name "name" aaron /string int name "age" 24 /int /object I would like for my users ...
myVar.Append("</script>") error (2 replies)
microsoft.public.dotnet.languages.jscript
This is not earth shattering, and there is an easy work around, and its not truely an error, however, it did take me some time to figure out what was the problem since I just received obscure compiler errors and I thought others might find it interesting. While loading a StringBuilder using Append, as show above, the /script signaled the end of my script processing even tho I was still mid stream ...
Focus in textboxes (4 replies)
microsoft.public.dotnet.languages.jscript
hi guys, Suppose I have 2 textboxes: ClientID and ClientName and currently, the focus is in the ClientID textbox. When I press the Enter key, I want the focus to go the ClientName textbox. How can I do that? It is similar to pressing Tab in the ClientID textbox.
Can't compile a JS file into an EXE (5 replies)
microsoft.public.dotnet.languages.jscript
This is my first time using JScript, and I have a problem trying to compile a JS file into an EXE. I searched the newsgroup and found I should use the following syntax: JSC TEST.JS And it should generate a file called TEST.EXE. However, it gave me the following error instead: Microsoft (R) JScript .NET Compiler version 7.00.9502 for Microsoft (R) .NET Framework version 1.00.3705 Copyright (C) Micr...
showModalDialog: Passing multiple values back from child (5 replies)
microsoft.public.dotnet.languages.jscript
I'm using window.showModalDialog to get users to enter data and submit the info back to the parent. I have 2 questions. 1) I've been able to do this for getting one parameter but how can I modify the code below to get an object that has multiple values such as an array? In other words, what's the equivalent of &quot;document.getElementById('txtEffectiveDate').value&quot; for getting an object that has multi...
How to position at a particular character in a textbox (4 replies)
microsoft.public.dotnet.languages.jscript
Hello, I have a webforms text box that I preload with the first two positions of a zip code. When the user tabs into that field, I want the cursor to be positioned at the the character right after the two digits already there (3rd position). Thanks in advance. Paul
Using DllImport in Jscript (3 replies)
microsoft.public.dotnet.languages.jscript
What is the proper syntax for using DllImport in Jscript? I have the following: DllImport(&quot;advapi32.dll&quot;, CharSet CharSet.Auto) public static function LogonUser(lpszUserName : String, lpszDomain : String, lpszPassword : String, dwLogonType : int, dwLogonProvider : int, phToken : System.IntPtr[]) : int; But when I compile it I get the following error: Compiler Error Message: JS1212: 'LogonUser' can...
convert to uppercase on keypress (5 replies)
microsoft.public.dotnet.languages.jscript
hi there When I type in a textbox, I want the characters to be immediately converted to uppercase. So in the HTML, I did : asp:TextBox id &quot;txtCli&quot; onKeyPress &quot;return Upper(event,this)&quot; runat &quot;server&quot; /asp:TextBox and then just after the /FORM tag, I wrote: SCRIPT language &quot;javascript&quot; function Upper(e,r) { if (e.keyCode 96 &amp;&amp; e.keyCode 123) r.value r.value.toUpperCase(); } The problem is that it d...
Regular Expression including a problem (5 replies)
microsoft.public.dotnet.languages.jscript
I am parsing an string that includes array variables, eg, onclick &quot;check radio(rEyes[0],this.value);&quot; This is straightforward, however, if I include &quot;]&quot;, normally processed with the escape character &quot;\]&quot; inside a bracket group, eg, [a zA Z\[\]] this does not work. I have tried \x5D, etc. The 1.1 docs of course say just use \]. If I exclude my ] from the searched string (leaving the [), everything ...
Jscript substr() - not working? (5 replies)
microsoft.public.dotnet.languages.jscript
Greetings, I am trying to manipulate a string using the substr method to clip a leading &quot;/&quot; from a url path. var thisPage &quot;/some/page/page.aspx&quot; var pageString (thisPage.charAt(0) '/') ? thisPage.substr(1) : thisPage; Microsoft jscript.net reference states that the substr method takes one required argument start position and one optional argument Length. If the length is left out, it should return...
Jscript to .dll for use in Csharp (2 replies)
microsoft.public.dotnet.languages.jscript
I have a web application that makes extensive use of: AnArray new Array(); AnArray['red'] 'flag color 1' AnArray['white'] 'flag color 2' AnArray['blue'] 'flag color 3' I don't find that capability in C# If I create an object that manipulates the extensive arrays in Jscript and compile it to a .dll, can I encorporate that dll into the c# program and use methods (that I have written in jscript) to m...
Getting commaned line arguments in JScript.NET (2 replies)
microsoft.public.dotnet.languages.jscript
greetings, gurus! Does anyone know how in JScript.NET get the arguments passed to the program on its command line? Thanks in advance Constantine
syntax error when creating an Array (4 replies)
microsoft.public.dotnet.languages.jscript
When I compile this code use &quot;jsc hello.js&quot; I get a syntax error on line 11 and I can't understand why. Thanks. Bill // jsc.exe hello.js // filename: hello.js import System import System.Windows.Forms import System.ComponentModel import System.Drawing class Hello extends System.Windows.Forms.Form { var Button0 : System.Windows.Forms.Button var Button1 : System.Windows.Forms.Button var MbuttArray n...
Web Browser in .Net Form (7 replies)
microsoft.public.dotnet.languages.jscript
I am having trouble converting this into a format that I can use in a compiled .Net Jscript The bottom line is that I am trying to incorporate a web browser control inside a form. This code was from Visual Studio and it works. The problem has to do with the reference to web browser component. The compiler complains that it can't find AxSHDocVw. I have tried moving the SHDocVw.dll into the director...
Assembly Called from C# (3 replies)
microsoft.public.dotnet.languages.jscript
This is a *.bat file jsc.exe /r:Microsoft.JScript.dll /t:library ServerPush.js copy ServerPush.dll .. ildasm /Adv ServerPush.dll In the directory above is a C# project &quot;Solutions Explorer&quot;, Right Mouse on References Add Reference; Projects Tab Browse ... The &quot;Object Browser&quot; has a tree display for the assembly, I think ... ServerPush.js : import System; package ServerPush { public class jsServerPu...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com