Yanachik.org

Archive for the ‘Ajax’ Category

Here’s an example of how to dynamically set the where property on a LinqDataSource to filter data based on user input from a textbox.  In this case we have a Linq entity called ContractsEntity that has a table called ContractHeaders.  Not shown in this example is the listview (in the Ajax UpdatePanel) that is bound [...]

21 Feb, 2008

Coda-Slider 1.1.1

Posted by: kyanachik In: Ajax

The Coda Slider is an Ajax tabs that transitions from tab to tab in a really neat manner.  All you have to do is wrap your tab pages in some divs with specific classes assigned to them and you’re good to go.  The required javascript is downloadable, and requires jQuery.
Coda-Slider 1.1.1

09 Jan, 2008

Keeping JavaScript Dependencies At Bay

Posted by: kyanachik In: Ajax

Here’s an article posted on the 24 ways advent calendar regarding how to handle Javascript dependencies.  It’s an issue that I’m currently wrestling with as my application requires more and more javascript libraries and files.
24 ways: Keeping JavaScript Dependencies At Bay

Here is a nice piece of code how to Scroll a  Div using the Prototype and Scriptaculous libraries.
Gary Haran.com » How To Unobtrusively Scroll A Div With Prototype & Scriptaculous

17 Dec, 2007

Consolidate your website forms with Uni-Form

Posted by: kyanachik In: Ajax

From the site ” Uni-Form is an attempt to standardize form markup (xhtml) and css, “modularize” it, so even people with only basic knowledge of these technologies can get nice looking, well structured, highly customizable, semantic, accessible and usable forms.”

Check it out here: [...]

12 Dec, 2007

Browse your subversion reposistories with style

Posted by: kyanachik In: Ajax

I’ve been starting to use (and like) subversion more and more lately. I ran into a real mess recently with subversion and the Windows explorer shell tortiose, but for the most part i’ve like it. It just lacks an elegant web interface, until now. For a one time $30 fee, you can [...]

11 Dec, 2007

Use Javascript to determine the dimensions of the browser

Posted by: kyanachik In: Ajax

I have found the following Javascript works the best to get the dimensions of the browser (note: not the dimensions of the entire page if there is scrolling).
var myWidth = 0, myHeight = 0;
if (typeof(window.innerWidth) == ‘number’)
{
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
}
else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
{
//IE6+ in ’standards compliant [...]