Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript combobox

 
Karen Berx
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using javascript in my JSP pages.
A user must be able to select items from a combobox and delete them by pushing a button. When I select all of the items and push the button, my explorer crashes.
When all the items aren't selected and I push the button, the items are deleted properly.
Does anyone know why this happens? What can I do about it?
Greetz
Karen
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karen

What does your javascript code look like? Could you post it here? Also, this maight be a better question for the Javascript and HTML forum if it doesn't concern JSPs or servlets.


------------------
Dave
Sun Certified Programmer for the Java� 2 Platform
 
Karen Berx
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
removePermissions=code behind the button to remove fieldvalues
userpermissions=combobox with items
function removePermissions()
{
var lengte2=updateuser.userpermissions.length-1;
for(var i=lengte2;i>=0;i--)
{
if(updateuser.userpermissions[i].selected)
updateuser.userpermissions.remove(i);
}
}
I have tried it also with updateuser.userpermissions.options[i]=null. With this my explorer crashes also.
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karen
It works fine on my browser - I'm running IE 5.5. I also coulnd't find anything on the remove method either, is it a new method that is only supported by a few browsers? Or supported differently between them?
sorry I couldn't help more
Dave
If you want to, go ahead and send me the entire html page or just the buttona nd combo box and I'll take a look at it that way, I mihgt have done my test page differently than yours.
[This message has been edited by Dave Vick (edited October 15, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic