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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: asfaw
  • Order by date
  1. asfaw

    DOM API

    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 <...
  2. asfaw

    DOM API

    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 =...
  3. asfaw

    DOM API

    How would I get the text value of span tag using DOM API: <span>Test</span> Regards, asfaw
  4. asfaw

    DOM API

    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...
  5. asfaw

    Extracting numeric values from a string variable

    Thank you all for your kind help. You have helped me a lot. Best regards, asfaw
  6. asfaw

    Extracting numeric values from a string variable

    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
  7. asfaw

    Extracting numeric values from a string variable

    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
  8. asfaw

    Loading Images from a directory

    Many thanks. I have used PHP to do it. asfaw
  9. asfaw

    Loading Images from a directory

    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
  10. asfaw

    Loading Images from a directory

    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...
  11. asfaw

    Loading Images from a directory

    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
  12. asfaw

    Compiler to use in a Windows 2000 or XP environmet

    Thank you all.
  13. asfaw

    Compiler to use in a Windows 2000 or XP environmet

    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
  14. asfaw

    String to Array

    It works. Thank you so much for your kind help. asfaw
  15. asfaw

    String to Array

    Hi Dian, Thank you for the quick response. How do you do use parseFloat. asfaw
  16. asfaw

    String to Array

    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
  17. asfaw

    String to Array

    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...
  18. asfaw

    Complex Query

    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...
  19. asfaw

    Form item insert

    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...
  20. asfaw

    MySQL password in PHP code

    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

Part and Inventory Search

Back
Top