aspose file tools*
The moose likes Servlets and the fly likes javascript combobox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "javascript combobox" Watch "javascript combobox" New topic
Author

javascript combobox

Karen Berx
Greenhorn

Joined: Oct 15, 2001
Posts: 3
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

Joined: May 10, 2001
Posts: 3244
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


Dave
Karen Berx
Greenhorn

Joined: Oct 15, 2001
Posts: 3
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

Joined: May 10, 2001
Posts: 3244
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).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javascript combobox
 
Similar Threads
ComboBox component (not JComboBox)
ComboBox - don't show all items
checkbox and multibox
ComboBox component (not JComboBox)
Jlist on Popupmenu