1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Facebook FBML Coding Help (please!!!!)

Discussion in 'FaceBook' started by BlackHatBill, Feb 16, 2010.

  1. BlackHatBill

    BlackHatBill Newbie

    Joined:
    Jan 31, 2008
    Messages:
    35
    Likes Received:
    71
    Hi all

    Just building a fan page and have done all design in Dreamweaver and am now pasting it into FBML tabs

    I knew I would have problems with a currency converter that I want to include. I'm just wondering if anyone could perhaps spare a minute to help me figure this code out please!

    I have the code from two sites who provide free currency converters but I can't get them to display.

    One is from CurrencyConverter.co.uk and their code is as follows:

    Code:
    <!-- CURRENCYCONVERTER.CO.UK CODE START -->
    <div id="cc_xxDIV" style="width:215px; height:230px;"><div style="text-align:center;"><p><img src="http://www.currencyconverter.co.uk/widget/images/loading.gif" alt="Loading currency converter .. please wait" /><p></p>loading<br /><a href="http://www.currencyconverter.co.uk">currency converter</a><br />please wait<br />....</div></div>
    <script type="text/javascript" src="http://www.currencyconverter.co.uk/widget/creotec.currency.html.js"></script>
    <!-- CURRENCYCONVERTER.CO.UK CODE END -->
    The other is from CurrencyConverter.com and they provide the following code:

    Code:
    <iframe allowtransparency="true" hspace="0" vspace="0" marginheight="0" marginwidth="0" src="http://widget.currency-converter.com/widget/ccwidget.html?from=GBP&to=USD&val=10&du=14400&ac=1" border="0" id="ccwidget_iframe_0" name="ccwidget_iframe_0" scrolling="no" width="200" frameborder="0" height="236"></iframe><br /><div style="font-size:10px;margin:0;padding:0;text-align:center;width:200px;"><a href="http://www.currency-converter.com/" style="text-align:center;" target="_blank">Currency Converter</a></div>
    Please can anyone help me to enable me to add this into a cell in a table that I have. basically I want it to display on the right hand side of my content but need some help!!!

    Any advice would be greatly appreciated :)

    Thanks in advance
    BHB
     
  2. WoosterOh

    WoosterOh Junior Member

    Joined:
    Mar 29, 2008
    Messages:
    173
    Likes Received:
    11
    Only way to do it is maybe in a widget, which I would think is your best bet, or they have to click something and you then can embed it.
     
  3. ghprod

    ghprod Regular Member

    Joined:
    Mar 18, 2009
    Messages:
    230
    Likes Received:
    40
    Home Page:
    well my suggest place that file into 2 html and put them in fbml using iframe like this

    <fb:iframe src="http://domain.com/frame1.html" smartsize="false" width="760" height="1500" scrolling="no" frameborder="0" ></fb:iframe>

    and repeat for second file :)

    regards
     
    • Thanks Thanks x 1
  4. WoosterOh

    WoosterOh Junior Member

    Joined:
    Mar 29, 2008
    Messages:
    173
    Likes Received:
    11
    LOL, brilliant idea
     
  5. batmanidiot

    batmanidiot Newbie

    Joined:
    Jan 7, 2011
    Messages:
    4
    Likes Received:
    0
    Occupation:
    web developer
    Location:
    ./etc/passwd/
    your include javascript not allowed

    try
    HTML:
    <script>
    //some code
    </script>
    
    or
    HTML:
    
    <script src="/foo.js"></script>
    
    and <fb:local-proxy /> at the bottom of your FBML
     
  6. adam.jn

    adam.jn Regular Member

    Joined:
    Nov 9, 2009
    Messages:
    290
    Likes Received:
    92
    Occupation:
    Student
    Location:
    UK...
    Facebook don't allow iFrames or JS in FBML, I suggest, if you want to use FBML (which is going to be discontinued soon) to make a lander page, then make it redirect to an iFrame when they click a "Click Here" button.
     
  7. Dropdown

    Dropdown Regular Member

    Joined:
    Mar 7, 2010
    Messages:
    465
    Likes Received:
    223
    Location:
    the Netherlands
    Topic is almost a year old. So back then it was still allowed.