Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

pass int to become a variable

Thread view: 
Boki - 03 May 2006 03:04 GMT
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.
Rhino - 03 May 2006 05:27 GMT
> Hi,
>
[quoted text clipped - 22 lines]
> 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
Randall R - 03 May 2006 08:19 GMT
Moar doable with that meal please.  Ask in Javascript; theyll have a much
better response.

> > Hi,
> >
[quoted text clipped - 36 lines]
> --
> Rhino
Evertjan. - 03 May 2006 09:10 GMT
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

Signature

Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.