开发者

Advice on starting JS or JQuery for file processing

My knowledge on web technologies (JS, JQ) are limited and I want to start learning them. As a starting point I want to do some file processing. Becau开发者_Go百科se it is something I have to do for my work and was planning to do it in Java. What I basically need to do is to go through a list of text files (assembly files) in a folder and search for routines and then list them. This is the first step and is a trivial task in Java.

But I wanted to take this a step further and do it in the browser, so that others in my team also can use it without installing anything (and also to impress them a little bit in the process. since I'm the new guy in the team :-)).

So when I input the folder, the script will go through the files and search and will display results in a web page. Basically first page will be a list of files in the folder, and clicking a file name will take me to another page which displays the routines in that file.

Sorry to bother you with details, but what I actually want to know are:

  1. Is this possible with JS? (to search for text patterns in a file)

  2. Should I start with JS or JQ? (I think many would recommend starting with JS, but since this is a side project and this is done purely in my own time, would you suggest start learning JQ because it's relatively simpler to learn (from what I have read) for a beginner?

  3. Or should I just do the processing in JAva and then interface the results to a webpage

Any advice is appreciated. Thank you very much.


Java and JavaScript have nothing to do with each other, jQuery is library written to simplify usage of JavaScript with some handy shortcuts. I'm afraid JavaScript would not be able to parse text files as its main usage is manipulating content inside browser window and limited by different security policies. To parse files you have to chose server side language.


maybe you can use java to deal with the file processing, and then send the result to js script , which will show these results to users. js's ability is limited


For security reasons, JavaScript is sandboxed within the browser, and has basically no access to the local file system. From what you have described, it sounds like your best option is to use Java to process ...whatever...

This function has nothing to do with web browsing. Why is a browser the best tool for the job, anyway?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜