473,395 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

pass int to become a variable

Hi,

Could you please advice,

can javascript accept this kind of code?

function resone(cnt)
{
alert("document.all.txt_note"+cnt)
// cnt is the textbox index
}

txt_note are textboxs, ( name= txt_note1, name=txt_note2 .... )

There are buttons be allocated near every textboxs, when the button be
pressed, I want to get its text string.

and I have other questions:

1. does javascript do auto type conversion? ( int to string )
2. does it possible to do pass value as variable
ex:

int boki1 =0;
int a =1;
printf ("%d", boki & a.toString );

// I sure that is not C or java programming, but I want to sure that is
not doable by pass value to become a variable, I knew it should try
array, but I saw somebody is try to do this...

Best regards,
Boki.

May 3 '06 #1
3 1661

"Boki" <bo******@ms21.hinet.net> wrote in message
news:11*********************@g10g2000cwb.googlegro ups.com...
Hi,

Could you please advice,

can javascript accept this kind of code?

function resone(cnt)
{
alert("document.all.txt_note"+cnt)
// cnt is the textbox index
}

txt_note are textboxs, ( name= txt_note1, name=txt_note2 .... )

There are buttons be allocated near every textboxs, when the button be
pressed, I want to get its text string.

and I have other questions:

1. does javascript do auto type conversion? ( int to string )
2. does it possible to do pass value as variable
ex:

int boki1 =0;
int a =1;
printf ("%d", boki & a.toString );
Java and Javascript are completely unrelated languages despite the
similarity of the names. I think you should be asking this question at
comp.lang.javascript, not in a Java newsgroup.
// I sure that is not C or java programming, but I want to sure that is
not doable by pass value to become a variable, I knew it should try
array, but I saw somebody is try to do this...

Sorry, I don't even understand this paragraph but I think the advice to try
comp.lang.javascript still applies....

--
Rhino
May 3 '06 #2
Moar doable with that meal please. Ask in Javascript; theyll have a much
better response.
"Rhino" <no***********************@nospam.com> wrote in message
news:Dh*******************@news20.bellglobal.com.. .

"Boki" <bo******@ms21.hinet.net> wrote in message
news:11*********************@g10g2000cwb.googlegro ups.com...
Hi,

Could you please advice,

can javascript accept this kind of code?

function resone(cnt)
{
alert("document.all.txt_note"+cnt)
// cnt is the textbox index
}

txt_note are textboxs, ( name= txt_note1, name=txt_note2 .... )

There are buttons be allocated near every textboxs, when the button be
pressed, I want to get its text string.

and I have other questions:

1. does javascript do auto type conversion? ( int to string )
2. does it possible to do pass value as variable
ex:

int boki1 =0;
int a =1;
printf ("%d", boki & a.toString );
Java and Javascript are completely unrelated languages despite the
similarity of the names. I think you should be asking this question at
comp.lang.javascript, not in a Java newsgroup.
// I sure that is not C or java programming, but I want to sure that is
not doable by pass value to become a variable, I knew it should try
array, but I saw somebody is try to do this...

Sorry, I don't even understand this paragraph but I think the advice to

try comp.lang.javascript still applies....

--
Rhino

May 3 '06 #3
Randall R wrote on 03 mei 2006 in microsoft.public.inetserver.asp.general:
Moar doable with that meal please. Ask in Javascript; theyll have a much
better response.


And please do not include astrverside NG, like
microsoft.public.inetserver.asp.general

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John | last post by:
I would like to pass array variables between URLs but I don't know how. I know its possible with sessions, but sessions can become useless if cookies are disabled. I have unsuccessfully tried...
8
by: Ekim | last post by:
my question is as follows: I've got a DLL in which I have a method GetBuffer (this one is extern, exported, is called from outside this program) which shall pass a char-buffer to the...
3
by: thomasp | last post by:
As I sure will become obvious with the asking of this question, I am new to programing.... I have copied and pasted my way to a successful file upload page and have built some rather ugly if...
10
by: Sean Dockery | last post by:
I have the following HTML file that I've been using for testing... <html> <head> <script type="text/javascript"> <!-- function handleWindowLoad() { var items = ; for (var i = 0; i < 11; i++)...
5
by: josh | last post by:
Hi, how really work behind the scene the pass-by-reference in C++? I know that in C++ like the C the objects are passed by-values and if we want we can simulate the pass-by-reference using the...
6
by: Bobrick | last post by:
Hi. Thanks to everyone who replied to my last post, it turns out it wasn't the line where I was trying to treat the variable in question as an array which was the problem, but the line above. ...
2
by: John Kelsey | last post by:
I am an old, longtime C programmer surprised and confused by an error message I'm getting from my VS2005 compiler... "Cannot pass 'Item' as a ref or out argument because it is a 'foreach...
12
by: Bryan Parkoff | last post by:
I write my large project in C++ source code. My C++ source code contains approximate four thousand small functions. Most of them are inline. I define variables and functions in the global scope....
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.