Skip to content

load javascript after creating an element

load() API documentation

Description: Load data from the server and place the returned HTML into the matched element.

  1. // run the function after creating the element with #idNameInHTMLLaoding 
  2. // as an id name 
  3. ###################################################
  4. // url.html –> URL to a page containing HTML that will be returned in the
  5. //                   –> target element (like #idNameInHTMLLaoding )
  6. // url.html #idName li –> specifies the element to return from the url.html
  7. // function(response, status, xmlObject) –> the function() is optional;
  8. //                   –> the parameters are optional too!;
  9. //                   –> example: if( status == ‘error’)
  10. //                  –> example: xhr.status + ” “ + xhr.statusText
  11.     $(‘#idNameInHTMLLaoding’).load(‘url.html #idName li’,
  12.             function() {
  13. //callback callback callback callback callback callback 
  14.                 yourFunction();
  15.             });
Advertisements

auto adjust horizontal menu bar

Read more…

Determine the Width and Height of an Element in Javascript

innerWidth and innerHeight is accepted in Internet Explorer, Chrome, Firefox, Opera, and Safari. its can be used to determine the inner width and height of the window.

Example:

  • window.innerHeight – the inner height of the browser window
  • window.innerWidth – the inner width of the browser window

Read more…

SESSION, COOKIES, and VARIABLES in PHP

  1. A PHP session variable is used to store information about, or change settings for a user session
  2. Cookies are a mechanism for storing data in the remote browser and thus tracking or identifying return users
  3. A variable is a holder for a type of data. So, based on its type, a variable can hold numbers, strings, booleans, objects, resources or it can be NULL.

Read more…

Abstract

An abstract class is a class that is declared abstract—it may or may not include abstract methods. Abstract classes cannot be instantiated, but they can be subclassed.

Read more…

creating an animated bitmap

pictures moving, fighting walking and running, shouting and biting can be done through adobe flash. there are many tutorials in the net to easily understand and be able to do moving pictures.

Read more…

Single Query Dynamic Multi-level Menu

This method came from this article

Unlimited hierarchy of parents and children as menu links. easy to understand and less work for the server.
Read more…

TurtleAndRobot.com

Children's Book Reviews

Malav Shah

official Web Site

My Road to Programming

The journey of how I taught myself to program.

paritoshmishra

Look at what's brewing up guys! we all are work in progress. So don't meander, lets micromesh everything and have candid conversation about every problem related to C, C++ and JAVA. We can rejuvenate the crinkled faces.

ProgramThat;

A simple guide to programming...

ITechonology

Information Techonology

Rahul's Work

My Work Tips and Tutorial on Various Tech.

Turnip Farmers

Kingdom Scans

Gigaom

Technology news, trends and analysis covering mobile, big data, cloud, science, energy and media

The Neighborhood

telling the story from every vantage point

HarsH ReaLiTy

My goal with this blog is to offend everyone in the world at least once with my words… so no one has a reason to have a heightened sense of themselves. We are all ignorant, we are all found wanting, we are all bad people sometimes.

VentureBeat

News About Tech, Money and Innovation

retireediary

The Diary of a Retiree

50 Year Project

My challenge to visit 192 countries, read 1,001 books, and watch the top 100 movies

[BTW] : Ben Trube, Writer

Writer, Programmer, Singer

My Arch Walkthrough

Arch linux made easy

Don Charisma

because anything is possible with Charisma

SutoCom Solutions

Success & Satisfaction with the Cloud