Posts in jQuery Categories

jQuery isChildOf - is an element a child of another element

Here is a really quick note on creating a basic extension to jQuery to check if an element is a child of another element

jQuery News Ticker

I wanted a typewriter style news ticker that would display news items one character at a time. I had a look round and there are a few jQuery news tickers available but I just wanted something very simple that worked with jQuery 1.3.2. I couldn't find a plugin that exactly fitted my requirements so I decided to make my own.

How to debug Javascript, JSON and ASP.NET WebServices with Firebug

Writing a JavaScript client-side interface backed by ASP.NET Web Services is a great way to create a rich responsive interface. A previous post on Client Side Binding Using Ajax Page Methods and jQuery demonstrates some of the first steps to do this. It can be a bit tricky when it's not working figuring out what is wrong. Is it the JavaScript the Web Service or something else.

JQueryDialog wrapper for C# ASP.NET

I wanted to integrate the JQuery UI Dialog with an ASP.NET project so I created a C# class to wrap the functionality and make it easy to configure

Blogger, Html scraping, JQuery and YQL

For a recent project I was working on I wanted to display some sports results on my local football club's website. The association publishes the results weekly on its website, we also wanted to post them on our website. It would be a waste of time to type them out each week so what can we do? First solution I thought of was HTML data scrapping the results and redisplaying them, better than using an iframe as the results were not in a format that would suit our site. It would be fairly straight forward using ASP.NET on the server but this website is a Blogger site with limited server side functionality.

Improve ASP.NET Web Application User Interface with Keyboard Shortcuts

Implementing keyboard shortcuts can greatly improve the user interface of your web application. Interface navigation is a good place to start, for example if you are viewing a slide show of photos you may expect to be able to navigate through the photos using the left and right arrow keys on you keyboard. For an application that has a popup dialog very common functionality is the ablity to push the escape key to cancel the dialog and close it.

Client Side Binding Using Ajax Page Methods and jQuery

Using ASP.NET Ajax it is really easy to excute a server side method and return some form data. In some cases you can implement Ajax functionality without chaning your code. It is more efficent than submitting the whole page but if you are using an UpdatePanel the server returns all of the Html contained in the UpdatePanel. This is not so bad if you only have a few controls but if you have a table witha number of fields the data returned can be quite large. Taking that one step further is client side binding to load form data.

Handling Tabs in Textareas across browsers

Sooner or later when you are developing a web based application you will want to enable tabs in textareas so you can format some HTML or CSS. My first thought is why is this not a function of the web browser it would make sense to have a property you could set to enable tabbing. But no you need to use JavaScript. You can find plenty of solutions searching on Google. Most solutions, like the first one I found , detect when you press the tab key cancel the event and insert a tab into the textarea instead. This method is simplistic and limited when you are used to a IDE and want to indent blocks of text.

Toggle multiple checkboxs using JQuery with ASP.NET

In one of my projects I had a button to toggle a collection of check boxes output from a CheckBoxList control on the page. Initially I toggled these with a server postback.

Using jQuery AJAX and Page Methods with a ASP.NET WebService

I have recently started using the JQuery javascript library for a number a small projects. I have really enjoyed using jQuery, it makes javascript development really easy especially if you want to do some simple animations. There is a lot of good documentation that is easy to follow and a lot of plugins available, its worth a good look through before you make your own javascript application. I got to thinking about Ajax and get data out off a ASP.NET WebService.