473,569 Members | 2,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1671

"Boki" <bo******@ms21. hinet.net> wrote in message
news:11******** *************@g 10g2000cwb.goog legroups.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.javas cript, 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.javas cript still applies....

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

"Boki" <bo******@ms21. hinet.net> wrote in message
news:11******** *************@g 10g2000cwb.goog legroups.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.javas cript, 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.javas cript still applies....

--
Rhino

May 3 '06 #3
Randall R wrote on 03 mei 2006 in microsoft.publi c.inetserver.as p.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.publi c.inetserver.as p.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
31533
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 using post and get methods. Thank you John
8
6164
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 calling-function for further handling. If I've confused you, here's the code snippet (it's within a simple Win32-Dll-project): char* buffer; //...
3
1388
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 elseif loops that read the file and extract the needed data from it. While the data is being parsed from the uploaded file a string variable is being...
10
2495
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++) { items = "item" + (i + 1);
5
2306
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 pointers... Bye
6
5614
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. char temp; std::vector<unsigned charmmessage; while (!done){
2
19842
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 iteration variable'" is the error message I'm getting for code that I think should work. I'm sure that there is some sublety I'm missing... maybe with the...
12
3000
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. The global variables and global functions are hidden to prevent from accessing by the programmers. All global functions share global variables....
12
11039
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. Here is a newbie mistake that I found myself doing (as a newbie), and that even a master programmer, the guru of this forum, Jon Skeet, missed!...
0
7698
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7970
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.