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
alert(data);
output - 5.1,0.1,2.4,1.7,0.5,3.0,0.9,1.8,2.1,0.7
alert(numbers);
output:
5.1,0.1,2.4,1.7,0.5,3.0,0.9,1.8,2.1,0.7
alert(numbers.length);
output:
10
However, the function call to function median(set) returns NaN.
Thank you.
asfaw
Hello all,
For the life of me I can not figure out why the following code does not work. Please note that when I replace
var data = new String(prompt("Please enter sample numbers separated by a comma",""));
var numbers = data.split(",");
with :
var numbers = new...
Hello all,
I have the following MyISAM tables:
Forum
(forumid, name, description)
Post
(postid, forumid, userid, topicid, subject, message, date)
Topic
(topicid, userid, forumid, subject)
User
(userid, login, password)
I am trying to get a list of all the forums groupd by forum name, total...
I am new to Javascript. My question my question my be basic to most of you. I have a form to enter name and e-mail address.
Name E-mail
What I wanted to do is the following:
1. Give the user to be able to insert more one lines to add name and e-mail i.e. when the form opens, it has lets...
I am sorry. I am trying to make it simple. I have done some reseach and it may be the version of PHP and MySQL I am using. I am using PHP5 with MySQL 4.1.3b.
Thank you very much for you help.
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.