Tagged "jquery"

jQuery style Ui dialog over flash banners

I was doing some extra job for one of the clients, some changes on the web site full of blinking flash banners. Idea was to get users’ attention even more by displaying some floating windows… lovely … Obvious choice would be jQuery modal dialog… So I made it … Unfortunately it has shown up that some of the flash banners remain ‘over’ the dialog, and some of them don’t. After digging into that I figured out that the reason behind that is one of flash parameters: “wmode” (thanks God this is not another inner flash issue).

Checkbox has to be 'checked' - with unobtrusive jQuery validation and ASP.NET MVC 3

Is it a pretty common scenario to have a checkbox on a form, that is required to be checked during POST-ing of a form. This usually happens when we have a typical ‘Agree to Terms and Conditions’ element. When I started to play with unobtrusive JavaScript validation in new ASP.NET MVC i was pretty sure that decorating boolean property with [Required] attribute will solve that issue. Surprisingly it doesn’t. The key to this problem lies in interpretation of jQuery validation ‘required’ rule.

Client Side Validation After Ajax Partial View Result in Asp Net Mvc 3

Now, as ASP.NET MVC 3 beta was finally released I have decided to give it a try. The most exciting thing that I have noticed is implementation of an idea of so called Unobtrusive JavaScript. This is for both Ajax helpers and Client Validation. And I have to admit that I just love it. I wll just copy and paste text from scottgu blog: Unobtrusive JavaScript and HTML 5: The AJAX and Validation helpers in ASP.

Tips for jQuery validation plugin

Because I currently work with a couple of projects where I extensively use jQuery framework, together with it’s plugins I decided to write a post in which I can gather all of my ideas, tips that i have arrived during my work with this library. I am a kind of guy that has a huge mess not only on his computer’s desktop but even within project files. It happens that when I arrive a problem, and I am sure I have figured it out in some other project but it usually takes me ages to dig through all of them to find even simplest solution.

Firefox 3.0: 411 Length required with JQuery

I am currently working on a small project for my own. My favourite (and the only one tester) was complaining on some of “ajax” features. Tests were done with use of Firefox 3.0 - I was developing on Firefox 3.5 and had absolutely no problems with those problematic features. Anyway I decided to check this out an downloaded 3.0 version ( most recent is 3.0.11). You can have multiple instances of Firefox on Your machine - just make sure You install them in separate directories.

$.postJSON - how to avoid JSON attack

I’ve recently read great article by Phil Haack, JSON Hijacking. It points to some JSON vulnerabilities, basically: how sensitive data can be captured by bad people during “GET JSON” request. During my web development I always start with adding some javascript helper methods. One of them, based on jQuery, is making HTTP POST instead of GET. This should be sufficient to avoid majority of JSON attacks. So instead of $.getJSON( … ), use: