I was working on an application where I needed to pull text from various file types html, txt, xml, doc, docx, xsl, and ppt.
I figured out the html and txt. Is it possible to handle XML like the activeXObject will handle it from a local system, but from files stored on the server? I was working with ajax using :
- $.get(infile, function(data){
- if(data)
- {
- document.getElementById("input").innerHTML = data;
- }
- else {
- document.getElementById("input").innerHTML = "Error reading file";
- }
- });
which seems to work fine for html and text files. So I just wondered if anyone has ever messed with anything like this. the code above will spit out doc files with the words in there someplace mixed in with crazy characters, which I supposed I could loop through and pull out only words that are alphanumeric. But that would be super slow. Just curious if anyone has ever tried to do this. I've seen places like Monster that takes your doc file and reads it, then throws it into forms or a textfield so it can be done I suppose.