Can I display a calculate value on a text box? Continued...

  • Profile Image
    Asked on October 30, 2013 at 05:46 PM

    Hey guys, the "http" to "https" didn't work, I'm goint to upload all what I did so you know better what's my problem:

    Before, I'll explain that the tab used to work, what we did then was copy all the source code + script and paste it on the static html then it was display normal, but when you clic on "submit" the form did nothing... that's why I follow your instructions about uploading it on a server... here the steps I did:

    1. Upload my form code + script on a free server

    2. iframe it on FB with this code, changing the http for https: <iframe allowtransparency="true" src="" frameborder="0" style="width:100%; height:1400px; border:none;" scrolling="auto"></iframe>

    3. I tried the tab before post it but gives me this error:

    4. If I change the https to http it only display all in white

    Thanks for all the help and I hope to be less anoying on the next one jaja :S

  • Profile Image
    Answered on October 30, 2013 at 07:02 PM

    Hi there!

    Thank you for your very detailed explanation. That's greatly appreciated!

    1. Embedding the form source code directly on the static html tab won't work. Simply because FB will stripped off the form scripts and styles probably due to their security restrictions. Note that these scripts and styles are required in order for the form to run properly.

    2. doesn't seem to support HTTPS that's why it won't work or displays on FB.


    Anyway, I have now applied the codes directly to your form. This seems a bit tricky but it should now be fine. You can now embed the form directly to your FB page or you can use the following iframe code.

    <iframe allowtransparency="true" src="" frameborder="0" style="width:100%; height:1455px; border:none;" scrolling="no"></iframe>

    Let us know if you encounter any problems. Thanks!

  • Profile Image
    Answered on October 31, 2013 at 04:45 PM

    Thankyou! I bother you with one last thing... When I introduce 100, the calculate value says 1.20 and thats not acurate, maybe you put the old code, the one you pass to me first. The code that work is:


    //calculation script

    var basefield  = document.getElementById('input_11');

    basefield.onkeyup = function(){

      var totalfield = document.getElementById('input_12');


      totalfield.value = ((basefield.value * 1) + (basefield.value * 0.2)).toFixed(2);




    If you can change it please. The easy way to verify if its working is introducing the value "100" to the text so the calculate answer should be 120 :) thank you so much!

  • Profile Image
    Answered on October 31, 2013 at 04:58 PM

    Forget bout it, it works fine... it's on my computer were it calculate it wrong, tried another computer and worked ok :S sorry I bother so much. Thanks for everything!

  • Profile Image
    Answered on October 31, 2013 at 09:39 PM

    Hello KetZalPromos,

    I am glad to know that your form now works as expected.

    Do get back to us if you have any questions.

    Thank you!