No account yet?
Home arrow Articles arrow Programming arrow Javascript
Javascript
Javascript print window onload PDF Print E-mail
Tag it:
Delicious
blogmarks
Stumble
Furl it!
Digg
YahooMyWeb
Technorati
User Rating: / 0

The readyState property indicates the current state of the XML document.

This property is read-only and returns one of the following values indicating the instantiation and download state of the XML document.

  • LOADING
    loading in progress; reading persisted properties but not yet started parsing data. For purposes of the standard readyState definitions, data should be considered equivalent to BLOB properties.
  • LOADED
    reading of persisted properties completed; reading and parsing data, but the object model is not yet available.
  • INTERACTIVE
    some data has been read and parsed, and the object model is available on the partially received data set. The object model at this stage is read-only.
  • COMPLETED
    the document has been completely loaded, successfully or unsuccessfully.

This property is a Microsoft extension to the W3C DOM.

 

Last Updated ( Monday, 26 July 2010 )
 
Javascript Table Sort Script PDF Print E-mail
Tag it:
Delicious
blogmarks
Stumble
Furl it!
Digg
YahooMyWeb
Technorati
User Rating: / 0

Include the Javascript library, by putting a link to it in the HEAD of your page, like so:

<script src="sorttable.js"></script>

Mark your table as a sortable one by giving it a class of "sortable":

<table class="sortable">

Click on the read more link for the Javascript file.

Last Updated ( Friday, 02 April 2010 )
Read more...
 
How to get the current http host url with javascript PDF Print E-mail
Tag it:
Delicious
blogmarks
Stumble
Furl it!
Digg
YahooMyWeb
Technorati
User Rating: / 1

This function returns the url of the current site. Its really handy if you move code from development to production frequently and dont want to deal with the hassle of running a linux find replace script to update URL's within the code.

Last Updated ( Wednesday, 22 July 2009 )