JScript

JScript is Microsoft's dialect of the ECMAScript standard that is used in Microsoft's Internet Explorer. JScript is implemented as an Active Scripting engine, so it can be "plugged in" to OLE Automation applications that support Active Scripting, such as Internet Explorer, Active Server Pages, and Windows Script Host. It also means such applications can use multiple Active Scripting languages, e.g., JScript, VBScript or PerlScript.

Share tech news, updates, or what's on your mind.

Sign up to Post

Oh men,
Im wondering if you guys can give me some advice and examples of how i can position my web page in the proper manner,
some tricks or best practices for positioning my page locally
regards
0
On Demand Webinar - Networking for the Cloud Era
LVL 9
On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

hi experts please help....
i am not able to use the contents of variable data in the jscript function
code behind:-
public string data;
  data = lblData.Text.ToString();

the java script:-

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js" type="text/javascript"></script>

 <script type="text/javascript">
     window.history.forward(-1);



     function Printprint() {

         var printWindow = window.open('', '', 'height=400,width=800');
         printWindow.document.write('<html><head>');
         printWindow.document.write('</head><body ><center>');
         printWindow.document.write('<h1>ESD BiharSharif</h1></br>Bill Date:-' + document.getElementById("TextBox4").value + '</br>Sanctioned Load=' + document.getElementById("txtLoadSanctioned").value + '</br>Units=' + document.getElementById("txtUnitsConsumed").value + '</br>Phase=' + document.getElementById("TextBox3").value + '</br>Duration=' + document.getElementById("txtFromDate").value + ' To ' + document.getElementById("txtToDate").value + ' i.e Total <b>' + document.getElementById("TextBox1").value + '</b></br>' );
         printWindow.document.write('<%=data %>');
         printWindow.document.write('</center></body></html>');
         printWindow.document.close();
         setTimeout(function () {
             printWindow.print();
         }, 500);
         return false;
     }
   

</script>

error:-

JavaScript runtime error: The value of the property …
0
I tried to create a count down clock in Dreamweaver.  I need to remove the script I entered, but unsure of how to do it.  Help, please.
0
I am trying to get Trend Micro statistics written out to a text file with a batch file.

pccntmon.exe -c >> File.txt
pccntmon.exe -v >> File.txt

I see that the pccntmon.exe app seems to start a new command line when it is executed so only the flags are passed to the exe.  I am sure that this is due to ensuring that the app is not compromised by some easy silly code.  I have many servers over Win 2K3 and up to gather this info.  I do not have access to the central admin server.

I have tried the following :
start /wait cmd /c "C:\Program Files\Trend Micro\OfficeScan Client\pccntmon.exe" -c >> C:\<desktop>\file.txt
and
start /B /wait "C:\Program Files\Trend Micro\OfficeScan Client\pccntmon.exe" -c >> C:\<desktop>\file.txt

Open in new window

This opens a new window and displays the agent info in the console only.  
Also, after the pccntmon.exe executes it is expecting a user to hit "Enter" on the keyboard.  I think I can approach this with a bit of  Jscript.

set SendKeys=CScript //nologo //E:JScript "%~F0"

%SendKeys% "start /wait cmd /c "C:\Program Files\Trend Micro\OfficeScan Client\pccntmon.exe" -c >> C:\<desktop>\file.txt"

@end

// JScript section

var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.SendKeys(WScript.Arguments(0));

Open in new window


But I got to get past the first part first.  Any direction is appreciated.
0
This works pretty well but I want to add more than just one .js file to it. Do How can I add more than one source to this?

<script type="text/javascript">
function downloadJSAtOnload() {
 var element = document.createElement("script");
 element.src = "yourdeferscripts.js";
 document.body.appendChild(element);
 }
 if (window.addEventListener)
 window.addEventListener("load", downloadJSAtOnload, false);
 else if (window.attachEvent)
 window.attachEvent("onload", downloadJSAtOnload);
 else window.onload = downloadJSAtOnload;
</script>

Open in new window

0

JScript

JScript is Microsoft's dialect of the ECMAScript standard that is used in Microsoft's Internet Explorer. JScript is implemented as an Active Scripting engine, so it can be "plugged in" to OLE Automation applications that support Active Scripting, such as Internet Explorer, Active Server Pages, and Windows Script Host. It also means such applications can use multiple Active Scripting languages, e.g., JScript, VBScript or PerlScript.

Related Topics

Top Experts In
JScript
<
Monthly
>

No Top Experts for this time period. Answer questions to earn the title!