When to use (document).ready() and when (window).load() in jQuery?

Alex Onsman
Updated on 30-Jul-2019 22:30:20

948 Views

$(window).load()Use $(window).load(), when you want the code inside it to run only once the entire page is ready (not only DOM).  It executes when the page is fully loaded, including frames, objects and imagesNote: The load() method deprecated in jQuery version 1.8. It was completely removed in version 3.0. To see its working, add jQuery version for CDN before 3.0.$(document).ready()Use the  $(document).ready() method when you want the code inside it to run once the page DOM is ready to execute JavaScript code.

How to print new line in Java?

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

2K+ Views

The java.io.PrintStream.println() method prints an array of characters and then terminate the line. This method behaves as though it invokes print(char[]) and then println(). Using this method you can print the data on the console. import java.io.*; public class PrintStreamDemo { public static void main(String[] args) { char[] c = {'a', 'b', 'c'}; // create print stream object PrintStream ps = new PrintStream(System.out); // print an array and change line ps.println(c); ps.print("New Line"); // flush the stream ps.flush(); } } Output abc New Line

Using SAP Mobile Platform Server

Rahul Sharma
Updated on 30-Jul-2019 22:30:20

318 Views

To use SAP Mobile Platform SDK for application development, you need to install SMP SDK on your local machine.Now regarding use of OData service, SAP Mobile Platform SDK contains three APIs for accessing and manipulating an OData source.OData Online Store API for Windows: this API is used to manage an Online OData store.OData Offline Store API for Windows: This API is used to manage an Offline OData store. Also note that you can also access Offline API documentation at Offline OData.OData API for Windows: This is used to manage OData feed for both offline and online stores.https://help.sap.com/viewer/42dc90f1e1ed45d9aafad60c80646d10/3.0.15/en-US/cd61551b9cbf40c8a170a3b7437e9536.htmlAlso you can navigate ... Read More

What are the different build tools in Java?

Ankitha Reddy
Updated on 30-Jul-2019 22:30:20

295 Views

"On a mean, a developer spends a considerable quantity of your time doing mundane tasks compiling the code, packaging the binaries, deploying the binaries to the checkserver, testing the changes," copying the code from one location to another. To automate and simplify these tasks we can use build tools like Ant, Maven, Gradle etc.

What is the difference between compositions and aggregations in Java?

Sharon Christine
Updated on 30-Jul-2019 22:30:20

327 Views

In Aggregation relationship among classes by which a class (object) can be made up of any combination of objects of other classes. It allows objects to be placed directly within the body of other classes.A composition is also a type of aggregation where the relationship is restrictive i.e. If two objects are in composition, the composed object will not exist without the other.

Integrating Magneto with SAP ECC system

V Jyothi
Updated on 30-Jul-2019 22:30:20

268 Views

With the integration of SAP ERP with Magneto, you can perform bidirectional communication of orders, sales, and other business data. To check if there is an existing connector, you can reach to SAP support. There are various other vendors in the market who provides ERP-Magneto integration.Integration of ERP-Magneto provides benefit like flexibility, data synchronization, reliability, and security.You can try this link- https://ecommerce.aheadworks.com/magento-extensions/erp-integration.htmlThis says that with some customization, you can integrate your ERP solution with Magneto. For integration, your ERP provider has to implement the option to read/write the required files/data to/from the ERP system. For any ERP software integration, it ... Read More

Difference between Java SE, Java EE, and Java ME?

mkotla
Updated on 30-Jul-2019 22:30:20

2K+ Views

Java provides three editions JSE, JEE, JME. JSE − Java Standard Edition using this, you can develop stand-alone applications. This provides the following packages − java.lang − This package provides the language basics. java.util − This package provides classes and interfaces (API’s) related to collection framework, events, data structure and other utility classes such as date. java.io − This package provides classes and interfaces for file operations, and other input and output operations. java.math − This package provides classes and interfaces for multiprecision arithmetics. java.nio − This package provides classes and interfaces the Non-blocking I/O framework for Java java.net ... Read More

How to build JCo server without using a Properties file in SAP?

varun
Updated on 30-Jul-2019 22:30:20

270 Views

You can create your own implementation of DDP and then register using Environment.registerDestinationDataProvider().

How to set the first day of the week in sap.m.DatePicker's calendar?

mkotla
Updated on 30-Jul-2019 22:30:20

206 Views

I don’t think there is any recommended way to access internal calendar in Datepicker. I would suggest you raise a function request in Openui5 using GitHub.

What is meant by Java being platform-independent?

vanithasree
Updated on 30-Jul-2019 22:30:20

502 Views

When you compile Java programs using javac compiler it generates bytecode. We need to execute this bytecode using JVM (Java Virtual machine) Then, JVM translates the Java bytecode to machine understandable code.You can download JVM’s (comes along with JDK or JRE) suitable to your operating system and, once you write a Java program you can run it on any system using JVM.

Advertisements