Menhir-effect blog

The only constant in webdevelopment is change

Menhir header


  • Hooking drupal s’ logout button with jquery

    Tuesday, September 30th, 2008

    In a project I am working on, I had to hook the login and logout of drupal, so that an extra action would be taken. More specific to my case: when logging in and/or out of a drupal, the same action should be taken for another session to a second server.

    As drupal login and logout are buttons that are built in Drupal, It had to work around it. The most common solution would be to add an extra class attribute to the links that performed the logout. This class then could be triggered with Jquery to override the logout button to handle things differently. You could think of it as branching the logout task. In stead of going to a different page to perform logout, we call two pages with Jquery’s AJAX methods.

Actionscript 3.0 activity ahah Air AJAX alpha behavior browser caching cck code community content_copy css Design development Drupal embed Facebook fapi fixes Flash Flex fonts Games hangman Heartbeat hyves javascript jquery Library mouse png Pure MVC quick social networks swf tabs taxonomy transparant Twitter UIComponent unicode views
  • Categories

    • Actionscript 3.0 (3)
    • Design (2)
    • Drupal (15)
      • Heartbeat (4)
    • Flash (4)
    • Flex (4)
    • javascript (3)
    • News (1)
    • PHP (2)
    • quick fixes (1)
    • Technology (2)
    • Uncategorized (3)
 

Recent Comments

  • I'm interested in testing and hacking along....
    Kasper Souren
  • Hi, i'm looking for a way to have a view...
    MD
  • Great,thx, I'll take the discussion out there....
    Stalski
  • API category on drupal.org: http://drupal.org/node/113412...
    sun
  • I was not specific enough in my post as well....
    Stalski

home | Entries (RSS) | Comments (RSS) | Menhir
23 queries. 0.236 seconds.