NinethSense oWnZ mE!: Praveen’s drawing book

Choose a Topic:

Mon
21
Apr '08

Prototype JavaScript Framework

URL: http://www.prototypejs.org/


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.

Lastest version (as on 21 April 2008) is 1.6.


Tutorials available at http://www.prototypejs.org/learn
Fri
1
Feb '08

How to Refresh iFrame

 
<html>
<head>
<script language=“javascript”>
	function reload() {
		fr = document.getElementById("iframe1");
		fr.src = fr.src;
	}
	
</script>
</head>
<body>
test contents
<input type=“button” value=“Click to refresh iframe” onClick=“reload()”/>
<hr />
<iframe id=“iframe1″ src=“http://www.pitsolutions.com/”>
</iframe></body>
</html>
Wed
21
Nov '07

Silverlight Samples Gallery

I found this interesting link while digging the net - http://blogs.msdn.com/tims/archive/2007/07/07/from-a-to-z-50-silverlight-applications.aspx
Fri
16
Nov '07

Web Developer browser add-on for Internet Explorer and Firefox

May be you people are already aware of these “web developer” plug-ins.

• Internet Explorer Developer Toolbar
• Web Developer Extension for Mozilla Firefox

Some of the features a developer/designer may interested in are –

• Preview of website in various resolutions
• Show outline on tables, divs, tds, images etc.
• Cache and cookie management
• W3C validations
• Ruler, Color picker
• DOM tree view
• Disable/Enable css, scripts etc.

IE - http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en Mozilla - http://chrispederick.com/work/web-developer/
Tue
12
Jun '07

css: Multiple class in same element.

If you want to specify two style class’ in same element, put it like this:

class=“class1 class2″


(Another traditional way is put style tag also and put all the code in class there.)
Fri
8
Jun '07

Disable back button

After the first test phase, it is always the problem for developers to handle browser ‘back button’ disaster. There are so many ways to handle this. But the way you select depends on the nature of your ‘probelm’.

Well, this method I liked much.
<script language=“javascript”>
      history.go(1);
</script>



Put this in the of your page. This will allow the page to load only ‘forward’ and virtually disables the ‘backword’
Fri
1
Jun '07

Download any file from ASP.NET

You know, some formats (txt, gif etc.) will be shown on the browser rather than downloading when we try. Below is the script which will help you to download any file.


 
        Response.Clear();
        Response.AddHeader(“Content-disposition”, “attachment; filename=<filename>”);
        Response.WriteFile(“C:\</filename><filename>”);
        Response.End();
</filename>


The same logic is used in any server language.
Tue
22
May '07

Choosing the right programming language

My students used to ask me “which programming language is the best?” and “which programming language I must learn?”. But the truth is – one cannot give an accurate answer for this. If somebody answers to this question simply - like C++ or Java, I will say he is a frog living inside a well. He may be giving this answer from his experience and knowledge, which is very less.


Check my latest article at : http://ninethsense.com/content/view/51/55/
Fri
24
Nov '06

Contineous Javascript Marquee

This script will let the text scroll contineously. This means, the second round scroll will start just after first round. This will overcome the in-between delay of HTML MARQUEE tag. However, this script is not free from limitations. But works on both IE & Firefox.


 
<html>
	<head>
		<script language=“javascript”>
		var text = “There is a long sentence With some more text However as soon as this message plays There’s a really long break Before the text starts Over.”; // User Text
		var i = 0;
		var n = 50;	// Number of Charaters to display
		var speed = 50; // Scroll speed in milliseconds
		text = text + text.substring(0,n)
		function marqueeText() {
			document.getElementById(“divText”).innerHTML = text.substring(i,i+n);
			i++;
			if (i > text.length - n ) i = 0;
			setTimeout(‘marqueeText()’, speed);
		}
		</script>
	</head>
	<body>
		<div id=“divText” style=“border:solid 1px gray;background-color:#CCCCCC “ align=“center”></div>
	</body>
</html>
 
<script language=“javascript”>
	marqueeText();
</script>
Tue
18
Jul '06

div and span - visibility example

This sample code demonstates “hide” and “show” SPAN and DIV tags.
 
 
<div id=“divTest” style=“position:absolute; width:200px; height:115px; z-index:1; left: 149px; top: 43px; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000;”>test div </div>
<span id=“spanTest”>This is a span</span>
<p>
  <input type=“submit” name=“Submit” value=“Hide” onClick=“document.getElementById(’divTest’).style.visibility=’hidden’”/>
  <input type=“submit” name=“Submit” value=“Visible” onClick=“document.getElementById(’divTest’).style.visibility=’visible’”/>
</p>
<p>
  <input type=“submit” name=“Submit” value=“span Hide” onClick=“document.getElementById(’spanTest’).style.visibility=’hidden’”/>
  <input type=“submit” name=“Submit” value=“span Visible” onClick=“document.getElementById(’spanTest’).style.visibility=’visible’”/>
</p>
 
The CodeProject Microsoft Developer Network Official ASP.NET Forums Microsoft .NET Framework Community Microsoft Most Valuable Professional Kidoos forums Microsoft Visual Studio Developer Home Professional Information Technology Solutions Microsoft Research Home Trivandrum Microsoft Users Group Community Website