Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7808185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:04:24+00:00 2026-06-02T03:04:24+00:00

For my project I need to popup an image when i push a button.

  • 0

For my project I need to popup an image when i push a button.
I am trying to use the SimpleDialog plugin, which you can see over here.
I am doing this in my HTML

<p>This shows standard, default popup only mode.</p>
            <script type="text/javascript"> 
                $(document).delegate('#popupbut', 'click', function() {
                    $('<div>').simpledialog2({
                        mode: 'blank',
                        headerText: 'Some Stuff',
                        headerClose: true,
                        blankContent : 
                            "<ul data-role='listview'><li>Some</li><li>List</li><li>Items</li></ul>"+
                            "<a rel='close' data-role='button' href='#'>Close</a>"
                    })
                });
            </script>
            <a href="#" id="popupbut" data-role="button">Open Dialog</a>

I have included the JS and CSS properly. But for some reason it won’t work.
Does anybody have an idea? Or an other alternative for the SimpleDialog plugin?

Kind Regards

——EDIT ——-
OK I got it to work with the example above.
But now I only want to show an image. So I do this in my script.

    $(document).delegate('#opendialog', 'click', function() {
                    // NOTE: The selector can be whatever you like, so long as it is an HTML element.
                    //  If you prefer, it can be a member of the current page, or an anonymous div
                    //       like shown.
                          $('<div>').simpledialog2({
                        mode: 'blank',
                            headerText: 'Some Stuff',
                            headerClose: true,
                          blankContent : 
                            "<img src="images/schema.jpg" alt="schema" width="100" height="100" />"


 })
            })

But this wont work. Anybody can help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T03:04:26+00:00Added an answer on June 2, 2026 at 3:04 am

    Updated my post, this should work.

    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Test</title>
    <link rel="stylesheet" type="text/css" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
    <link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog.min.css" /> 
    
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script> 
    <script type="text/javascript" src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
    <script type="text/javascript" src="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog2.min.js"></script>
    
    
    </head>
    <body>
    <script type="text/javascript">
    $(document).delegate('#opendialog', 'click', function() {
      $('<div>').simpledialog2({
        mode: 'blank',
        headerText: 'Some Stuff',
        headerClose: true,
        dialogAllow: true,
        dialogForce: true,
        blankContent : 
          "<img src=\"images/schema.jpg\" alt=\"schema\" width=\"100\" height=\"100\" />"+
          "<a rel='close' data-role='button' href='#'>Close</a>"
      })
    })
    </script>
    
    <a href="#" id="opendialog" data-role="button">Open Dialog</a>
    
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to add login modal popup in my project like Digg's login popup.
I am working on razor project where I need to display jquery modal popup.
I am using menuContributions+popup to show a context menu in my plugin.xml. I need
I'm trying to implement code-completion popup window in my project. The window is derived
I should use JSF 1.1 Mojarra implemetnation in job project. But I need a
my project need to read multiple web pages at a time(eg: for a particular
My project need to compare output(only urls) of google and yahoo for a particular
My android app project need to add a new function of saving the click
The Junits I have in my project need to load property files from the
In a php project I need to add items to database, list them &

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.