| | |
Capturing data from txt file using JavaScript/HTML
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2004
Posts: 1
Reputation:
Solved Threads: 0
I have successfully converted my .tiff file to a text file. This was a major step. My issue now that i am facing is "capturing" pertinent data. I am attempting to do this by running a JavaScript to create an HTML file from the .txt file. I am having trouble figuring out how I am going to pass the argument of a .txt file and embedding it into the HTML page.
Thoughts? Anyone? Bueller? Bueller?
dano
Thoughts? Anyone? Bueller? Bueller?
dano
Not sure if this will help but a friend wrote some kind of script (.js, .class) or something of that nature to do just what you are wanting. I'll try to send him here to help you out! It was called awrite.js or jwrite.js. I know he had posted it on some java search site, just not sure which one. Once again i'll try to send him here to help you out! In the mean time try a search engine and put in awrite or jwrite. You might be able to find it on the net!
:eek: Looking 4 Java in all the wrong places!LowelGoss@msn.com
•
•
Join Date: Apr 2009
Posts: 5
Reputation:
Solved Threads: 0
I thought, Javascript can not work with FSO. It's good to see this article.
Ryan
<URL SNIPPED>
Ryan
<URL SNIPPED>
Last edited by peter_budo; May 25th, 2009 at 4:29 am. Reason: Keep It on The Site - Do not manually post "fake" signatures in your posts. Instead, you may create a sitewide signature within the user control panel.
What about JQuery?? jQuery Documentation: http://docs.jquery.com/Ajax/load#urldatacallback
If not maybe try this code:
If not maybe try this code:
PHP Syntax (Toggle Plain Text)
/*For safety reasons I would only allow the PHP file to determine the location of the file...if you want the ability to pick your file just post and I will modify my code*/ $file = "test.txt" //Test if file exists if(file_exists($file)) { //Open the file in read mode $fp = fopen($file, "r") or die("Error: Cannot open file"); //Cycle through file while(!feof($fp)) { //Return the file for AJAX to use echo fgets($fp); } } else { die("Error: Cannot find file"); }
Oh wow I didn't realize that this thread was that old. Now that I think about it....was jQuery even around back then?
•
•
•
•
Oh wow I didn't realize that this thread was that old. Now that I think about it....was jQuery even around back then?
Airshow
Last edited by Airshow; May 25th, 2009 at 12:19 pm.
Hi flash,
JQuery is made for shorthand ellaboration of Javascript lines and simplifies the way you write your programs.
And about that documentation that you've provided still uses AJAX Technology. If you will just take a good look over its frameworks, you'll see that all parts of it, is created by the method's, and properties of the Javascript language.
And also if he wants this with PHP, then im sure this query wouldn't be here in the first place.
JQuery is made for shorthand ellaboration of Javascript lines and simplifies the way you write your programs.
And about that documentation that you've provided still uses AJAX Technology. If you will just take a good look over its frameworks, you'll see that all parts of it, is created by the method's, and properties of the Javascript language.
And also if he wants this with PHP, then im sure this query wouldn't be here in the first place.
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Javascript/flash onClick Issues
- Next Thread: Control Volume of SWF from Javascript
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug captchaformproblem checkbox close codes createrange() css cursor debugger dependent disablefirebug dom download dropdown editor element engine enter error events explorer ext file firefox form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump listbox maps masterpage math media menu microsoft mp4 object onmouseoutdivproblem onreadystatechange paypal pdf php player position programming progressbar prototype redirect regex runtime safari scale scriptlets search security select size software sql text textarea unicode w3c window windowofwords windowsxp wysiwyg \n






