SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot malluwood's Avatar
    Join Date
    Nov 2006
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Checkbox magic ?

    hi

    i was simply searching in the google and found a website https://www.name.com/search.php

    I tried javascript in the search box and got some resullts.

    The moment I clicked on one of the checkbox,that is automatically added to the shooping cart(which is displayed in the right side).if i am uncheck from the displayed results then the cheked one disapperas and a line comes over the text on the rightside.How it is done.I am sure.its a magic of javascript.

    I am very curious to know how it is happening.please help me to do this


    Thanks

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This can be done using core JavaScript and the DOM that is supported in modern browsers. Look into these subjects and you'll realize that the magic is not so hard to implement.


  3. #3
    SitePoint Zealot malluwood's Avatar
    Join Date
    Nov 2006
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry

    Thanks
    could you please help me what are the functions we require to do this?

  4. #4
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do you mean? The name of the functions? The actual implementation?
    Last edited by Pepejeria; Apr 13, 2007 at 03:31.

  5. #5
    SitePoint Zealot malluwood's Avatar
    Join Date
    Nov 2006
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    could you please give me an overall idea?It will be very helpfull for me

    Thanks

  6. #6
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, you already got the idea from that website right? How good are you with JavaScript and the DOM?

  7. #7
    SitePoint Zealot malluwood's Avatar
    Join Date
    Nov 2006
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry

    Quote Originally Posted by Pepejeria View Post
    Well, you already got the idea from that website right? How good are you with JavaScript and the DOM?

    I can say 4 out of 10. i am not good in Javascript.Is there any readymade package available to do this?please help me.

    Thanx

  8. #8
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not that I know. Will you have to either improve your JavaScript skills or employee somebody to help you with the implementation.


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
  •