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 at all.
you could invent whatever you want...

I prepared two links...

1) http://lesperimento.netsons.org/click_whole_div/
for the log out you can click on the whole div ("#welcome_div")...
after the log out you have to refresh the page because the click event
is always on the whole div... and NOT just on the proper link.

2) http://lesperimento.netsons.org/click_just_link/
here, after the log in, you'd have to click just on the log out link
("#log_out_link")...
but nothing happen!!!

The websites are exactly the same... I've just changed the id on which
the click event works...

Any question about the php server-side just ask...

Hope to find out the mistake...

Cheers

On Apr 25, 12:52 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
wrote:
> 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 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").click(function(){ etc...
>
> > That means to me I can't get a <a> element inside a <div> directly...
> > is that true?
> > sounds strange...
>
> > Karl I tried also to put return false in the last line but nothing
> > happen...
>
> > Instead for this possibility
> > .click(function(event) {
> > event.preventDefault();
> > etc...
>
> > I really don't know how to use it!
>
> > Anyway I'm not preventing the default event from firing, at least not
> > on purpose... ;-)
>
> > any other advice?
>
> > by the way, many thanks guys for the help!!!
>
> > On Apr 24, 11:17 pm, Olaf Bosch <[EMAIL PROTECTED]> wrote:
> > > ^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 <div>:
>
> > > > <b>Welcome</b> <i>$_user</i>!!! <br/> <a href='#' id='log_out_link'>
> > > > Log out </a>
>
> > > why bind you not direct to the given ID, so:
>
> > > $(document).ready(function(){
> > > $("#log_out_link").click(function(){ etc...
>
> > > --
> > > Viele Grüße, Olaf
>
> > > -----------------------------------
> > > [EMAIL PROTECTED]://
> > olaf-bosch.de/http://ohorn.info/http://www.akitafreund.de/
> > > -----------------------------------
>
> --
> Alexandre Plennevaux
> LAb[au]
>
> http://www.lab-au.com

Reply via email to