Geeks With Blogs

News

Agha Usman Ahmed JILAWATAN Javascript Tricks
How to show and select month/year in Calendar Extender
In this post I will explain you, How to make calendar extender control to show month / year view by default and instead of selecting dates how can we use calendar extender to select months. Before I start, let me say that I got extensive support from this forum post http://forums.asp.net/t/134... Thanks to Zhi-Qiang Ni, but the way he follow was a little bit lengthy. However, all credit still goes to him because I gain the exact idea from his post. Let me start by creating a calendar extender ......

Posted On Sunday, May 31, 2009 3:19 AM

Datatable to JSON
In this post I will explain you, how can we serialize Datatable to JSON. So that, it can easily pass to JavaScript to get the AJAX done. First of all fill a Datatable with some results. DataTable dt = new DataTable(); SqlConnection objSqlCon = new SqlConnection(System.Config... objSqlCon.Open(); SqlDataAdapter objSqlDa = new SqlDataAdapter("select * from Production.Product", objSqlCon); objSqlDa.Fill(dt); Now ......

Posted On Saturday, May 16, 2009 4:52 PM

Dynamically control the scroll amount of marquee
Having a marquee on a page is not a big deal but what if somebody wants user to adjust the speed of the moving text. So the idea is we have many marquee in one page and we want to adjust their speed using two javascript Buttons called “Speed Up” and “Speed Down” The logic is very simple, the marquee tags which you want to control with the help of buttons give them name in my case it is “Scrollers” (Remember it is name not id, so you can give same name to as many controls). Now call the following ......

Posted On Monday, February 16, 2009 4:00 PM

Event Bubbling in Javascript
Today, while creating some javascript popup I had a condition in which I place onclick function on body tag. I had an other button which also implement onclick. So the code looks like as follows 1: <body onclick="disappearPopup()"> 2: <a href="#" onclick="ShowPopup()">Show me</a> 3: </body> So, what happen is whenever link is click the body clicked even called automatically. Practically speaking, we need to cancel the body onclick even each time we click the link click. And ......

Posted On Monday, February 2, 2009 6:03 PM

Copyright © Agha Usman Ahmed | Powered by: GeeksWithBlogs.net