[jQuery] Re: missing ) after argument list SOLVED

2009-10-31 Thread risteli
That's because your php string contained double quotes, and your javascript string was delimited by ... double quotes. When this happens, you need to escape your php string, like this: $("#").replaceWith("")); On Oct 31, 7:03 pm, "Steve Staples" wrote: > Not really saying it's a problem, but al

[jQuery] Re: How to prevent default behavior in an event handler that returns a function

2009-10-30 Thread risteli
The code above could be rewritten as: //<![CDATA[ $(document).ready(function() { $("body>a").click(function(e) { var my_i = ((/_(\d+)$/).exec(e.target.id))[1]; console.log(my_i,e); e.pr

[jQuery] Re: How to prevent default behavior in an event handler that returns a function

2009-10-29 Thread risteli
Hello, this is one of the possible generic ways to do it using closures: for (var i=0;i wrote: > Example page:http://jqueryfun.nathanielklee.com/eventFirefox.html > > Following one example provided in an official jQuery tutorial (located > athttp://docs.jquery.com/Tutorials:How_jQuery_Wor

[jQuery] Re: IE8 problems with fadein/fadeout

2009-10-29 Thread risteli
IE7 by adding a meta line into the section. > > Like this: > > > > I guess IE8 have many issues related to javascript, so it would be the > best solution for this. > > On 28 Ekim, 12:38, risteli wrote: > > > I have a problem with a simple animation. Maybe there&

[jQuery] IE8 problems with fadein/fadeout

2009-10-28 Thread risteli
I have a problem with a simple animation. Maybe there's something I don't understand as it's the first website I'm writing with jquery1.3.2 ... This is the skeleton of what I'm working (I removed all the unnecessary code I could remove without changing the logic and the website structure - that's