howto JavaScript take HTML input variable -- continuous
Please copy & paste the following code (it is SOME text input)
My trouble was cannot take document.table1.aX.value where X is something~ Code:
<script language="javascript"> I try to explain the design, each row doing the same thing: SUM of text input. I would like to have a JavaScript function / module for MANY rowS. So the JavaScript function has 1 input parameter to tell which row. |
Hello,
JavaScript does not allow call by reference parameters so you can't do document.table1.aX and expect X to represent the value. Instead it represents an element named "aX" :D Accept my proposal ;) |
JavaScript can do much job at client side, IF I got a text file AT CLIENT side machine, I mean the file is NOT at web server but at user machine, I would like to open the file by browser WITHOUT network
another JS question, can anyone show me reference link on howto: open .txt text file in JavaScript please? |
|
You shouldn't reuse old topics though.
|
Assume that having NO networking, NO internet...
Can I using a browser to open/read a file? like .txt file type or any other file type? Well, I know I can open file(s) by click File -> open -> browse the file(s) in directory inside harddisk Answer: following link: http://stackoverflow.com/questions/1...-in-javascript http://stackoverflow.com/questions/1...ocal-text-file |
further asking
please help if anyone know... JavaScript onclick()
onclick() working on <a href=link></a> tag? reference: http://www.w3schools.com/jsref/event_onclick.asp |
Sure, it works:
Code:
<html> Quote:
|
thank you for replying, furthermore saying... below the code:
Code:
<script> onclick text or a href link THEN... popup the content by JavaScript function f1() thank you and see if above clear? |
Something like
Code:
for(ii=0;ii<11;ii++) I have to check it out but I think that j will be successively X01, X02, X03 ... X09, X10 and so on |
All times are GMT -5. The time now is 10:49 AM. |