Community Forums 

Main Content

Linking to an Iframe

    Sep 20 2008 20:46:15

    #1

    YourMama

    Join date : 2008-09-19      Posts : 8

    Thanks to Debbie for the advice to check out the old forums for Iframe instructions. I have it set up now.

    I can't seem to figure out how to link to it, though. I keep writing and rewriting the code, but I'm not getting anywhere.

    I am trying to have a "buy it now" button linked to the iframe page, to where when you click it it automatically inputs the product information and price into the cart, just like it does when you link directly to Mal's. I've been able to get it to link to the shopping cart page, but the price is missing.

    If anyone can point me in the right direction (or would be so kind as to post an example code) it would be much appreciated!

    Thanks again!



    Sep 20 2008 21:28:44

    #2

    tom g

    Join date : 2008-09-18      Posts : 488

    Please post your code.



    Sep 20 2008 21:51:57

    #3

    YourMama

    Join date : 2008-09-19      Posts : 8

    Well, here's the UBER simple version that isn't getting me anywhere:

    <a href="http://www.sugapink.com/shopcarttest.html"; target="http://ww12.aitsafe.com/cf/add.cfm?userid=E118992&product=Test+Product&price=50.00">Click Here</a>

    and here is a basic form, but again- can't figure out where to add the information to get it to link correctly.

    <form action="http://ww12.aitsafe.com/cf/add.cfm";; method="post">
    <input type="hidden" name="userid" value="E118992">
    <input type="hidden" name="product" value="This is my 100 Try!">
    <input type="hidden" name="price" value="75.00">
    <input type="hidden" name=qty value="1">
    <input type="hidden" name="return" value="http://www.sugapink.com">;
    <input type="hidden" name="units" value="250">
    <a>Add To Cart</a>
    </form>

    This is my first time with Iframes...




    Sep 20 2008 23:23:28

    #4

    tom g

    Join date : 2008-09-18      Posts : 488

    Try changing your form tag like this:

    <form action="http://ww12.aitsafe.com/cf/add.cfm"; method="post" target="cart">



    Sep 21 2008 01:11:48

    #5

    YourMama

    Join date : 2008-09-19      Posts : 8

    Thanks Tom, but it isn't working for me. Not sure what I've done, as I've been working on this same thing literally all.day.long. My eyes are crossing over here.

    This is what I am trying to accomplish: I have items for sale, I want to allow check boxes, text areas, etc. to input information and "upsale" prior to check out. I've got that all worked out fine- however, when I click the "order" button, it takes me to the area in my store where I have the Iframe of Mal's e-cart, but it doesn't update the cart. I would post the full codes, but they are so long with all the input areas. I have the sample order page up, choose the items I want, click the order button, make it to the Iframe page, but the cart remains empty?

    :( gah. Long day!

    Thanks again to whoever can help me.




    Sep 21 2008 01:33:39

    #6

    YourMama

    Join date : 2008-09-19      Posts : 8

    Thanks Tom, but it isn't working for me. Not sure what I've done, as I've been working on this same thing literally all.day.long. My eyes are crossing over here.

    This is what I am trying to accomplish: I have items for sale, I want to allow check boxes, text areas, etc. to input information and "upsale" prior to check out. I've got that all worked out fine- however, when I click the "order" button, it takes me to the area in my store where I have the Iframe of Mal's e-cart, but it doesn't update the cart. I would post the full codes, but they are so long with all the input areas. I have the sample order page up, choose the items I want, click the order button, make it to the Iframe page, but the cart remains empty?

    :( gah. Long day!

    Thanks again to whoever can help me.




    Sep 21 2008 02:19:56

    #7

    Hotwax

    Join date : 2008-09-20      Posts : 2

    If you notice in making an Iframe page there are two pages in one. Somewhere in your main page of Iframe you will see a line similar to this <iframe name="content" width="799" height="449" src="home.html" frameborder="0" align="right">
    Sorry, you need inline frames to fully see this page.
    </iframe>

    Any page that you want to open in that imbedded space you have to tell to go to the target location "content". or what ever your Iframe name is. So your links in your main page would be set up like this <a href="somepage.html" target="content">Some Named Link</a> to pull up any page in that imbedded area of your Iframe.

    HTH ~Hotwax~



    Sep 21 2008 05:00:59

    #8

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    If you show us a link to your page we might be able to figure out the problem with your code.

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.




    Sep 21 2008 06:15:30

    #9

    GT

    Join date : 2008-09-18      Posts : 3207

    YourMama said: Well, here's the UBER simple version that isn't getting me anywhere:

    <a href="http://www.sugapink.com/shopcarttest.html"; target="http://ww12.aitsafe.com/cf/add.cfm?userid=E118992&product=Test+Product&price=50.00">Click Here</a>

    and here is a basic form, but again- can't figure out where to add the information to get it to link correctly.

    <form action="http://ww12.aitsafe.com/cf/add.cfm";; method="post">
    <input type="hidden" name="userid" value="E118992">
    <input type="hidden" name="product" value="This is my 100 Try!">
    <input type="hidden" name="price" value="75.00">
    <input type="hidden" name=qty value="1">
    <input type="hidden" name="return" value="http://www.sugapink.com">;
    <input type="hidden" name="units" value="250">
    <a>Add To Cart</a>
    </form>

    This is my first time with Iframes...


    How about:

    <a href="http://ww12.aitsafe.com/cf/add.cfm?userid=E118992&amp;product=Test+Product&amp;price=50.00&amp;qty=1&amp;return=www.sugapink.com/shopcarttest.html">Click Here</a>

    Or:

    <form action="http://ww12.aitsafe.com/cf/add.cfm"; method="post">
    <input type="hidden" name="userid" value="E118992">
    <input type="hidden" name="product" value="This is my 100 Try!">
    <input type="hidden" name="price" value="75.00">
    <input type="hidden" name="qty" value="1">
    <input type="hidden" name="return" value="http://www.sugapink.com">;
    <input type="hidden" name="units" value="250">
    <input type="submit" value="add to cart">
    </form>

    Or have I missed something???

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

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




    Sep 22 2008 19:59:28

    #10

    YourMama

    Join date : 2008-09-19      Posts : 8

    Thanks for all the help so far, everyone! I really appreciate it.

    Sorry for the delay, but I had messed with this code so much, I was sure my poor head was going to explode!

    This code seems to be working, sorta... It takes me to the order page (with the Iframe on my website), but it doesn't add them item in the cart?

    <form action="http://www.sugapink.com/order.html";; target="cart">
    <input type="hidden" name="userid" value="E118992">
    <input type="hidden" name="product" value="This is my 100 Try!">
    <input type="hidden" name="price" value="75.00">
    <input type="hidden" name="qty" value="1">
    <input type="hidden" name="return" value="http://www.sugapink.com">;;
    <input type="hidden" name="units" value="250">
    <input type="submit" value="add to cart">
    </form>

    Any ideas?



       1   |   2      »