30 June 2009

Web designers have limitation to use font in web site, because fonts are comes form user computer not from web site.

But Adobe Flash have a feature to embed font in flash animation.

sIFR is meant to replace short passages of plain browser text with text rendered in your typeface of choice, regardless of whether or not your users have that font installed on their systems. It accomplishes this by using a combination of javascript,

Read more about sIFR.

See the example.

26 June 2009

Which java script framework you are using? If you are confuse that which framework use in web development jQuery or MootTools; I suggest you to go through this article.

This web site have very useful information about jQuery and MootTools.

Visit http://jqueryvsmootools.com/

Well I like jQuery. ;)
It is very good to compress javascript before you upload it before live site.

here it is a online tool to Compress and obfuscate Javascript code online completely free using this compressor.

Just enter your code and click on "Compress".


make it easy!

25 June 2009

Add cool flash based gadgets in you block.


See here, click any where in flash area fish will come here to eat that food!




Visit http://abowman.com/google-modules/ too see more gadgets.

19 June 2009

Writing inline documentation is very useful but many developers are excusing that its is taking to much time to write down comments, Friends here is a tool for you which will write XML documentation in your C# or VB.net code vary quickly.

This tool is works with Visual Studio 2005, 2008.

GhostDoc is a free Visual Studio extension that automatically generates XML documentation comments.

Its allows us to add quick documentation for :
  • Methods
  • Properties with its data type
  • Parameters Name
  • Variable Name
See the below example :


Just right click on clock on the name of the function, where will be a menu with "Document this".
Click on it and it will write word quickly documentation for you.

See here the result:



So GhostDoc is very useful tool,

happy codding.

17 June 2009

I you are working on live site and you need to make some modifications on live server, during this modification you want to show a user friendly message that "Site is under maintenance" or "Site is under construction." or something like that, without affecting any page or database.

You just need to make a simple HTML page with "app_offline.htm" name and upload it on root directory of the web site. once user try to open this site, IIS will open this page in place of "default.aspx".

and you can write down, user friendly message on this page. after completing your task just delete this file or rename it. and site will start work as it is.


16 June 2009

WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD to any textarea with one line of code. Add live preview with one line more.

See Demo here.

If any user don't want any advance functionality and just want to provide lightweight HTML editor, WMD is a very useful tool.

Some other popular editor are :

15 June 2009

When user click on "Send", "Submit", "Save" or "OK" button, page starts process for postback and user did net get idea whats going on,

Some time when there is lots of data are transferring; we need to create user friendly web application to get idea to user that still its working please wait for some time.

Using only javascript to so process or fire some function when user click on submit button, after check validations or before checking validation.

A button on page:
asp:button runat="server" id="btnSave" onclick="btnSave_Click">


One hidden div tag with processing image:

div id="divProcess" class="goProcess">
img src="http://www.blogger.com/images/bigrotation2.gif" alt="Image" />
/div>


Now one javascript function:

script language="javascript" type="text/javascript">
function WebForm_OnSubmit() {
if (typeof (ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) {
return false;
}
else {
document.getElementById("divProcess").style.display = "block";
return true;
}
}
/script>


that all; now when user click on submit button; it will check validations first; else it will show that image;

the javascript function name is "WebForm_OnSubmit" which fires every time when user clicks on Submit button.