SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Dec 2001
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Double action, One hyperlink

    Ok my friend has created a site that is like subprofiles but cooler Neoprofile.com And i got this idea so that you can do two functions at once. when you go to view someones profile you have to click a hyperlink so it displays but i wanna put another function into that one link... So that it adds your name to the person whos opening the profile to their buddy list. Does anyone know how to make it so one hyperlink does two functions at once?

  2. #2
    SitePoint Evangelist azizur_rahman's Avatar
    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I've just answer this same question just now. same answer but double questions.
    Azizur Rahman
    Web Application Developer

  3. #3
    SitePoint Member
    Join Date
    Dec 2001
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where did you answer it?

  4. #4
    SitePoint Evangelist azizur_rahman's Avatar
    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did answer it about 20 min ago.. when you first posted this message:

    unless its been deleted by mentor because of posting similar message over cross boards...

    anyway here is the answer:

    #1) create a function that calls the two functions you want to be called. then make a call to that function from the link.

    Or

    #2) call the functions in order that you want to call... from the same link. (make sure you make it clear where each call ends and other beings... for examples
    Code:
    onMouseClick="JavaScript: MyFunction1(paramters);myFunction2(parameters);"
    I've tested them and both method works fines...

    Hope this helps
    Azizur Rahman
    Web Application Developer


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
  •