-
Non Ticker version of Ajax XML Ticker (txt file source)?
I want to read a txt file uploaded to the same server as the web page and display the entire contents on the web page. The txt file will look like:
Company Code Letter (like D)
Company Name
Company Address Line 1
Company Address Line 2
City, ST Zip
Phone
Member Name 1
Member Name 2
Member Name x
cr&lf
Next Company Code Letter
Next Company Name
etc
etc
There can be as many as 25-200 companies listed in the text file. How many ever there are will be displayed on the Web page in one long list, not a ticker. There can be a variable number of member names associated with each company. This is an alternative to a Database solution so that the user can maintain and upload the txt list himself.
-
-
The current script uses javascript's built in XML handling functions. Therefore, no, you need to use XML with this.
You could, however, use the same script as-is, by adding an intermediate step: use a language like PHP (or any other serverside language) to read the text file and generate an XML document from it and output that instead. Then just read that output using JS, and you're done.
If not, you'd need to do the same using Javascript and that's possible, but basically is beyond what this script does: you'd need to rewrite most of it.
Hope that helps.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
-
Thanks, I understand the options. I guess it will be easier to just use Php to input and display the text file rather than use it only to rewrite the text file into XML.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks