Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    More Detailed Find and Replace

    Hello all, my name is Yury and i do some light coding here and there when i have large tasks and want to finish them quicker!
    I tried searching through the site and google for many many Find and replace scripts in both VB and Javascript, but the ones i found werent really savvy to what i was looking for.

    Basically This is what im looking for, and if ANYONE could provide ANY help i would greatly appreciate it. At least point me in the right direction to start.

    Im looking to write a general find and replace script, and here is what i want it to do...

    I have top100.xls which is a spreadsheet with the top 100 cities in California sorted by population.

    I have an html File where I have "Los Angeles" as the header, lets call it variable X.

    What im looking to do is have this script is take every city (1-100) in the list, replace variable X with that city name, and save (output/write) it as X.htm

    Again, any help appreciated

  • #2
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    bump?

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    Javascript cannot read from or write to a file. You need to do this server-side using PHP.

  • #4
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i dont want this to be server side.
    i need this program to run from this computer, and output to this computer


  •  

    Posting Permissions

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