top of page

Jquery

Public·1 member

Slice() Method In jQuery

Description

This method selects a subset of the matched elements by giving a range of indices. In other words, it gives the set of DOM elements on the basis of its parameter (start, end).

Start

This is the first and mandatory parameter of the Slice method. This specifies from where to start to select the elements. The supplied index is zero-based. The Starting index can be a negative number; in other words, the elements are being selected from the end of the set, rather than the beginning.

End

This is an optional parameter. It specifies the range of the selection. This indicates where to stop the selection of elements, excluding end element. This also uses a 0-based position. If this parameter is not specified than all elements are selected from the starting index in the result. Note The Negative Indices is started from -1. This last element is denoted by…


15 Views

Javascript | Window Open() & Window Close Method Window.open() This method is used to open the web pages into new window. Syntax:

Window.open() This method is used to open the web pages into new window. Syntax:


window.open(URL, name, specs, replace)

Parameters: This method accepts four parameters as mentioned above and described below:

URL: It is an optional parameter. It is used to set the URL of web pages which need to open. If URL is not set then window.open() method open a blank window.name: It is an optional parameter and used to set the window name.specs: It is an optional parameter and used to separate the item using comma.replace: It is an optional parameter and used to specify the URL URL creates a new entry or replaces the current entry in the history list. This parameter return boolean value. If this parameter returns true then URL replaces the current document in the history list and if returns false then URL creates a new entry in the history list.

Return Value: This method creates…


176 Views

What is the difference between $(window).load() and $(document).ready() functions in jQuery?

$(window).load()

The code which gets included inside $( window ).on( "load", function() { ... }) runs only once the entire page is ready (not only DOM).


$(document).ready()

The ready() method is used to make a function available after the document is loaded. Whatever code you write inside the $( document ).ready() method will run once the page DOM is ready to execute JavaScript code.

7 Views

Understand jQuery Ajax Function: Call Code-behind C# Method

In this article we will learn how to implement an ajax method in jQuery. There is no need to explain that ajax is one of the strong pillars of the future of web development. Since ajax is a concept or technique we can implement ajax with any web development platform. It is possible to implement ajax with PHP or with JSP or with ASP.NET or with many other technologies. Since we are learning .NET, in this article we will explain ajax in the context of C# .NET.

The experienced developer will say that there are two possible ways to implement ajax in an ASP.NET web application. The first one and the worst one is using an update panel. And the best one is using a jQuery ajax function.

Hmm..Many developers will not agree with my straight-forward conclusion. But if you search a little in the WWW and talk about .NET…


23 Views
bottom of page