Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts
Saturday, April 28, 2012
Monday, April 16, 2012
Saturday, April 14, 2012
Friday, April 13, 2012
Thursday, April 12, 2012
Thursday, April 5, 2012
Wednesday, April 4, 2012
Clean slider
You can get tons of slider in jquery, but most are confusing and hard to make changes.
This one is quite clean and easy to use, and it is able to hide the next and prev button whenever it is not necessary.
This slider is used for generating the content in the slider page.
This one is quite clean and easy to use, and it is able to hide the next and prev button whenever it is not necessary.
This slider is used for generating the content in the slider page.
Tuesday, April 3, 2012
Wednesday, March 21, 2012
expand and scrolling effect
the key is to append arrow icon after the expand effect
use the same id for href target with section to be shown.
the key is to append arrow icon after the expand effect
use the same id for href target with section to be shown.
Friday, March 16, 2012
Wednesday, February 29, 2012
Wednesday, February 15, 2012
Thursday, April 22, 2010
Animated scroll to anchor/id function with jQuery
This feature is useful especially when you need to maintain the page position after browsing from other pages.
A quick win will be using anchor in the url, but the catch is if you are using controls like telerik grid ajax postback, the anchor point #XXX in your url will be subtracted and you won't be able to do what you want.
One more point is that it is good to use this function in $(document).ready(function ()) instead of pageLoad() so that it only move to your position once when page is loaded not ajax postback.
checkout this blog for more information.
A quick win will be using anchor in the url, but the catch is if you are using controls like telerik grid ajax postback, the anchor point #XXX in your url will be subtracted and you won't be able to do what you want.
One more point is that it is good to use this function in $(document).ready(function ()) instead of pageLoad() so that it only move to your position once when page is loaded not ajax postback.
checkout this blog for more information.
Friday, March 26, 2010
Monday, March 22, 2010
jquery toggle effect
To build the UI effect like this, we can extend from the below simple example. Use the 'green' code to hide/ show a section using a button. Use the 'orange' code to toggle the button orientation.
$("#buttonZone").click(function() {
$("#searchDiv").slideToggle(600);
});
$("#buttonZone").toggle(
function() {
$(this).removeClass("buttonZoneHide");
$(this).addClass("buttonZoneShow");
},
function() {
$(this).removeClass("buttonZoneShow");
$(this).addClass("buttonZoneHide");
});
$("#buttonZone").click(function() {
$("#searchDiv").slideToggle(600);
});
$("#buttonZone").toggle(
function() {
$(this).removeClass("buttonZoneHide");
$(this).addClass("buttonZoneShow");
},
function() {
$(this).removeClass("buttonZoneShow");
$(this).addClass("buttonZoneHide");
});
how to access your asp.net controls in jquery.
$(document).ready(function() {
var id = " < % = chklstFilesAvailable.ClientID % > ";
var chklist = $("#" + id);
var btnId = " < % = btnDownload.ClientID % > ";
var button = $("#" + btnId);
//reusable show/hide button wiring
wireButtonShowToCheckListBox(chklist, button);
});
function wireButtonShowToCheckListBox(chklist, button) {
chklist.find('input:checkbox').each(function() {
var cb = $(this);
cb.click(function() {
var hit = false;
chklist.find('input:checkbox').each(function() {
var checked = $(this).attr('checked');
if (checked)
hit = true;
});
if (hit == true) {
button.show();
} else {
button.hide();
}
});
});
}
Refer to this article for more details
var id = " < % = chklstFilesAvailable.ClientID % > ";
var chklist = $("#" + id);
var btnId = " < % = btnDownload.ClientID % > ";
var button = $("#" + btnId);
//reusable show/hide button wiring
wireButtonShowToCheckListBox(chklist, button);
});
function wireButtonShowToCheckListBox(chklist, button) {
chklist.find('input:checkbox').each(function() {
var cb = $(this);
cb.click(function() {
var hit = false;
chklist.find('input:checkbox').each(function() {
var checked = $(this).attr('checked');
if (checked)
hit = true;
});
if (hit == true) {
button.show();
} else {
button.hide();
}
});
});
}
Refer to this article for more details
Saturday, March 6, 2010
power of jquery - 1
1.Checkout this amazing effect using jquery for your navigation
2.This article shows you the dynamic tabs using jquery
3. This article shows an alternative way to show validation error
4. Wizard like form filling experience
5. This article shows dropdown menu navigation using jquery
6. This article shows very good effect message box effect to show after you saved something
7. This article shows better UI experience by highlighting the row during data entry into the form.
Checkout all the jquery tutorial from Janko, you will be impressed.
2.This article shows you the dynamic tabs using jquery
3. This article shows an alternative way to show validation error
4. Wizard like form filling experience
5. This article shows dropdown menu navigation using jquery
6. This article shows very good effect message box effect to show after you saved something
7. This article shows better UI experience by highlighting the row during data entry into the form.
Checkout all the jquery tutorial from Janko, you will be impressed.
Subscribe to:
Posts (Atom)