Community Forums 

Main Content

Re:nocart does not work on mobile version

    Nov 11 2012 11:35:59

    #1

    pcguy

    Join date : 2008-09-18      Posts : 130

    Hi Graham,

    nocart works perfect on the normal site. I jsut went your your malsforms.com and the opening page looks perfect but when you tap on any links the page shinks right down

    This was viewed on a Galaxy S3

    Here is my code to the script that won'd do the no cart correct.

    If you view www.grahamscomputers.summerland.net.au on a mobile then go to shop and add an item to the cart you will see what happens.


    <style type="text/css">
    .selectboxes {background-color:#FFE9C7}
    </style>


    <form action="http://ww11.aitsafe.com/mobile/add.php"; method="post" name="CartForm" id="CartForm" onSubmit="return CalcPrice(this, true);">

    <input type="hidden" name="userid" value="D939432">
    <input type="hidden" name="return" value="www.grahamscomputers.summerland.net.au/mobile/m.phone0.htm">;
    <input type="hidden" name="price" value="">
    <input type="hidden" name="product" value="">
    <input type="hidden" name="units" value="">
    <input type="hidden" name="qty" value="1">
    <input type="hidden" name="scode" value="">
    <input type="hidden" NAME="nocart">
    <input type="hidden" name="required" value="">

    <table border="0" style="font-size:12px; color:black; background-color:transparent" cellpadding="2" cellspacing="2">
    <tr align="left" valign="top">
    <td valign="top">&nbsp;</td>
    <td valign="top"><strong>Select model to purchase</strong></td>
    </tr>
    <tr align="left" valign="top">
    <td><strong>Model</strong></td>
    <td>
    <select name="productlaptop" class="selectboxes" style="cursor:pointer" onChange="CalcPrice(this.form)" >
    <option value="-1">Select Model</opion>
    <option value="Galaxy S3 16Gb:649.00">Galaxy S3 16Gb</option>
    <option value="Galaxy S3 32Gb:710.00">Galaxy S3 32Gb</option>
    </select>

    </td>
    </tr>

    <tr align="left" valign="top">
    <td><strong>Colour</strong></td>
    <td>
    <select name="productcolour" class="selectboxes" style="cursor:pointer" onChange="CalcPrice(this.form)" >

    <option value="... White" selected>White</option>
    <option value="... Pebble Blue">Pebble Blue</option>

    </select>
    </td>
    </tr>

    <tr align="left" valign="top">
    <td><strong>SD 16Gb</strong></td>
    <td>
    <input type="checkbox" name="productsd" style="cursor:pointer" value="... 16Gb Micro SD:19.50" onClick="CalcPrice(this.form)" />
    &nbsp;$19.50<span style="font-size:9px">&nbsp;16Gb Micro SD</span>

    </td>

    </tr>

    <tr align="left" valign="top">
    <td><strong>SD 32Gb</strong></td>
    <td>
    <input type="checkbox" name="productsd1" style="cursor:pointer" value="... 32Gb Micro SD:34.00" onClick="CalcPrice(this.form)" />
    &nbsp;$34.00<span style="font-size:9px">&nbsp;32 Gb Micro SD</span>

    </td>

    </tr>

    <tr align="left" valign="top">

    <td valign="top"><b><span style="color:#0000FF">Total $</span></b></td>
    <td valign="top">
    <input name="DisplayPrice" type="text" class="Transparent" id="DisplayPrice" style="background-color: transparent; border: solid 1px; overflow: auto; color: red; text-align: center; width:80" readonly="true" /></td>
    </tr>

    <tr align="right" valign="top">

    <td><input type="button" name="Reset" style="cursor:pointer" value="Reset" onClick="document.CartForm.reset(); CalcPrice(document.CartForm)"></td>
    <td align="left">
    <input type="submit" name="Submit" style="cursor:pointer" value="Add To Cart" onClick="alert('Item has been added to your cart\n\nPlease continue to shop or\nClick view cart to checkout.');" >
    </tr>
    </table>

    <script language="JavaScript" type="text/javascript">CalcPrice(document.CartForm);</script>
    </form>