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

I think I read WHY this is happening but not sure how to fix it. If you visit

http://www.day6management.com/

The slideshow slides stack and then finally start the slideshow. I don't want the user to see this issue and have read a few css ideas and a few java ideas. Since I'm not experienced in Java at all, I'm not sure where to put a fix to resolve this. The page source code should show my script and css for it.

I need someone to show me where to put a fix on this in my code.
0
Hi All,
Advance thanks!
I am using ASP.NET MVc core and jqgrid in the ui. I receive both date string (Last Update) and actual date field (DocumentSubmissionDate). I need date field only, i added in the view to take snapshot to display here.  My issue is i need to display date field just like that string date (i.e. mm/dd/yyyy by remove T and show AM/PM). Please find the script below

<script type="text/javascript">
    $(document).ready(function () {
        var $DocumentData = $('#jqgClaims');

        $(window).bind('resize', function () {
        //$("#jqgClaims").setGridWidth($(window).width() / 1.03);
        //$("#jqgClaims").setGridWidth($(window).width() / 1.47);
        jQuery("#jqgClaims").setGridWidth($('#parentDiv').width() - 10, true);
    }).trigger('resize');

        $DocumentData.jqGrid({
            url: '@Url.Action("GetDocumentList", "wsApproval")',
            datatype: 'json',
            mtype: 'POST',
            cmTemplate: { align: 'left' },
            colNames: ['Claim No', 'Doc No', 'Document Name', 'Document Status', 'Last Update','DocumentSubmissionDate', 'Supervisor Id', 'Examiner Id', 'Reassign Id','test' , 'DocumentTypeCode'],
            colModel: [
                        { name: 'ClaimNumber', align: 'left', search: false, hidden: false, width: '80%' },
                        { name: 'DocumentNumber', align: 'left', search: false, hidden: true, width: '80%' },
                        { name: 'DocumentTypeName', …
0
I have a button on my razor page which loads a javascript file that I need to debug into. But I can not set a breakpoint there since the file does not exist in the list, on the Chrome debugger.

How do I get that file to load so I can set the debugger?

Thanks
0
Hi experts, I wish to save a certain data into two DataBase. I have sOrder and xOrder Database. I want my code below can execute two actions by saving the data into two database. Is it possible? If not, is there any other way to meet the goal? Thank you!  

<%
dim pname,pcode

pname = "Mango"
pcode = "8900"
'I have two DataBase sOrder and xOrder the two has a commom table name, Stock. I wish to save here the data in a two database. 
Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")

cn.ConnectionString = "driver={SQL Server};server=PCSERVER;uid=;pwd=;DataBase=sOrder"
cn.Open
   Set rs = cn.Execute("Select Procode, Proname From Stock where Procode='" & pcode & "'")
           with rs
               If .BOF = True And .EOF = True Then
                        cn.execute("Insert into(Procode,Proname) values('" & pcode & "','" & replace(pname, "'","''") & "')")
				            cn.close
				            set cn = nothing
	                     response.write("Saved!")  
                        Response.End()
               Else
                        Response.End()
               end if
           End with
   Set rs = nothing
   cn.close
%>

Open in new window

0
how can I integrate a search engine on my website , using js , php and mysql ?
NB . the user can search any thing inside the site!
0
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
Hi all,

I have made a jquery image slider and it works fine however I need to add some additional functionality and am struggleing.

I just need to make the two arrows work so when they are clicked it will scroll through the gallery left and right.

any help asap would be great

here is the code :

jquery
$(document).ready(function () { // this function loads all code before it runs

    var timer = ''
    var currentImage = $('#slideShow > div:first') // set first Image for slideshow
    var currentThumb = $('#thumbs > img:first') // Set first Image for Thumbnails
    $('#end').attr('disabled', 'disabled') // attach disabled attribute to end button
    $('#end').css({
            "background": "#e74c3c"
            , "opacity": "0.3"
            , "cursor": "not-allowed"
        }) // set css rules when the end button is inactive
    $("#slideShow > div:gt(0)").hide(); //hides all images greater than 0 
    $("#thumbs > img:eq(0)").css({
            "border": "2px solid #3498db"
            , "opacity": "1"
        }) // set css rules for active thumbnail
    function start() {
        timer = setInterval(function () {
            $('#slideShow > div:first') // Target div Element within #sideShow
                .fadeOut(1000) // fade out current image
                .next() // select next element 
                .fadeIn(1000) // fade in next element
                .end() // End the process 
                .appendTo('#slideShow'); // add functionality 

Open in new window

0
Hi,

I have a slideshow, that needs to disable the thumbnail hover when I click the start button and also activate the thumbnail hover when I click stop,

Any ideas on how to do this??

This is the code I have so far ;

HTML

<!DOCTYPE html>
<head>

<title>Slide Show </title>

<script type="text/javascript" src="js/slideshow.js"></script>
<link href="css/style.css" rel="stylesheet" type="text/css" />

</head>

<body onresize="rescale();">


<div id="main">

<h1 id="heading">Slide Show</h1>


<img id="image" src="images/1.jpg" />

<p>
	<span onclick="changeImage('grand canyon')" onmouseover="previewImage(1)" onmouseout="revertImage()">Image 1</span> | 
	<span onclick="changeImage('lake')" onmouseover="previewImage(2)" onmouseout="revertImage()">Image 2</span> | 
	<span onclick="changeImage('flower')" onmouseover="previewImage(3)" onmouseout="revertImage()">Image 3</span> | 
	<span onclick="changeImage('turtle')" onmouseover="previewImage(4)" onmouseout="revertImage()">Image 4</span> | 
	<span onclick="changeImage('bird')" onmouseover="previewImage(5)" onmouseout="revertImage()">Image 5</span> 

</p>
<button id="startBtn" onclick="start()">Start </button> 
<button id="stopBtn" onclick="stop()">Stop </button>

<!--<p><a href="javascript:start()">start</a> | <a href="javascript:stop()">stop</a></p>-->

</div>

</body>
</html>

Open in new window


Javascript
// JavaScript Document

//  variable to hold the current image number
var current = 1;
// 

Open in new window

0
I am trying to create a dynamic form for the payment plan installments.

For example, the total is $700 and I have chosen 10 installments. so it will be $70 per   installment. Let say the client wan to pay 100 for the first installment so the first installment will be 100 and the rest is $66.67 and so on.Also the when making changes  it should only affect the row going forward.

http://jsfiddle.net/uxmm2gta/6/
0
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Hi,

I need to work out some maths using javascript and html.

I need to just use core js and html not any libraries

I need to take £3 and times that by 2 every day for 30 days and then have it output in HTML in a list  like so :

day 1 = £3
day 2 = £6
day 3 = £12
day 4 = £24
and so on...

I'm very new to js so if anyone could show me some example code that could accomplish this task I would be very grateful. Thanks.
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
Hi experts,

am trying to append array . but it's not working the .Please see the below code

[code]


jans: function () {
                var arraylist = [];
                if (arraylist.length == 0) {
                       arraylist.push(
                       JSON.stringify({
                           id: $('#idHolder').text(),
                           a: this.answercount(),
                           elapsed: 20
                       })
                     )
                } else {
                    arraylist.concat(JSON.stringify({
                        id: $('#idHolder').text(),
                        a: this.answercount(),
                        elapsed: 20
                    }))
                }
                console.log(arraylist.length);

                return arraylist;
              }

[/code]

please correct me if am wrong

thanks experts
0
case"Contact":

console.info("Page Title: " + document.title);

// Contact page heading
let ContactMe = document.getElementById("ContactMe");
let myHeading="Contact Me";
ContactMe.textContent=myHeading;

let name = document.getElementById("name");
let email = document.getElementById("email");
let mobile = document.getElementById("phone no.");
let message = document.getElementById("message");
let submit = document.getElementById("submit");

submit.addEventListener("click",function(display){

alert("Information saved");
display.preventDefault();

console.log(name.textContent("name"));
console.log(email.textContent);
console.log(mobile.textContent);
console.log(message.textContent);

},false);
0
I am working on developing a way to receive emails to a specific contact (or queue) to archive emails related to a contact.  These are not necessarily emails being tracked within CRM 2016.  The contact receiving an email may not have an email address in which case the email should go to a global contact with information from the email.

Thanks
0
I have this as a returned value from SQL to JavaScript

/Date(1486101600000)/

(In SQL it's 2017-01-30 00:00:00.000)

How do I convert this to 01-30-2017 in JavaScript?
0
Hi i need to load a responsive slider which contains image & data from external xls / xml file. How can i make the info in the file display in the slider in html. Can anybody please help me with the code / links?
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
Is there a regex, or vbscript way to reverse a filename?
I know some standalone file-renamers can do that, but I prefer a regex or vbscript, so I can include that in my file manager.

So, like:
fm: 54321 yaw desrever a ni deyalpsid saw emanelif siht yllanigirO.txt
to: Originally this filename was displayed in a reversed way 12345.txt

thanks
=
0
On Demand Webinar: Networking for the Cloud Era
LVL 9
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

I have a left panel of headers, that look like of like menu items. That is done.

I have a right panel. I want to be able to click on the left header and have a panel on the right appear.
If I click on another header, the panel on the right disappears and a different panel on the right appears, and so forth.

So how can I click a header on the left, and have it show the content on the right, and then another header hides all content on the right (not knowing what one was showing) and then shows the selected content on the right.

I don't want a slide out.
I looked at code and it shows panels where you click a plus symbol and the content within the same DIV group below it shows and hides. But I don't want it anywhere near each other on the page.

How do I do what I described?

thanks!
0
Is it possible to create a script that will put my PC to sleep at certain hour and wake up at certain hour and configure "task scheduler" that will run this script? I just want to have this done automatically in stead of manually.  If snot, are there any other option to have this accomplished ?
0
Here's the code that I'm using right now that's working great...

if($_SESSION['guarantor_session']['PaymentWithin30Days']==0)
			{
				$javascript_message="<script>";
				$javascript_message.="alert(\"Hello, ";
				$javascript_message.=$firstname;
				$javascript_message.="!\\n\\nJust a reminder - You have made a payment within the last 30 days according to our system.\\n\\nThanks!";
				$javascript_message.="\")</script>";
				echo $javascript_message;
			}	

Open in new window


In the end, it looks like this:

localhost says...
If one can be satisfied with a purely utilitarian look, this is great. If, however, you want to try and dress it up, here's where I'm running into some problems.

I've been able to determine that you can't customize an alert, at least not in basic JavaScript. Still, I'm wondering if there isn't something I could do, perhaps through CSS or something that would allow me to better match the color scheme of the actual site or just get rid of the verbiage that says, "localhost" says.

I've seen several things via google, but I want to hear from some specific sources that can give me some options so the end result looks better. The functionality works great, I just want a better looking alert.

How?
0
I am interested in seeing a few examples that could get me to look at it more seriously.

Thanks
0
I have been able to set a default lookup  value (FreightName)  using the code below but when I try to set a second lookup (ShipName) , it wipes out my first lookup value and I end up with a value in ShipName but nothing in FreightName.  I have tried renaming the lookup elements but this gives me an error.

Please take a look at the code below and let me know what I can do to populate both lookups (actually I have third I need to populate as well)

Thanks

 
function populate(){
var proceedType = Xrm.Page.data.entity.attributes.get("csc_proceedwithquote");
    proceedType.setValue(1);
    Xrm.Page.getAttribute("csc_proceedwithquote").setSubmitMode("always");
    alert("proceedType");
    var proceedStatus = Xrm.Page.data.entity.attributes.get("csc_proceedwithquotestatus");
    proceedStatus.setValue(862430002);
    Xrm.Page.getAttribute("csc_proceedwithquote").setSubmitMode("always");
    alert("proceedStatusstatus");

    alert("Ribbon Editor Sln");

    FreightName();

    ShipName();


}

function FreightName() {

    var lookupValue = new Array();

    lookupValue[0] = new Object();

    lookupValue[0].id = "16F711C2-5C9C-E411-8DC3-005056897092";   // Guid Of That Look Up

    lookupValue[0].name = "Collect";                              // Name  Of That Look Up

    lookupValue[0].entityType = "Freight Term";                  // Entity Name Of That Look Up

    Xrm.Page.getAttribute("csc_freightterm").setValue(lookupValue);

}

function ShipName() {

    var 

Open in new window

0
Refer to attached text file which has a javascript from our vendor who will be doing
tagging onto our website pages.

Also refer to another article id 28961487 in EE for background:
https://www.experts-exchange.com/questions/28961487/Mitigations-for-tagging-aggregator-sites-to-our-site.html

Q1:
Does the few lines of java script pose security concern other than capturing potential customer's
personal data (this is Ok but not capturing more than that)

Q2:
Does the java script codes violate any OWASP Top 10 secure coding practices?
AggregatorMkg_JavaTag.txt
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!