Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modify existing page, display text file data on page

Status
Not open for further replies.

ChillAPAC

Technical User
May 21, 2002
37
US
I need to modify an existing page, here's what I'd like to do:
Have the javascript look for a text file on the server, if it exists then display the contents of the text file on the page in a message box with vertical scroll bars(not a popup box). If the text file doesn't exist, display nothing.

The page I'll be modifying is created dynamically from xml. I successfully added text to the banner, title, etc. I've also been able to have an alert box pop up, the problem with that is it pops up every time the user navigates around the page and it's very annoying.

Thanks,
 
Sound like a job for AJAX (reading files from a server using JavaScript and XML). This has been covered a lot recently, so you should be able to find something by using the "Search posts" function, or, failing that, Google.

Hope this helps,
Dan


[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I inadvertantly addressed this question here: thread215-1145890 (HTML & CSS Forum).

--Dave


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
O Time, Strength, Cash, and Patience! [infinity]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top