[jQuery] Re: åäö doesn't work with load ()

2007-04-11 Thread Mariusz Cieśla

Can't you just try to use UTF-8 for the pages? Conversion isn't hard
and still it solves most problems with special characters. ; )

Cheers,
M.



[jQuery] asp:Multiview and $(document).ready

2007-04-11 Thread Mariusz Cieśla

Hi,

I've got one problem regarding jQuery which is to get it working with
asp:MultiView control. As you probably know (or not), asp:MultiView is
a special control which takes care of tabbed views. My company uses a
lot of these and the problem is like that:

I have a JavaScript function for showing help-boxes to the user, which
looks like this:

$(function()
{
  $("#helpbox").hide();

  $("#helplink").click(function() {
  if ("#helpbox").css('display') == 'none')
 $("#helpbox").fadeIn();
  else
 $("#helpbox").fadeOut();
  });

  $(".close").click(function() {
  if ("#helpbox").css('display') == 'block')
 $("#helpbox").fadeOut();
  });
});

It works when document loads, but when I go to the other view in
MultiView and then back, the $(document).ready event isn't fired and
though -- everything dies miserably...

Any help?

Cheers,
M.