
Search In
Hello Readers, If you developing the website to browse any file and showing its's content on the web page, Then by using Javascript you can do this as follows:-
function readSingleFile(e) {
var file = e.target.files[0];
if (!file) {
return;
To dynammically add new elements into listview we need a Edittext(etAddItem) to input the item/element, a Button(btnAdd) for adding item to the list, and a listview which shows elements in a vertical scrolling manner.
etAddItem = (EditText)f
Hello readers, today we will discuss about Crontab jobs.
Q. What is crontabs?
Ans- Cronjob is a service or we can say its a tool that run in backend periodically at fixed times, dates, or intervals.
The crontab is a list of commands that you want
Hello Readers
A cookie is often used to identify a user. It is a small amount of information that sent by a server to a browser and after that sent back to the browser.
The below is the syntax of cookie:
Syntax:
setcookie(name, value, expire, p
Hello Reader's! If you are looking for functionality for reloading a web page only when user makes no activity for a while, Then you can use the ajax technology for making the html tag refresh.
Lets see the example below:-
<html>
<head
Welcome to Findnerd. PHP owners modified the zend framework that is zend framework 2. We can simply download the framework setup from github that is known
as zend skeleton application. Below is the link to download.
https://github.com/zendframework
The best way to clone an object in javascript is to use $.extend(). We can use it in two ways:-
1.Shallow copy
2.Deep copy
1.The syntax for shallow copy is: var newObject = jQuery.extend({}, oldObject);
2.The syntax for deep copy is: var newObjec
To modify the URL without reloading,a pushState method has come in HTML5 which is quite same as window.location but does not refresh or reloads the page.
This method will first check if the browser supports HTML5,then the state object containing the
How to set/unset layout in CakePHP ?
CakePHP provides by default layout in (app/View/Layouts/default.ctp) file, so we need different layouts for different pages as per our requirement.
Change the default layout in all web pages
var $layout = 'myla
To retain the selected value in the dropdown on refresh, sessionStorage is used to store the value within the user's browser. First, the values have to be set using sessionStorage.setItem("SelItem", selVal); SelItem is a variable in which we are sett
