Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery click event problem iPhone, Safari iPad
    primarykey
    data
    text
    <p>My site seems to function in most browsers but in the Mac series (iPhone etc).</p> <p>Most of the features work but when it comes to a select section using images as the target the selection isn't working.</p> <p>I don't have an iPhone to test but according to feedback - on the page (linked to below) the initial icon click brings up the modal window with the icons to choose - it is that selection that doesn't work.</p> <p>An example of the code for this icon selection is:</p> <pre><code>jQuery(function() { jQuery('#cd').click(function() { jQuery('#cd').fadeTo('fast',1); jQuery('#dvd').fadeTo('fast', .25, function() { jQuery('input[name=frmmedia]').val(1); jQuery('#next').show(); }); }); }); jQuery(function() { jQuery('#dvd').click(function() { jQuery('#dvd').fadeTo('fast',1); jQuery('#cd').fadeTo('fast', .25, function() { jQuery('input[name=frmmedia]').val(2); jQuery('#next').show(); }); }); }); </code></pre> <p>The php code/page that contains the icons in this example is:</p> <pre><code> &lt;div id="selmodule"&gt; &lt;div id="optionholder"&gt;&lt;img src="../img/pricemodules/dvd.jpg" alt="dvd" name="dvd" width="199" height="85" class="hoverswap" id="dvd" /&gt;&lt;img src="../img/pricemodules/cd.jpg" alt="compact disc" name="cd" width="212" height="85" class="hoverswap" id="cd" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;br /&gt; &lt;br /&gt; &lt;h3&gt;Changing this option &lt;br/&gt;will reset the packaging options&lt;/h3&gt; &lt;form action="sess-set-reset.php" method="get" id="firstform" &gt; &lt;input name="frmmedia" type="hidden" id="frmmedia" value="" /&gt; &lt;div id="next"&gt;&lt;input type="image" name="Submit" value="Next" src="../img/page-elements/confirm.jpg"/&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p>The code that opens the above PHP page is this (which DOES work on iPhone)</p> <pre><code>//----media elements----------------------------------------------------- jQuery(function (jQuery) { jQuery('.media').click(function (e) { e.preventDefault(); jQuery('#contentholder').load("media.php"); jQuery("#contentholder").modal({ onOpen: function (dialog) { dialog.overlay.fadeIn('fast', function () { dialog.data.hide(); dialog.container.fadeIn('fast', function () { dialog.data.slideDown('fast'); }); }); } }); }) }) </code></pre> <p>The actual page is the 'pricing' page here: <a href="http://www.discburner.co.uk/cd-duplication/pricing/sess-set-reset.php?frmmedia=1" rel="nofollow">discburner</a> Any suggestions would be greatly appreciated. Thank you</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.
 

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