Results 1 to 3 of 3

Thread: Javascript - Problem with accountancy calculators in Safari

  1. #1
    Join Date
    Sep 2011
    Location
    Heywood
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Javascript - Problem with accountancy calculators in Safari

    Hi Everyone

    I am wondering if anyone can help...
    I am currently working on a site(url: currently on www.fayelittlewood.co.uk)
    I have had some help with the code as I am more of a designer than a coder.

    I have some accountancy calculators on my page
    http://www.fayelittlewood.co.uk/calculators.html
    It seems to work fine in internet explorer but when you fill in your information in any other browser nothing happens when you click submit

    Has anyone got any ideas what the problem could be, I am presuming it is a javascript problem but I may be wrong?

    Thanks in advance

    Faye

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    On vatcalculator.html the script (presumably the one for doing the calculations) is linked in with this tag:

    Code:
    <script src="C:\Users\Faye\Desktop/vat_20percent.js" type="text/javascript"></script>
    That script is on your computer. So it won't work in any browser, except one on your computer. Furthermore IE is the only browser that will read a path, even one on the local machine, that uses the \.

    I imagine the other calculators suffer from the same issue.

    Put that and the other calculator scripts on the server if you haven't already and change the src attribute of the above and the corresponding script tags to point to their locations on the server.

    The browser cache may need to be cleared and/or the page refreshed to see changes.

    And, there could be other problems with other browsers. At least we know the script works in IE. But this much needs to be done for it to even have a chance of working in those other browsers, any browser really, unless it happens to be IE and happens to be on your computer.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    f_m_lil (09-29-2011)

  4. #3
    Join Date
    Sep 2011
    Location
    Heywood
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Brilliant! Did what you said and now works fine in other browsers. Thanks for your help

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •