Results 1 to 11 of 11

Thread: text in text boxes.

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    Perth, Western Australia, Australia
    Posts
    38

    text in text boxes.

    Hi.

    I have been pondering how to do this but cannot come up with a decent way.

    Basically I have a news posting program which write everything to a single txt file. There is no real way of editing posts unless you just open the file it writes everything to. I am wondering if there is a way to read the txt file and split the posts into dynamically created text boxes?

    I hope this make some sense.

    Matt

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Splitting isn't such an issue if you have some (CONSTANT) points to split at.

    Can you post an excerpt of the post, and identify the key split points?

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    Perth, Western Australia, Australia
    Posts
    38
    Ok, heres and example of a post

    <!--start-->

    <title><date>

    <content>

    <!--end-->

  4. #4
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Is the source HTML?

  5. #5

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    Perth, Western Australia, Australia
    Posts
    38
    Yep. its all in HTML.

  6. #6
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    OK. To make life easier from this point on, pls zip and post a (full)
    file containing the data, or, post the URL

  7. #7
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    How are you viewing the URL?

    Are you using Webbrowser?

  8. #8

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    Perth, Western Australia, Australia
    Posts
    38
    I am at work currently, so I'm unable to upload anything, but I can post the actual file im using.

    http://www.drownedmonkey.com/news.txt

    thats how the program writes to the file.

  9. #9

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    Perth, Western Australia, Australia
    Posts
    38
    Basically my program, writes to a txt file, then uploads the txt file to the webserver, then it just uses SSI to show the data on the page. Not very complex, but pretty useful.

  10. #10
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Ok, can you spcify wich major elements you want pased out into
    TextBoxes? (HTML can be parsed)

  11. #11

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    Perth, Western Australia, Australia
    Posts
    38
    Probably, if possible...

    Title
    Date
    Body

    Thanks!

Posting Permissions

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



Click Here to Expand Forum to Full Width