Author Topic: maybe this javascript could be of some use  (Read 1937 times)

0 Members and 1 Guest are viewing this topic.

Offline ledufe

  • Tireless poster
  • ****
  • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
maybe this javascript could be of some use
« on: December 05, 2006, 05:36:54 AM »
well i found some information about javascript acessing files on the server(A.K.A. external file), and guess what??? i found that is possible....

here is the code to use and change and test ....

i think that this may be of some use for those who wants a shoutbox, a guest book or even some news being displayed on the hfs.

tested and only works on the internet explorer, at least until somebody help me here...

or it may be useless to all, but for sure it will be useless when hfs support any server side code.... like asp, php, cfm, ruby, cgi....

and about the code...

here i got 2 files

the content of the files is this

the html
Code: [Select]
ledufe- test of acessing a external-TXT file with javascript - Only On IE 5.5 or upper versions

<object id="ticker" classid="CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83">
        <param name="DataURL" value="news.txt">
        <param name="UseHeader" value="TRUE">
        <param name="FieldDelim" value="#">

<script type="text/javascript">
function tdcticker(){
if (tickerSet.EOF) //if end of data's file
function init(){

<h3>HFS-News Ticker</h3>
<a href="" datasrc="#ticker" datafld="messageURL" target="_blank"
style="width:230px; border:1px solid black; background-color:#d0d0d0;padding:5px">
<span id="tickerDiv" datasrc="#ticker" datafld="message"></span>
<script type="text/javascript">
if (document.all)


and here the .txt file:

Code: [Select]
HTTP File Server#
HFS Wiki#
IE-Ipanema HFS#

it may be of some use...

and here the live preview , as i said before, only works on the internet explorer
but if somebody got any free time, try to use his code with the upload function, you may be surprised with the results... or expect some news here in this post, soon as i got some time again....
sorry for this people, but i am a kind of busy these days, the end of the year is making my company to work much more than in the other seasons.....

sorry about the url error... ::)
« Last Edit: December 05, 2006, 06:01:13 AM by ledufe »

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: maybe this javascript could be of some use
« Reply #1 on: December 05, 2006, 05:45:35 AM »
correct the url ;)

Offline TSG

  • Operator
  • Tireless poster
  • *****
  • Posts: 1934
    • View Profile
    • RAWR-Designs
Re: maybe this javascript could be of some use
« Reply #2 on: December 05, 2006, 05:51:44 AM »
Very cool, strange the box doesn't work in Firefox. Is it because the DIV, or whatever it is, hasn't got a width set?

Offline Fysack

  • Tireless poster
  • ****
  • Posts: 635
  • present picture
    • View Profile
    • Admin
Re: maybe this javascript could be of some use
« Reply #3 on: December 05, 2006, 12:18:54 PM »
Nice. I like it a lot..