Hai All,
While using a javascript in my servlet prg. gives an error,
Anybody help pls me in this regard,
Problem:
i hv two list boxes with multiselect option i am trying to move selected
text from one to another when i click a button , it's working with some
problem ,Here variable(*itemslen*) returns a number but, when i using that
it
gives Error ..in IE as well as Netscape
sourse code is here;
function move()
{
var mvfrom=3Dfrom.selectedIndex;
var mvto=3Dto.selectedIndex;
// alert(mvfrom + ":" +mvto);
// alert(from.options[mvfrom].text);
// *** Here is the problem ****
itemslen=3DparseInt(to.length);
alert(itemslen);
document.f1.multi2.options[itemslen].text=
document.f1.multi1.options[document.f1.multi1.selectedIndex].text;
}
but, when i directly put number no props.,
ie.,
document.f1.multi2.options[3].text...
Thanks in Advance
-siva baskar
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html