Adding javascript calculator to wordpress page

Discussion in 'WordPress' started by bellcom, Apr 2, 2014.

  1. #1
    So I found a calculator that uses javascript, added it to a html page and it works fine.
    http://virtualgeorge.info/azrock/material-calc2.html

    Now I would like to add that to wordpress page but but I copy the same html into a page in WP it doesn't work.
    Get something like this:
    http://virtualgeorge.info/azrock/coverage/

    I guess wordpress filters some of the content? Would it work if I put the JS in an external file instead of on the page?

    Any tips? Thanks!!!!
     
    bellcom, Apr 2, 2014 IP
  2. bellcom

    bellcom Well-Known Member

    Messages:
    220
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Wasn't sure how to solve this so I just put he calc page in an iframe and now it works on my wordpress site.
     
    bellcom, Apr 2, 2014 IP
  3. - jeff -

    - jeff - Member

    Messages:
    63
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    38
    #3
    ha.. exactly what I was going to suggest. I always use javascript in iframes. Far easier. :)
     
    - jeff -, Apr 4, 2014 IP