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

  • Home
  • SEARCH
  • 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 7939617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:09:26+00:00 2026-06-03T23:09:26+00:00

i have trying to bulid an app that select the posts data from a

  • 0

i have trying to bulid an app that select the posts data from a worpress data.
so its all just need to be an simple <li> elmenets in <ul> in jquery-moblie that show it
this is my code:
the probalme have describeit in the end

<?php /**
        * @author yosef yawitz
        * @copyright 2012
        * @name index.php
        **/
require_once 'inc/header.php';
/**
 * $query = 'inventory_sku';
 * $a = wareHouseAllItems($query);
 */
?>
<script src="js/jqm.autoComplete-1.3.js"></script>
<body>
<div data-role="page" id="indexPage">

    <div data-role="header" data-position="fixed"> 
        <h1> בר דעת </h1> 
    </div>
    <div data-role="content">
    <ul id="inventoryProducts"data-role="listview" data-theme="g">
        </ul>
    </div>
    <div data-role="footer">
        <h1>Comp</h1>
    </div>
</div>
<script>

        $(document).ready(function(){
        $('#inventoryProducts').load('inc/load_posts.php');
        });
 </script>
</body>
</html>

when i load the ajax in the bottom of the page the <li> elemnet show as normal and not have the jquery css style

  • 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-03T23:09:27+00:00Added an answer on June 3, 2026 at 11:09 pm

    I had the same problem. Do an Ajax call, something along the lines of:

    $.ajax({
        type: 'POST',
        url: inc/load_posts.php,
        success:function(receivedData){
            // successful request; do something with the data
            var myData = receivedData;
            },
        error:function(){
            // failed request; give feedback to user
            alert('Ajax call failed.');
        }
    });
    

    And then use this code in Javascript to update your page with the posts you received through the Ajax call.

    $("#content").html(myData).page();
    $("#content").page("destroy").page();
    

    It solved the problem for me.

    Maybe this can help you as well : http://blog.dkferguson.com/index.cfm/2011/3/15/jQuery-Mobile-styling-loaded-content

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build the simple layout that I have got in the image
I'm trying to build and app that shows organized data so I'm thinking that
I'm trying to build a web app that grabs fantasy sports info from Yahoo's
I am currently trying to build a cakephp app that will list items from
I'm trying to build an educational app that will have approximately 3-5 completely different
I have a grails app that I am trying to deploy onto Tomcat. I
I am trying to build a app that will have a view hidden unless
I am trying to build a Rails app that uses the YouTube data API
I am trying to build a simple app that will show a bidimensional, scrollable
I'm trying to build an app where I have a TabBarController with 4 entries.

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.