Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Tables(Javascript)

Status
Not open for further replies.

Sa1aam

Programmer
Joined
Feb 6, 2009
Messages
5
Hello Everyone, I wondered if I could have some assistance... I just joined this forum and mayboe do not know how to go about writing a thread.

but anyway, I have created this program which scans google with a given .txt document and displays the URL's of all the words that are in the document..

I wondered if it was possible to display all the URL's in a table with a seperate column displaying each time a given URL appears incrementing automatically with a press of a button...

PLEASE I HAVE BEEN STUCK ON THIS FOR AAGES if there is any helps or tips that would be given I would welcome all :)


 
Hi

No idea what/when/how you want with that [tt]table[/tt].

Post some code or, even better, an URL to a publicly accessible version of your page/script.

Feherke.
 

Ok basically this is the part of the code that deals with searching Google and displaying the URL's If you want more code just tell me

var myArray = xmlhttp.responseText;


{
var array = myArray.split(" ");
var num=0;
while (num < array.length)
{
(array[num]);
fileContents =(array[num]);
searchControl.execute(fileContents);
num+=1;

// to do: Split fileContents into shorter strings;
// pass them one at a time to searchControl
}
}

}
}

function getFile() {
document.getElementById("hiddenFile").value =
document.getElementById("myfile").value;
var myFile = "file:///" + document.getElementById("hiddenFile").value;
xmlhttp.open('POST', myFile, true);
xmlhttp.send(null);
return false;
}


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);
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top