SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Feb 2006
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple Ajax Question with Anchors

    I literally picked up my first Ajax book up today. YAY!

    anyway, I'm diving in and I have a question. Why with anchors are you returning "false" when calling js events.

    the book doesn't explain that and I just want to know why.

    oh, is there not an AJAX board on this forum?
    I live in Madison. Where in the W1RLD do you live?

  2. #2
    SitePoint Wizard chris_fuel's Avatar
    Join Date
    May 2006
    Location
    Ventura, CA
    Posts
    2,750
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is to prevent the default action (in this case, the following of the link). Quirks Mode has a nice writeup on this:

    http://www.quirksmode.org/js/events_early.html#link4

  3. #3
    SitePoint Addict
    Join Date
    Feb 2006
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, great explanation on the site. thank you.
    I live in Madison. Where in the W1RLD do you live?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •