Archive

Archive for the ‘javascript’ Category

Debugg Your Javascript by using FireBug Plugin for Mozilla Firefox

April 20th, 2009 R Arun Raj 2 comments

Debugging Javascript was very hard and time consuming. Fire bug is very good tool for monitoring html, css javascript and Ajax request. Also we can use firebug as a reengineering tool for online applications

HTTP REDIRECT

January 31st, 2009 R Arun Raj No comments

PHP Redirect

<?php
header
("Location: http://www.example.com/"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?>

Javascript Redirect
<script type="text/javascript">
<!--
window.location = "http://www.arunrajr.com/"
//-->
</script>

Toggle visibility between none and inline

August 13th, 2008 R Arun Raj No comments

function toggle_it(itemID){
// Toggle visibility between none and inline
if ((document.getElementById(itemID).style.display == ‘none’))
{
document.getElementById(itemID).style.display = ‘inline’;
} else {
document.getElementById(itemID).style.display = ‘none’;
}
}

JavaScript Frame work

June 27th, 2008 R Arun Raj No comments

A powerful javascript frame work.

ProtoType.Js

Prototype is a JavaScript Framework that aims to ease development of dynamic web applications.

Featuring a unique, easy-to-use toolkit for class-driven development and the nicest Ajax library around, Prototype is quickly becoming the codebase of choice for web application developers everywhere.

http://prototypejs.org

Light Weighted javascript Libraries

June 23rd, 2008 R Arun Raj 1 comment

This website provides Ultra lightweight JavaScript libraries . That helps JavaScript developers

http://orangoo.com/labs/Main/

main OpenSource pojects are:

  • GoogieSpell is a spell checker that you can use in your own web-application.
  • GreyBox can be used to display websites, images and other content in a beautiful way.
  • AJS is a ultra lightweight JavaScript library that is around 2 years old. It is inspired by MochiKit, but differs by being small and expressive. The current version is only 33 KB (uncompressed!), whereas MochiKit and other libraries such as JQuery, Mootools or Prototype is over/around 100 KB.
Categories: Programming, javascript Tags:

JAVA SCRIPT PAGE REFRESH

June 22nd, 2008 R Arun Raj No comments

<a href=”#” onclick=”javascript:window.location.reload();”><strong>refresh</strong></a>

Javascript Back button

June 18th, 2008 R Arun Raj No comments
<a href="#" onclick="history.go(-1)">back</a>
Categories: Programming, javascript Tags:

Input Field accepting only numbers using javascript

June 17th, 2008 R Arun Raj 4 comments

<input name=”demo” type=”text” id=”demo” onkeypress=”var unicode=event.keyCode? event.keyCode : event.charCode;if ((unicode < 32 || unicode > 33)&&(unicode < 45 || unicode > 57))  return false; return true;”>

This code compatible to all browsers !

Categories: Programming, javascript Tags: