Note that there are some explanatory texts on larger screens.

plurals
  1. PODynamic Content Loading with JQUERY
    primarykey
    data
    text
    <p>I'm trying load a page dynamically with ajax. I pass along refid that i use to get the page content.</p> <p>All the information is stored in a custom attribute in the tag. There are 10+ links with their own values. RefID is very long. Not sure if that makes a difference.</p> <pre><code>&lt;a href="#dPage" title="More Info" data-theme="c" lat="{value}" lon="{value}" refid="CnRiAAAA_wO24Cpr6mCxuLDmiXYmWB8GoC5AqCllosAfNUZbkxD3QeiLlldSgGAxiwFpIlEbMx1JxuM6J6-uvFCDA9C-NfMVxBkT438ylOSWm11b2S74qXngL-wYH29sm4KX48762VjhYov9G2oOPM_iQJRjBBIQiNyeosXXee4kwXLMYBBtChoUkQrLBokVPKDcRLehvs2PLVmDv68" id="detailslink"&gt;&lt;/a&gt; &lt;div data-role="page" id="dPage"&gt; &lt;div data-role="header"&gt; &lt;h1&gt;Details&lt;/h1&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;div id="detailspage"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>--</p> <pre><code> $('#detailslink').live('click', function() { $("#detailspage").html(''); var placelat = $(this).attr('lat'); var placelon = $(this).attr('lon'); var refid = $(this).attr('refid'); $.ajax({ cache: false, url: "mobile/getdetails.php", dataType: "html", data: "&amp;lat="+placelat+"&amp;lon="+placelon+"&amp;refid="+refid, success: function (data) { alert("Success"); $("#detailspage").html(data); }, error: function(jqXHR, textStatus, errorThrown) { alert(textStatus); } }); //alert("done"); }); </code></pre> <p>This doens't work properly on the iPhone. The content is returned and works fine in chrome, firefox, safari, android, but not iphone.</p> <p>The iphone does not show anything. It looks like it does make the call but nothing on the page. </p> <p>Stuck on this. </p> <p>Thanks in advance.</p>
    singulars
    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.
 

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