Archive for the ‘Javascrip/AJAX’ Category

Multiple select ComboBox in RadGrid filter

There are many examples of how you could use a ComboBox as a RadGrid filter but if you would like to use check boxes inside that ComboBox you’ve got your work cut out for you. This article is going to make you life easier and give you an example of how you could achieve that. 

Tags:    

Multiple select TreeView in ComboBox

The Telerik ComboBox for ASP.NET allows you to define an ItemTemplate which gives you the possibility to customize the appearance and functionality of the ComboBox. This article provides an example on how to place a multi-select TreeView inside an ItemTemplate, handling the selection on client side and how to process the data on the server [...]

Tags:    

How to custom filter ASP.NET Telerik RadGrid date columns

The Telerik RadGrid for ASP.NET Ajax allows custom filtering on date columns by using JavaScript.

The user will normally need to be able to filter the date columns by writing a date inside the RadDateInput control and then pressing a key (e.g. Enter) or by choosing a date from the DatePicker filter control. Date validation can be done before actually doing the filtering. Also, other checks can be performed according to the logic of the application.

Tags:     

Javascript to represent progress along irregular path

The goal is to simulate a motion by filling this path drawn over a background image using JavaScript only. Will consider a simple way, cut in solid color, with transparent background. In real situation will be, say, a meaningful path with respect to some landscape.

Tags:      

Custom header images in WordPress

In this post i will show you a easy way to add different header images for each page or post in your blog / website. The fastest way to achieve this is to use Custom Fields, this allows us to add additional meta information to posts. In the next example the header image it is [...]

Tags:   

osCommerce jQuery price calculator

Let’s assume that we have to build a price calculator for a osCommerce website, that needs to have price based on dimensions(input from user – length, width), attributes,
for each attribute there are more than 1 options with different prices for each option.

Tags:    

The access rules for each user on page in wordpress

The client wanted to limit the access to certain pages based on user account and password. So some pages can only accessed by some users that gave them permission the site manager. For that i create two radio input type with “Yes” or “No” protect page options.When i selected “Yes” option i can chosen from [...]

Tags:   

Cross-domain AJAX calls

In these days all web2.0 apps make use of AJAX to save bandwidth, user time or to display data without refreshing the page. When you make an AJAX request the response could be plain text, Html or JSON, but if you want to make a cross-domain AJAX call you can’t because the browser security model dictates that XMLHttpRequest must have the same domain in order to communicate. This is where you need to use JSONP, this technique will make the AJAX call and after will inject the response in a script tag and will pass the data to a specified function.
Some JavaScript Libraries help you dealing with JSONP and in this article I will show you how to make cross-domain AJAX calls with MooTools and jQuery.

Tags: