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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Update text in body by text document

    I've now been searching and searching, simply is it possible to update the start page's text by what is standing in news.txt document owo?

    I am realtive experinced in JS thus I'm rusted in JS :C...
    Anyone who can give me an expemble on how to do this?
    Or pin-point me to which funcions is used :3?

    Have a nice day
    Zanaj

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,763
    Thanks
    23
    Thanked 548 Times in 547 Posts
    Where is news.txt located? My guess it's on the server. If yes, use a server-side language like php to read and print it to the web page, because JS is browser [client-side] based.

    and I do know of Server-side JavaScript.
    Evolution - The non-random survival of random variants.


  •  

    Posting Permissions

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