Blog Posts on web programming html css javascript
Percent:
Jquery wait for all the images to be loaded before calling an action, such as image caption by czetsuya's tech on Apr 11, 2012Recently I've just wanted a nice rollover caption implemented on our wedding invitation website, such on a list of wedding invitations, when you hover on one, a caption will be shown. Of course, there are some wedding invitation categories that would...
How to change jquery's dialog button label at run time by czetsuya's tech on Apr 10, 2012Recently I've used a 3rd party jquery library that pops up a jquery dialog with form content. However if has a default button Save and Cancel, which most of the time is ok, but sometimes you have need to localized or change the label depending on you...
MVC3 ajax validation doesn't work on a jquery served form by czetsuya's tech on Apr 4, 2012To make automatic validation using data annotation on a model on mvc3 c# we need:1.) A model with data annotation (ex. required attribute).2.) Form with jquery declaration (jquery1.7, validate, validate unobtrusive, and unobtrusive-ajax. All are avai...
Caps converter - convert uppercase to lowercase to normal case to capital case and vise versas by czetsuya's tech on Mar 7, 2012Below are the list of tools I use in case converting, they are useful if you are on a printing business and your clients just type on whatever case they want :-) Notepad++ - converts uppercase -> lowercase and vice versaMicrosoft word - a fea...
Add a jquery datepicker on jquery dialog box via load method by czetsuya's tech on Jan 16, 2012Recently I've worked on a form that requires a jquery datepicker to be rendered inside jquery's dialog element. Where I encountered several problems like:1.) datepicker() should be invoke inside dialog2.) the dialog created (div) should be remove fro...
validation-summary-errors div showing even if there is no error binded to a property by czetsuya's tech on Dec 28, 2011I'm working on a change password form when I encountered this strange behavior from mvc3. I created a simple form and change password model with 3 fields (old, new, confirm password). Then I extended ValidationAttribute to validate the password's len...
How to enable jquery's lavalamp's links by czetsuya's tech on Dec 16, 2011I've used lavalamp's menu in my project several times and have experienced the same problem 2 or 3 times after copying the code from the downloadable zipped file. It's as if the links were not there and even you click the menulink the page will not r...
Jquery copy form values into another form by czetsuya's tech on Jul 19, 2011Recently I have a requirement to have two form on a single page. Why? It's because I have a search form that query records from the database with the aid of ajax. Then another form to generate a report based from the filters specified in the first fo...
JQuery DatePicker show only the Month and Year by czetsuya's tech on Jul 19, 2011I have created a report search form that filter the monthly record of sales. So I don't really care about the specific day but the month.Jquery has a nice DatePicker library, but it can't be customized to remove the month part, so just hide it with t...
Copy html form element value from one form into another using jquery by czetsuya's tech on Jun 27, 2011$("#SubmitButton").click(function () { $(':input[name]', "#searchForm").each(function () { $('[name=' + $(this).attr('name') + ']', "#generateReportForm").val($(this).val()) })});In the above code we have 2 forms with ids: searchFo...


