Showing posts with label Jquery. Show all posts
Showing posts with label Jquery. Show all posts

Thursday, May 24, 2012

IE AJAX Json Null Data bug.

I have an ASP.NET MVC 3 project that errors on IE. IE and jQuery ajax have an issue when trying to send data that is null. There is no error, so it's very hard to determine that this is the issue. I have to make separate AJAX calls for each type of call to the .NET controller.

Monday, December 14, 2009

CSS change children with JQuery

I wanted to be able to change the children's css of an element with JQuery.

In a table, for instance, I wanted to change the data rows as the user's mouse and . I was using
$("#tr").mouseleave(function(){
$(this).children().css = "...";
});

This even changed rows that were header rows.

I had more than one table on the page, so accessing an id isn't efficient or practical.

I created a class in css, tableHead, and set the rows containing the th to this class.

Then in JQuery, after $(this).children().css = "";

$(".tableHead").children().css = "..";

This changed everything with the class "tableHead" to the new css.

Tuesday, December 8, 2009

Great JQuery Websites

Collection of JQuery Tutorials

http://technosiastic.wordpress.com/2009/09/24/collection-of-top-jquery-tutorials-tips-tricks-techniques-to-improve-performance/

JQuery for Designers

http://jqueryfordesigners.com/

Friday, November 20, 2009

JQuery Stuff

$(document).ready(function(){
// your code
});

Put this in your script type=".../javascript" to execute code before the page finishes loading.

********************************

$("[element name]").addClass("[css class name]");

This adds a css class to all elements of that element type.

********************************

For great JQuery effects

http://docs.jquery.com/Effects


********************************


$("a").click(function(event){ event.preventDefault(); $(this).hide("slow"); });


Example of using an effect.