Home » Archives for Saeb Najim

Author Archives: Saeb Najim

Saeb has graduated from the University of Technology. During the last ten years (since 2005) he has been involved with a large number of projects about programming, software engineering, design and analysis . He works as a senior Software Engineer in the e-commerce and web development sector where he is mainly responsible for projects based on Java, Java frameworks, design patterns and Big Data technologies.

Javascript Frame Example

The aim of this tutorial is to describe and demonstrate using JavaScript to manipulate and interact with iframes, showing how to access and modify properties of the iframe element, how to communicate with the document inside the iframe, getting information from the iframe and passing information to it. Iframes, or inline frames, allow you to load separate HTML files into ...

Read More »

Javascript Timer Example

The aim of this example is to explain the timing events in javascript. The javascript window.setTimeout(function, milliseconds) function is used to execute a function, after waiting a specified number of milliseconds. This method returns a timeout id.                   Notice, setTimeout and window.setTimeout are essentially the same, the only difference being that in ...

Read More »

Javascript Onclick Example

The aim of this example is to show you how to handle the onclick event. A JavaScript can be executed when an event occurs, like when a user clicks on an HTML element. To execute code when a user clicks on an element, we can add JavaScript code to an HTML onclick event attribute . The onclick event fires on ...

Read More »

jQuery Textarea Example

The aim of this example is to show you how to use the Textarea with jQuery. The Textarea tag defines a multi-line text input control. A text area can hold an unlimited number of characters, the size of a text area can be specified by the cols and rows attributes, or even better; through CSS’ height and width properties. jQuery ...

Read More »

jQuery History Example

The aim of this example is to show you how to use the jQuery for accessing the browser history. Sometimes the web site’s user may want to go back to the previous page or forward to the next page. The following methods can be used for this purpose. back() method for loading the previous URL in the history list. forward() ...

Read More »

jQuery Enable/Disable Example

The aim of this example is to show you how to enable/disable the html elements by using jQuery. In some cases, we need to enable or disable a HTML element. This will help us to allow/prevent the user from doing some actions. jQuery provides very simple code to enable/disable any HTML element. The following code is used respectively for this ...

Read More »

jQuery Next Example

The aim of this example is to show you how to use the jQuery next() method. The jQuery next() method is used for getting the next element of any HTML element. This method takes the wanted elements type as an optional argument. For example, next('span') is used to get the immediate following ‘span’ element. By using this method, only the ...

Read More »

jQuery Get Example

The aim of this example is to show you how to use the jQuery .get() method. The jQuery .get() method is used to load data from the server using a HTTP GET request. The signature of this method is like jQuery.get(url [,data][,success][,dataType ]) where only the url is mandatory. Some methods as .done(), .fail(), and .always() can be chained to ...

Read More »

JQuery Settimeout Example

The aim of this example is to show you how to use the jQuery setTimeout() method. Sometimes we need to execute a javascript code after some seconds, the jQuery setTimeout() method can be used for this purpose. This method takes two parameters: The first is the javascript that need to be executed. The second is the delay time in milliseconds. ...

Read More »