Using DataType Element for Destination in SAP ABAP

Amit Sharma
Updated on 13-Jun-2020 06:50:29

227 Views

You can use RFCDEST.RFCDEST statement specifies the destination value for a Remote Function Call connection and gateway information.Supported Job Types:This statement are optional for the following job types:SAP Batch Input SessionSAP Business Warehouse InfoPackageSAP Business Warehouse Process ChainSAP Data ArchivingSAP Event MonitorSAP Job CopySAP Process MonitorSAP R/3Basic DataTable  RFCDES  Destination table for Remote Function CallField  RFCDEST  Logical Destination (Specified in Function Call)Position 1Syntax to be used:RFCDEST destinationUsing Parameter destinationYou need to specify the destination for the RFC connection and gateway information for an SAP R/3 system. This destination is the destination that is specified in the connection properties file during ... Read More

Is it Better to Have One Big JavaScript File or Multiple Light Files?

Amit Sharma
Updated on 13-Jun-2020 06:48:03

1K+ Views

To avoid multiple server requests, group your JavaScript files into one. Whatever you use for performance, try to minify JavaScript to improve the load time of the web page.If you are using single page application, then group all the scripts in a single file.If you are using multiple files, then minify all of your scripts and separate them into categories.example - Place JavaScript to be used in every page. This can be the core script of the file. - Place your plugins hereRest, add other scripts in a JavaScript file. It’s good to maintain it in different files.Read More

Why Using the JavaScript eval Function is a Bad Idea

Daniol Thomas
Updated on 13-Jun-2020 06:47:34

184 Views

The JavaScript eval() is used to execute an argument. The code gets execute slower when the eval() method is used. It also has security implementations since it has a different scope of execution.ExampleHere’s how you can implement eval() function −                     var a = 30;          var b = 12;          var res1 = eval("a * b") + "";          var res2 = eval("5 + 10") + "";          document.write(res1);          document.write(res2);          

Difference Between ++a and a++ in JavaScript

Krantik Chavan
Updated on 13-Jun-2020 06:46:22

8K+ Views

++a returns the value of an after it has been incremented. It is a pre-increment operator since ++ comes before the operand.a++ returns the value of a before incrementing. It is a post-increment operator since ++ comes after the operand.ExampleYou can try to run the following code to learn the difference between i++ and ++i −                       var a =10;           var b =20;           //pre-increment operator           a = ++a;           document.write("++a = "+a);                       //post-increment operator           b = b++;           document.write(" b++ = "+b);          

Use the Same JavaScript in Multiple Content Pages

Rahul Sharma
Updated on 13-Jun-2020 06:45:08

2K+ Views

To use the same JavaScript in more than one page, add the js code in an external JavaScript file. Let’s say the following demo.js is our external JavaScript file −function display() {    alert("Hello World!"); }Now add the external JavaScript file to the following HTML web page. In the same way, you can add it to multiple content page.                                          

How the Browser Identifies Inline JavaScripts

Johar Ali
Updated on 13-Jun-2020 06:44:28

457 Views

Let’s say the following line we have in our HTML −Here the browser identifies inline JavaScript by detecting onclick, even when tag wasn’t available.The following are some of the suggestions for using inline JavaScripts −You should consider inline script elements such as ...) if the script only to be used for a single page.Do not use event attributes such as onclick="...", and bind event handlers using JavaScript.Use external script elements such as ) for most scripts, especially if reused between pages.

Rules for JavaScript's Automatic Semicolon Insertion (ASI)

Amit Sharma
Updated on 13-Jun-2020 06:43:18

303 Views

JavaScript’s automatic semicolon insertion (ASI) is to insert missing semicolons. The following statements are affected by automatic semicolon insertion −empty statement var statement expression statement do-while statement continue statement break statement return statement  throw statementThe rules are in the following specification −When, as a Script or Module is parsed from left to right: A token is encountered that is not allowed by any production of the grammar, then a semicolon is automatically inserted before the offending token only if one or more of the following conditions becomes true −Offending token is }.Previous token is ) and the inserted semicolon would ... Read More

Methods in jQuery to Manipulate Attributes

Alex Onsman
Updated on 13-Jun-2020 06:41:35

147 Views

jQuery comes with a lot of methods to manipulate attributes. These are DOM related methods. The attributes include,text() – This method sets or returns the text content of elements selected.html() – This method sets or returns the content of elements selected.val() – This method sets or returns the value of form fields.You can try to run the following code to learn how to manipulate attributes with text() and html() methods −Example $(document).ready(function(){    $("#button1").click(function(){      alert("Using text- " + $("#demo").text());    });    $("#button2").click(function(){      alert("Using html()- " + $("#demo").html());    }); }); This is demo text. Text HTML

Disable Resizable Property of Textarea Using JavaScript

Rahul Sharma
Updated on 13-Jun-2020 06:39:07

225 Views

To disable resizable property, use CSS style −textarea {    resize: none; }To disable specific textarea with different attribute values, try the following. Let’s say the attribute is set to “demo” −textarea[name=demo] {    resize: none; }Let’s say the id attribute is “demo” −For the above,#demo {    resize: none; }

Handle Situations When JavaScript is Turned Off

Johar Ali
Updated on 13-Jun-2020 06:37:30

144 Views

Nowadays, almost every web browser supports JavaScript. If it is turned off, you can use tag. To let users know about non-JavaScript web browsers, use the tag. The HTML tag is used to handle the browsers, which do recognize tag but do not support scripting. This tag is used to display an alternate text message.Example           HTML noscript Tag                                              Your browser does not support JavaScript!          

Advertisements