Note that there are some explanatory texts on larger screens.

plurals
  1. POiPhone safari browser ajax undefined error - jquery
    primarykey
    data
    text
    <p>I made a mobile website using jquery and tested it on various devices (Android, BlackBerry and iPhone). I have a issue that happens strictly on iPhone 4. No other phone has this issue. When I use the back button (which is powered through the jquery mobile back button functionality), it shows "undefined" after executing the back function. I can see the page I previously browsed, but after that it automatically shows "undefined" in few seconds. Can anyone tell me why this happens on only iPhone 4. No other iPhone displays this error. Let me know if you need any more information. Thank you in anticipation. Have a great day ahead.</p> <p>Code Sample -1 </p> <pre><code>&lt;a class='backbtn' data-corners="false" data-ajax='false' data-role='button' data-inline="true" data-rel='back'&gt;Back&lt;/a&gt; if($this-&gt;params['controller']=='class1' &amp;&amp; $this-&gt;params['action'] == 'index' ){ echo $html-&gt;link(null, array('controller' =&gt; 'class1', 'action' =&gt; 'options'), array('class' =&gt; 'menuclass1', 'data-corners' =&gt; "false", 'data-role' =&gt; 'button', 'data-ajax' =&gt; "false", 'data-inline' =&gt; "true")); } </code></pre> <p>Code Sample -2</p> <pre><code>&lt;a class='backbtn' data-corners="false" data-ajax='false' data-role='button' data-inline="true" data-rel='back'&gt;Back&lt;/a&gt; &lt;?php }?&gt; &lt;/div&gt; &lt;div class='ui-block-b'&gt; &lt;?php if($this-&gt;params['controller']!='class3' &amp;&amp; $this-&gt;params['controller']!='class2'){?&gt; &lt;?php if($this-&gt;params['action']=='inquiry'){ echo $html-&gt;link(null, array('controller' =&gt; 'class5', 'action' =&gt; 'options'), array('class' =&gt; 'menushort', 'data-corners' =&gt; "false", 'data-role' =&gt; 'button', 'data-ajax' =&gt; "false", 'data-inline' =&gt; "true")); ?&gt; &lt;?php } ?&gt; </code></pre> <p>Regards, BG</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.
 

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