Results 1 to 2 of 2

Thread: [RESOLVED] can javascript read file?

Threaded View

  1. #1

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    Resolved [RESOLVED] can javascript read file?

    Hi,
    I tried to read a text file useing javascript..but it seems not to work
    I tried two methods but neither works..
    I will be happy if you can help me out...
    thanks


    VB Code:
    1. <html>
    2. <body>
    3. <script>
    4. var fname;
    5. function winOpen(fname) {  
    6.  
    7.  
    8. window.open(""+fname+"","toolbar=no,status=no,menubar=no,scrollbars=yes,left=50,top=100,width=250,height=400")
    9. }    
    10. </script>
    11. <a href="javascript:winOpen('text.txt')">my text file to read</a>
    12. <form>
    13. <input type=button value="read this text file" onClick="winOpen('text1.txt')"
    14. </form>
    15. </body>
    16. </html>
    Last edited by merhaba; Jan 15th, 2006 at 01:33 PM.

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