Solved

Jquery Mobile popupPanel in a Wordpress PHP Page

Posted on 2013-01-13
1
379 Views
Last Modified: 2013-01-13
I can create a basic HTML page using the example http://jquerymobile.com/test/docs/pages/popup/popup-panels.html and it works as designed.  I'm attempting to produce the same popup functionality with this code in a Wordpress homepage with zero luck.  The Open Panel button is at the top right of http://test2.dfigdesign.com and my panel should appear after the <div id="main" data-role="content">.  I have the the CSS and scripting included in the page.

How should this be handled differently to have the page return a panel, please?


<div data-role="popup" id="popupPanel-popup" data-corners="false" data-theme="none" data-shadow="false" data-tolerance="0,0">

    <button data-theme="a" data-icon="back" data-mini="true">Back</button>
    <button data-theme="a" data-icon="grid" data-mini="true">Menu</button>
    <button data-theme="a" data-icon="search" data-mini="true">Search</button>
     
</div>
0
Comment
Question by:danfiggolf
1 Comment
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 500 total points
ID: 38772516
It seems that you're closing the panel on button click, try to remove the line

//$("#popupPanel").popup('close');

here:

              $("#popupPanel button").on("click", function () {
                  $("#popupPanel").popup('close');
              });
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now