Results 1 to 3 of 3

Thread: How to extract part of a script from the internet

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default How to extract part of a script from the internet

    Here is the page in question http://www.fuel-economy.co.uk/calc.html

    I am trying to extract/copy the section Real-Life Miles Per Gallon.
    Not being able to work out the formula hence need to copy it from the page.

    Any advice on how to do this would be great.

    Thanks.

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,803
    Thanks
    1
    Thanked 253 Times in 248 Posts

    Default

    Hi there theremotedr,

    checkout the attachment.

    Note:-

    The "fuelfunctions.js" file includes this heading...

    /*

    This code is copyright Fuel-Economy.co.uk 2006. Do not use
    it without consent.

    Version History
    ===============
    21/06/06 Matt Initial version - added JourneyCost, Mile<>KM,
    MPG<>L/100KM, and RequiredFuel functions.
    26/06/06 Matt Added RealMPG, Gallons

    */

    coothead
    Attached Files Attached Files
    ~ the original bald headed old fart ~

  3. #3
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Hi,

    I have now worked out the formula.
    I need to think from now on a touch.

    Thanks

Similar Threads

  1. Replies: 3
    Last Post: 11-07-2007, 06:16 AM
  2. How do I extract a part of a string?
    By jacksont123 in forum PHP
    Replies: 30
    Last Post: 02-10-2007, 04:07 PM
  3. Multi-Part Content Script Help
    By blakeman in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 04-01-2006, 12:36 AM
  4. Replies: 12
    Last Post: 07-06-2005, 01:18 AM
  5. Multi-part Content script
    By viktor in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 12-28-2004, 11:17 PM

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
  •