Posts

JavaScript for Beginners - Basic Concepts (Data Types) (P: VI)

Image
  Data Types The term data type refers to the types of values with which a program can work. JavaScript variables can hold many data types, such as numbers , strings , arrays and many more. Unlike many other programming languages, JavaScript dose not define different types of numbers like integers, short, long, floating-point, etc. Numbers JavaScript numbers can be written with or without decimals . JavaScript numbers can also have decimals Result: Note: JavaScript numbers are always stored as double precision floating point numbers. Strings JavaScript strings are used for storing and manipulating text. A string can be any text that appears within quotes. You can single or double quotes.   You can use quotes inside a string as they don’t match the quotes surrounding the string. As strings, must be written within quotes, quotes inside the string must be handled. The backslash (\) escape character turns special characters into string characters. Result: Note: If yo...

JavaScript for Beginners - Basic Concepts (Variables) (P: V)

Image
Variables Variables are containers for sorting data values. The value of a variable can change throughout the program. In JavaScript use the var keyword to declare a variable: In the example above, the variable x is assigned the value 10. Note: JavaScript is case sensitive. For example, the variables lastName and lastname , are two different variables. The Equal Sign In JavaScript, the equal sign (=) is called the “ assignment” operator, rather than an “equal to” operator. For example, x = y will assign the value of y to x . Let’s assign a value to a variable and output it to the browser Result:   Note: A variable can be declared without a value. The value might require some calculation, something that will be provided later, like user input. A variable declared without a value will have the value undefined Using variable is useful in many ways. You might have a thousand lines of code that may include the variable x. When you change the value of x one time, it will automati...

How To : (Solved) SharePoint Open Pop-up Form using Nintex Forms

Image
In this post I'm going to demonstrate how to open a pop-up from using Nintex forms Implementation So, simply follow the steps mentioned below. Crate a new Custom JavaScript button. Go to Control Settings of button and add the following  On the Form Settings page add the following JS code on the "Custom JavaScript" section  function redirectToRFIForm(){ var options = { title: "Your Title", url: 'http://mysite/sites/page.aspx', dialogReturnValueCallback:Function.createDelegate(null, portal_modalDialogClosedCallback)}; SP.UI.ModalDialog.showModalDialog(options); }   ----------- Happy Coding -----------