aspose file tools*
The moose likes Struts and the fly likes js code needed ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "js code needed ! " Watch "js code needed ! " New topic
Author

js code needed !

Arya Devan
Greenhorn

Joined: Feb 07, 2006
Posts: 28
hi all,

i need a javascript code snippet to check if the values entered in two subsequent textboxes are the same. if they are the same i need to display an alert ...

and also i m in need of a session invalidate code... as i m new to programming... plz tel me the exact way in wich i hav to include the code in my program..

thanx in advance.


Arya.
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Originally posted by Arya Devan:
hi all,

i need a javascript code snippet to check if the values entered in two subsequent textboxes are the same. if they are the same i need to display an alert ...

and also i m in need of a session invalidate code... as i m new to programming... plz tel me the exact way in wich i hav to include the code in my program..

thanx in advance.


Is the text boxes are random text boxes, i mean you do not know the text boxes names. If you know the text boxes names your job is easier.

Code looks like this:

if(formname.textbox1.value == formname.textbox2.value) {
alert("both textbox1 and textbox2 contents are equal);
}
Arya Devan
Greenhorn

Joined: Feb 07, 2006
Posts: 28
thanx reddy,

i do know the names of text boxes... but then... i m using




it gives me and error.. i dunno y....

plz help....

thanks again for the reply...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: js code needed !
 
Similar Threads
Pl explain!
MZ's guide
accessing EJB from java client Error!
Hey I too getting the error in this case
Can not display Icons when running an executable jar files.