Solved

Jquery Mobile popupPanel in a Wordpress PHP Page

Posted on 2013-01-13
1
378 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

772 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

10 Experts available now in Live!

Get 1:1 Help Now