File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Is class level variable accessible in Javascript function? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Is class level variable accessible in Javascript function?" Watch "Is class level variable accessible in Javascript function?" New topic
Author

Is class level variable accessible in Javascript function?

vaibhav punekar
Ranch Hand

Joined: Jan 20, 2001
Posts: 134
I m trying to use the String variable defined at tha class level that stores the value fetched form tthe database.suppose 'login'.Now I m comparing this 'login' in Javascript fn,to give the error message in case the 'login' already exists.It is giving error that 'loginname' not defined.Can't I use servlet variable in Javascript fn.Is their any simpler way to achieve this validation?Thanks.


VAIBHAV <BR>SCJP
 
 
subject: Is class level variable accessible in Javascript function?
 
Threads others viewed
Famous "Object expected"error,Wishing Browser Independent
Please explain final
Isn't this contradictory ?
assignment operator
Application level variables in Struts 1.1
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com