Note that there are some explanatory texts on larger screens.

plurals
  1. POPulling HTML content from my wordpress site via JSON - jQuerymobile + Phonegap
    primarykey
    data
    text
    <p>I have been trying this for a week now I have not yet found any working solution I am quite stressed - If someone here could help that will be really good :)</p> <p><strong>Summary</strong></p> <ul> <li>Creating Native app using jQuery Mobile &amp; PhoneGap</li> <li>For iPhone first therefore i have xcode etc.</li> <li>I run a website using wordpress, I want to pull some content for select pages to display in this iPhone app.</li> <li>I have installed this plugin: <a href="http://wordpress.org/extend/plugins/json-api/" rel="nofollow">http://wordpress.org/extend/plugins/json-api/</a></li> </ul> <p><strong>What I have Done</strong> - Created a nice working layout. - Installed It on my iPhone, works well (I am a iPhone developer). - Installed the plugin.</p> <p><strong>Need Help With ...</strong> I am going to have a html table on my websites page I want the iPhone app to connect to the server and pull this html data and display it. (So if i change a price online it will reflect in the app).</p> <p>However the entire page WILL NOT be generated from JSON (I know Apple wouldn't like it otherwise) for example header, footer and some other content is already coded.</p> <p><strong>My code so far</strong></p> <pre><code> &lt;script type="text/javascript"&gt; $(function(){ $.ajax({ url: "http://www.myurlhere.com.au/api/get_page/?id=219/", success: function(json_results){ console.log(json_results); $('#resultcontent') listItems = $('#resultcontent') $.each(json_results.results, function(key) { html = '&lt;h3&gt;Title Here&lt;/h3&gt;'; html += '&lt;p&gt;'+json_results.results[key].content+'&lt;/p&gt;'; listItems.append(''+html+''); }); } }); })&lt;/script&gt; &lt;div id="resultcontent"&gt;&lt;/div&gt; </code></pre> <p>Can anyone see any issue with this?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload