Community Forums 

Main Content

stop page from refreshing when using 'no cart'

    Jan 17 2012 06:14:28

    #1

    Medusa

    Join date : 2011-05-22      Posts : 105

    I am using the form below, it sends items to cart but stays on the same page. My question: Is there a way to keep the page from refreshing to the top? My page is very long and when someone adds an item to the cart the page refreshes back to the top...then they have to scroll down again.
    <form action="http://wwx.aitsafe.com/cf/add.cfm"; method="post">
    <font color="#000000">
    <input type="hidden" name="userid" value="XXXXXXXX">
    <input type="hidden" name="nocart">
    <input type="hidden" name="return" value="www.medusasmakeup.com/shop-wholesale.htm">;
    <INPUT TYPE="HIDDEN" NAME="thumb" VALUE="thumb_boltdisplay.jpg">
    <input type="hidden" name="producturl" value="http://www.medusasmakeup.com/shop-wholesale.htm">;
    <input type="hidden" name="product" value="Glitter Display #1 (288 pieces of glitter)">
    <input type="hidden" name="price" value="749.00">
    <input type="image" src="http://www.medusasmakeup.com/ima/addmals.gif"; border="0" name="submit" width="54" height="29" onclick="Popup=window.open('http://www.medusasmakeup.com/popup.htm','Popup','toolbar=no,location=yes,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=100,left=400,top=250');">
    </font>
    </form>

    WWW.MEDUSASMAKEUP.COM




    Jan 17 2012 07:18:36

    #2

    GT

    Join date : 2008-09-18      Posts : 3212

    Create an anchor and send the form to that anchor.

    http://www.malsforms.com/returntoananchor.html

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Jan 17 2012 17:31:19

    #3

    Medusa

    Join date : 2011-05-22      Posts : 105

    so this line should look like:

    <input type="hidden" name="return" value="www.medusasmakeup.com/shop-wholesale.htm#pagelocation?">;

    if yes, how do I write the page location?

    WWW.MEDUSASMAKEUP.COM




    Jan 17 2012 17:41:11

    #4

    GT

    Join date : 2008-09-18      Posts : 3212

    The same as I did on my page:

    <a name="foot">foot</a>

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Jan 17 2012 18:18:18

    #5

    Medusa

    Join date : 2011-05-22      Posts : 105

    so this goes in the form?

    <input type="hidden" name="return" value="www.medusasmakeup.com/shop-wholesale.htm#foot">;

    then this goes where?
    <a name="foot">foot</a>

    do I use the word foot for a specific location on the page?

    WWW.MEDUSASMAKEUP.COM




    Jan 18 2012 02:55:47

    #6

    Medusa

    Join date : 2011-05-22      Posts : 105

    Any help would be greatly appreciated. I would like to create an anchor within this form so that the customer not only stays on the same page, but stays in the same location, after they add something to the cart.

    <form action="http://wwx.aitsafe.com/cf/add.cfm";; method="post">
    <font color="#000000">
    <input type="hidden" name="userid" value="XXXXXXXX">
    <input type="hidden" name="nocart">
    <input type="hidden" name="return" value="www.medusasmakeup.com/shop-wholesale.htm">;;
    <INPUT TYPE="HIDDEN" NAME="thumb" VALUE="thumb_boltdisplay.jpg">
    <input type="hidden" name="producturl" value="http://www.medusasmakeup.com/shop-wholesale.htm">;;
    <input type="hidden" name="product" value="Glitter Display #1 (288 pieces of glitter)">
    <input type="hidden" name="price" value="749.00">
    <input type="image" src="http://www.medusasmakeup.com/ima/addmals.gif";; border="0" name="submit" width="54" height="29" onclick="Popup=window.open('http://www.medusasmakeup.com/popup.htm','Popup','toolbar=no,location=yes,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=100,left=400,top=250');">
    </font>
    </form>

    WWW.MEDUSASMAKEUP.COM




    Jan 18 2012 05:26:16

    #7

    GT

    Join date : 2008-09-18      Posts : 3212

    OK, let's look at one product that is well down the page:

    <a name="must-haves"></a>"
    <p align="center" class="style16"><font size="3" face="Arial">Must Haves </font>
    <font face="Arial" size="2">(6 piece pre-packs)</font>
    <form action="http://ww12.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="hidden" name="userid" value="E114758">
    <input type="hidden" name="nocart">
    <input type="hidden" name="return" value="http://www.medusasmakeup.com/shop-wholesale.htm#must-haves">;
    <input type="hidden" value="1" name="qty1">
    <INPUT TYPE="HIDDEN" NAME="userid" VALUE="E114758">
    <INPUT TYPE="HIDDEN" NAME="product" VALUE="Must Haves">
    <INPUT TYPE="HIDDEN" NAME="price" VALUE="399.00">
    <span class="style12"></span>
    <p><font size="2" face="Arial">Must Haves :</font><select name="productpr1">
    <option value="Makeup Remover (6 piece pre-pack $4.00 each):24">Makeup Remover $24.00</option>
    <option value="Eyeliner Seal (6 piece pre-pack $3.00 each):18">Eyeliner Seal $18.00</option>
    <option value="Brush Cleaner (6 piece pre-pack $2.50 each):15">Brush Cleaner $15.00</option>
    <option value="Stick it! (6 piece pre-pack $3.00 each):18">Stick it! $18.00</option>
    <option value="The Fix (6 piece pre-pack $3.00 each):18">The Fix $18.00</option>
    <option value="Sifter inserts (24 piece $.25 each):6">Sifter inserts $6.00</option>
    </select></p>
    <p><input type="image" src="http://www.medusasmakeup.com/ima/addtocartmals.gif"; border="0" name="submit" width="123" height="29">
    </form>

    I would consider fixing the 366 errors on that page:
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.medusasmakeup.com%2Fshop-wholesale.htm

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Jan 18 2012 06:04:07

    #8

    Medusa

    Join date : 2011-05-22      Posts : 105

    thanks for your response, but when I copy and paste your exact form, it only keeps me on the same page, not in the same place on the page...argh, so frustrating....not sure what is wrong

    WWW.MEDUSASMAKEUP.COM




    Jan 18 2012 08:36:29

    #9

    GT

    Join date : 2008-09-18      Posts : 3212

    I don't see my example on your page:

    <p align="center" class="style16"><font size="3" face="Arial">Must Haves </font><font face="Arial" size="2">(6
    piece pre-packs)</font> <form action="http://ww12.aitsafe.com/cf/addmulti.cfm"; method="post">

    <input type="hidden" name="userid" value="E114758">
    <input type="hidden" name="return" value="http://www.medusasmakeup.com/shop-wholesale.htm">;
    <input type="hidden" value="1" name="qty1">
    <INPUT TYPE="HIDDEN" NAME="userid" VALUE="E114758"><INPUT TYPE="HIDDEN" NAME="product" VALUE="Must Haves"><INPUT TYPE="HIDDEN" NAME="price" VALUE="399.00">

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Jan 18 2012 17:02:35

    #10

    Medusa

    Join date : 2011-05-22      Posts : 105

    I just uploaded it again, it does not find the location...plus it has weird spacing and such, you can view it, It is above my original one.

    WWW.MEDUSASMAKEUP.COM




       1   |   2      »