Sa1aam
Programmer
- Feb 6, 2009
- 5
Hello Javascript gurus
I'm rather new to JavaScript and most of what I have learnt so far came from library books and internet help..
I have a plagiarism program which works by uploading a .txt file unot a webpage, then it searches each and every word of the file through google. and displays the url's of the words.
The problem I have is that I would like to store all these url's onto an array list table..which would be capable of incrementing automatically according to how often a url appears......
I have read until my eyes go sour but I honestly do not know if it anyway possible to implement my idea..
here is a snippet of coding, but If anyone needs more to fully understand how it works please respond so I can post some more...
//this code displays the urls on the body of the html page
function Click(){
var URL = document.links;
for(var i = 0; i < URL.length; i++) {
var linkHref = document.createTextNode(URL.href);
var lineBreak = document.createElement("br");
document.body.appendChild(linkHref);
document.body.appendChild(lineBreak);
}
}
thanks in advance again.
p.s. if anyone needs more code to understand how the system works please reply, I would really love some help from the higher echelons of JavaScript
I'm rather new to JavaScript and most of what I have learnt so far came from library books and internet help..
I have a plagiarism program which works by uploading a .txt file unot a webpage, then it searches each and every word of the file through google. and displays the url's of the words.
The problem I have is that I would like to store all these url's onto an array list table..which would be capable of incrementing automatically according to how often a url appears......
I have read until my eyes go sour but I honestly do not know if it anyway possible to implement my idea..
here is a snippet of coding, but If anyone needs more to fully understand how it works please respond so I can post some more...
//this code displays the urls on the body of the html page
function Click(){
var URL = document.links;
for(var i = 0; i < URL.length; i++) {
var linkHref = document.createTextNode(URL.href);
var lineBreak = document.createElement("br");
document.body.appendChild(linkHref);
document.body.appendChild(lineBreak);
}
}
thanks in advance again.
p.s. if anyone needs more code to understand how the system works please reply, I would really love some help from the higher echelons of JavaScript