Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Passing parameters to an applet from a var in script

Reply
Thread Tools

Passing parameters to an applet from a var in script

 
 
Bob Moors
Guest
Posts: n/a
 
      12-06-2003
How do you make a var or function known outside of the script?

I wrote a function that returns an int, I would like to use the function to
set a parameter of an applet.
I keep getting the error "Number Format Exception parsing N_ROWS parameter"
in the MS Java Console


 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      12-08-2003
Bob Moors wrote:

> How do you make a var or function known outside of the script?


Not at all? JavaScript variables and functions cannot exist out of
JavaScript context. All you can do is pass their identifier and/or
value (separately).

> I wrote a function that returns an int,


You do not since there is no `int' type in JavaScript. You most
certainly return a value of type `number'.

> I would like to use the function to set a parameter of an applet.


Get a reference to the applet object and do it then if the DOM of
the target UA supports it.

> I keep getting the error "Number Format Exception parsing N_ROWS parameter"
> in the MS Java Console


42.

(Well, what did you expect?)


PointedEars
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Session["var"] and Session("var") thomson ASP .Net 10 06-20-2005 01:02 PM
Difference between Session["var"] and Session("var") thomson ASP .Net 0 06-20-2005 10:54 AM
Threads.. Session var lost, App var ok Alvin Bruney ASP .Net 1 12-02-2003 01:56 AM
Invoking constructor : Foo(var) and Foo ins(var) Alex Vinokur C++ 4 09-24-2003 04:01 PM
does "struct_name var = { 0 }; " fill var with 0? Fred C++ 3 08-10-2003 09:44 AM



Advertisments