Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2010
    Location
    God's Own Country
    Posts
    87
    Thanks
    6
    Thanked 0 Times in 0 Posts

    loading image and checkbox

    Hai,

    I want a loading image to be displayed while I am checking a checkbox. The loader image should be at exact position as the checkbox is. I have placed a loading image in my page, but it gets displayed at the centre. I want to know how to display the image at the position of checked checkbox..Is it a simple thing? Or Is it complicated one. I have no idea. I feel that for the purpose we have to take the postion of mouse pointer..Am I correct..If someone has an exact solution..please help with an answer.

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,955
    Thanks
    9
    Thanked 726 Times in 720 Posts
    Mouse position is no good, because the mouse could be anywhere on the screen.

    If your markup is something like:

    Code:
    <label id="mycheckbox"><input type="checkbox"></label>
    and your event is firing when the checkbox is ticked, then you could introduce the image within the parent <label> tag, and position it appropriately from there.


  •  

    Posting Permissions

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