From inspiration to realization
26Jul/100

jQuery colorbox plugin no opacity (overlay) – IE7

today, while checking a website I did heavy client side work on, converting PSD's to html, CSS and JavaScript I checked everything on IE7, one of the most annoying things I encountered was that the colorbox overlay color was pitch black.

On other browsers, everything seemed fine and the overlay was in the correct opacity.

This bug is very easy to fix.

this was my code before:

	$('.guestboox_more').colorbox({
		inline:true,
		href:'.guestbook_more_details',
		innerWidth:'610px',
		opacity: '.2',
		transition: 'elastic'
	});

And this is the code after (this fixed the problem)

	$('.guestboox_more').colorbox({
		inline:true,
		href:'.guestbook_more_details',
		innerWidth:'610px',
		opacity: '0.2',
		transition: 'elastic'
	});

The problem was only that IE7 didn't recognizance .2 as 0.2 and needed to be more specific (as often IE needs).
I hope this will save you some time.

  • Share/Bookmark
12Jul/100

jQuery, wait for animation to end then do something

I have been using jQuery for quite some time now, following a question on one of the many forums and discussions group I visit daily I found that not many know that jQuery has a built in way to "listen" for an animation to end and then continue work.

For instance if I am using the slideDown effect, I can create a function that will only execute when the slide is finished.

how?

like this...

		$('div.menuOurHotel').slideDown("slow", function()
		{
			$("div.order_form").hide();
		});

This is a very useful way to create a responsive intuitive user interface.

Good luck

  • Share/Bookmark
1Feb/102

jQuery and UpdatePanels (Asp.Net)

Well, I love using jQuery.

I think this open-source js library is simply the best when you want to create a more rich user experience in your websites and applications.

Some will argue mootools is better but hey, this is a long and exausting battle, almost like the one between PHP and ASP.net

This post comes to explain the difficulties when using jQuery dom event like "click" and "change" with an update panel.

  • Share/Bookmark
20Oct/091

Bypassing the IE "onchange" bug with jQuery

IEHi All,

I absolutely love jQuery, I use it daily with my client side work, putting the jQuery file into my JS library has become an automated thing I do.

Well, after saying that, even jQuery can't fix all the IE bugs and quirks and sometimes you have to bypass them with intelligence and some style

  • Share/Bookmark
27Sep/090

Retrieve tweets using jQuery

Twitter LogoHi All,

As many of you I'm sure I'm a Twitter user, as a part of you I also have spent quite some time reading the Twitter API and understanding it.

I stumbled upon a forum message (Hebrew) asking how can you retrieve your (or anybody else's) tweets using JavaScript only and no server side.

  • Share/Bookmark