Community Forums 

Main Content

Linking to an Iframe

    Sep 22 2008 20:04:51

    #1

    YourMama

    Join date : 2008-09-19      Posts : 8




    Sep 23 2008 23:42:06

    #2

    YourMama

    Join date : 2008-09-19      Posts : 8

    Any ideas?



    Sep 28 2008 04:05:47

    #3

    Mikluha

    Join date : 2008-09-27      Posts : 2

    I don't really understand what you're trying to achive but if you want just open Mals card inside the iframe, here is your code :


    <iframe id='CardFrameID' name='CardFrame' width=100% height=700 frameborder=1 src='blank.htm'></iframe>

    <br><br>
    <a href="#" onclick="document.getElementById('CardFrameID').src='http://ww12.aitsafe.com/cf/add.cfm?userid=E118992&amp;product=Test+Product&amp;price=50.00&amp;qty=1';return false;">
    Add product</a>

    Obviously, you don't need 'return' tag since your card inside the frame. Make sure to use "return false" to prevent link from opening something.


    If you need to do it as form, then you can use "form.onsubmit" function






       «      1   |   2