Thank you all. I was able to use your help and came out with the following answer that works in both IE6 and FireFox1.0.7.
function getTextValue() {
var table = document.getElementById("Table1");
var spanTag = table.getElementsByTagName("span");
for (i = 8; i <...
Thank you Tracy. What would be the syntax to get the value the textnode that is a child of the span?
Assumming I have more than one span tag in the document this is the code I started with:
function flag() {
var text = "";
var spanTag =...
I am trying to read a table (table id= "Table1") in a document and find all instances of tag names "span" extract the value contained in each span tag.
I used the following and it does not work:
function flag() {
var text = ""
var table1 = document.getElementById("Table1");
var...
I am not sure I understand your response. You have not used str in the return statement. I am not sure why.
function blah(str) {
return parseFloat(/[,]/g.replace(""));
}
Regards,
asfaw
How can I remove a comma in string e.g. 1,256.50
I would like to remove the ',' and store 1256.50 in a new variable. What I am trying to do is get the numeric value.
Regards,
asfaw
Thank you for your kind help. I know it can be done using Serverside scripting e.g. PHP. I was wondering where it can be done using client side JavaScript. I wll just use ServerSide.
Many thanks and best regards.
asfaw
Thank you all. All the files are in one folder - if I were to specify the directory where the files are may I be able to put all the files an an array? i.e. all the files are on the server. When the client goes to the specified page I want the browser to access the files on the server and put...
Is there a way (JavaScript) to load (offscreen images and caching) images in a particular directory on the webserver. The directory could be "images/". I would like to do this without specifying the file name. I would like to do this using Javascript
Your help is very much appreciated.
asfaw
Hello all,
What do I need to have to learn c. I would appreciate if you can suggest a compiler that works on Windows 2000 and XP. I do not need an IDE.
Thank you.
asfaw
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.