[jQuery] Re: get a inside a

2008-04-28 Thread ^AndreA^
Ok alexandre... you got it! ;-) yes, the markup for the login div is loaded on page load while the logout button markup is loaded later via ajah trough sign_in.php. In fact the server send this command: $("#welcome_div").html("Welcome $_user!!! Log out "); and then Javascript evals it. As you

[jQuery] Re: get a inside a

2008-04-26 Thread Alexandre Plennevaux
ok ^AndreA^, i think i got it. I think the markup for the login div is loaded on page load, while the logout button markup is fetched via your ajax call to "sign_in.php", right? In such case the issue you are facing is normal, and quite usual: the event binding is set on page load. Since your lo

[jQuery] Re: get a inside a

2008-04-26 Thread ^AndreA^
OK, Alexandre, let's try! As you have undestood the problem is on the log out link, so before, you have to log in... and that's for sure as well!!! ;-) username: "user" password: "user" anyway you could create your own user... it takes 3 seconds... no email check and or confirmation, no nothing

[jQuery] Re: get a inside a

2008-04-25 Thread Alexandre Plennevaux
at this point i suggest you publish online a copy of your page so that we can have a look, because the error is somewhere in your markup, that's for sure :) On Fri, Apr 25, 2008 at 9:26 AM, ^AndreA^ <[EMAIL PROTECTED]> wrote: > > Good observation Olaf but it doesn't work... > > Actually it's stra

[jQuery] Re: get a inside a

2008-04-25 Thread ^AndreA^
Good observation Olaf but it doesn't work... Actually it's strange, isn't it? If I do this it works when you click wherever in the div: $(document).ready(function(){ $("#id_div").click(function(){ etc... while like that it doesn't work at all: $(document).ready(function(){ $("#log_out_link").cl

[jQuery] Re: get a inside a

2008-04-24 Thread Olaf Bosch
^AndreA^ schrieb: Yes, href="#"... Could it be a problem?!? I put # just in oder to make it a link... This is what I've got into my : Welcome $_user!!! Log out why bind you not direct to the given ID, so: $(document).ready(function(){ $("#log_out_link").click(function(){ etc... -- Viel

[jQuery] Re: get a inside a

2008-04-24 Thread Karl Swedberg
are you preventing the default event from firing? make sure you put return false; in the last line inside the .click() or you can use .click(function(event) { event.preventDefault(); etc... --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 24, 2008

[jQuery] Re: get a inside a

2008-04-24 Thread ^AndreA^
Yes, href="#"... Could it be a problem?!? I put # just in oder to make it a link... This is what I've got into my : Welcome $_user!!! Log out On Apr 24, 1:08 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > do you actually have an HREF attribute to your A tag ? Because its omission

[jQuery] Re: get a inside a

2008-04-24 Thread Alexandre Plennevaux
do you actually have an HREF attribute to your A tag ? Because its omission kills the click event i think. On Thu, Apr 24, 2008 at 1:22 PM, ^AndreA^ <[EMAIL PROTECTED]> wrote: > > I think it's simple but it doesn't work... to me. ;-) > > I want to fire an event when I click on that link inside a