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