Results 1 to 4 of 4

Thread: How to read xmlhttprequest file

  1. #1
    Join Date
    Apr 2009
    Posts
    68

    How to read xmlhttprequest file

    I have the javascript requirement where I have small procedure to read in an UTF-8 file with javascript using XMLHttpRequest.. I have checked the file and it is perfect.. it must be the procedure for reading in..How do i do this, do I need to embed code with my system.

  2. #2
    Join Date
    Dec 2008
    Posts
    161

    Re: How to read xmlhttprequest file

    It appears that Mozilla's version of XMLHTTP, the XMLHttpRequest object, is vulnerable to the exact same attack. XMLHttpRequest is a JavaScript object that was designed by Microsoft, adopted by Mozilla, and is now being standardized in the W3C. Netscape was informed on 24 Apr 2002 through a security form on their web site and later on through email.

  3. #3
    Join Date
    Jan 2009
    Posts
    99

    Re: How to read xmlhttprequest file

    The general idea is that a user can log in to a service, and using that login information, I can then create an individual folder for the user. It provides an easy way to retrieve data at a URL. Despite its name, XMLHttpRequest can be used to retrieve any type of data, not just XML, and it supports connections other than HTTP (including file and ftp).

    crafted by: federico.lanusse
    pantera_bleed_at_hotmail.com
    federico.lanusse_at_clarolab.com

  4. #4
    Join Date
    Apr 2008
    Posts
    193

    Re: How to read xmlhttprequest file

    I use an element array to send multiple files because it makes it easy to reference each file and send the data in one step. Here's the HTML code that is used in conjunction with the JavaScript. I also found that the onreadystatechange callback function should test the readyState variable otherwise your function gets called for each state change rather than just when it has completed loading the file.This code does several things. First, it checks to see if the filename is specified in the query string.

    xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState==4) { callback(xmlhttp.responseText); } }

Similar Threads

  1. cannot delete file -- cannot read from source file or disk
    By Amitgujaran in forum Windows XP Support
    Replies: 3
    Last Post: 11-11-2010, 09:55 PM
  2. How to create the XMLHttpRequest Object?
    By Bigga Lexx in forum Software Development
    Replies: 5
    Last Post: 29-01-2010, 07:34 PM
  3. Replies: 5
    Last Post: 05-01-2010, 05:42 PM
  4. How to read a .tex file?
    By Derwin in forum Windows Software
    Replies: 3
    Last Post: 02-04-2009, 09:46 AM
  5. XP: Cannot delete file: Cannot read from the source file or disk.
    By iexplorer0726 in forum Operating Systems
    Replies: 0
    Last Post: 10-09-2007, 05:07 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,530,344.10747 seconds with 16 queries