15,000 Jobs Available in:
Java, ASP, C#, PHP, SQL, SAP, MySQL and many more.
- Class Quick -
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


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?
 
developer file tools