?
Solved

Jquery Mobile popupPanel in a Wordpress PHP Page

Posted on 2013-01-13
1
Medium Priority
?
383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 2000 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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…
Suggested Courses

765 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