locked
Creating image popup

    Question

  • I am trying to create a pop-up in my app. something like there is a thumbnail photo and when the user clicks on it, I want to pop-up to a larger size to the center of the screen. I tried to create a flyout div with an img in it, but it doesnt seem to work :(

    Could someone please help?

    Thanks,

    Nisha

    • Changed type Nisha Thursday, November 8, 2012 12:22 AM
    Tuesday, November 6, 2012 8:16 PM

Answers

  • Hi Nisha,

    Simply show a div with the image you want on the click event.

    There are lots of HTML examples that show how to do this.  You should be able to use http://bing.com

    and find one that fits your needs.

    -Jeff


    Jeff Sanders (MSFT)

    Thursday, November 8, 2012 2:51 PM
    Moderator

All replies

  • Hi Nisha,

    Simply show a div with the image you want on the click event.

    There are lots of HTML examples that show how to do this.  You should be able to use http://bing.com

    and find one that fits your needs.

    -Jeff


    Jeff Sanders (MSFT)

    Thursday, November 8, 2012 2:51 PM
    Moderator
  • Thanks Jeff. Do you mean to say change the visibility of the div based on the click?
    Thursday, November 8, 2012 9:10 PM
  • Exactly!

    Jeff Sanders (MSFT)

    Monday, November 12, 2012 1:19 PM
    Moderator