I have a fully working listbox that I'm having troubles with. The idea is to select from the first box and add to the second box. I've done this a variety of ways and wanted to use DOM as it solves some speed issues with the other solutions if the elements in the boxes are in the thousands.
The problem I'm having may be in IE6, note how using the code below that you can move items over to the right hand side using "Add >" and it sorts it the result like a good script. But when you start to move things the other way using "< Rem" the first box is fine, but the 2nd box never bothers to remove the results! From there on, the moving is pretty much broken. I suspect this is an IE bug since if I ALT+TAB and hide the browser then go back the results are as they should be, however, perhaps I'm just doing something dumb in my code? Code:
I have an ASP.net page where I load a record set server side and upload it into a listbox. I'm trying to do all the movement functionalities of the listbox items client side. Specifically, I'm trying to figure out how to copy selected listbox items from one listbox to another -- on button click. I've searched for a while, but every example that I found moves the actual item into another listbox, I just want to copy the selected item to another listbox.
Could some one help me build a simple quick function to get the selected items in an HTML listbox and add them to a string var? I need to have the values seperated by "~"
I have a mysql database and I want to put each field's data in a listbox. all I can think about is that I need to have a SQL query to get the data but how??
I would like to sort the items regardless of uppercase/lowercase after moving them to another listbox. Here is my code, and I cannot figure out what is wrong with it.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]"> <html xmlns="[URL]" > <head> <title>Untitled Page</title> <script language="javascript" type="text/javascript"> function MoveItem(unselectedLst, selectedLst) { .....
I'm trying to loop through a listbox that is runat="server" (to get all the values of the items inside the listbox regarless of if they are selected or not). Now i have searched for hours on end and still don't find anything (all the examples is just for the selected items....). What is a the correct way of doing this. O, i want to do it with jQuery preferably.
I am trying to select all of the items in a multiselect listbox using a checkbox and and the change event. I have it working correctly but the problem is that it is extremely slow. There are about 420 items in the listbox loaded from a d.b. I noticed that the scroll bar also scrolls when the items are selected which i dont want.
i'm after some script to display some html depending on what is selected in a list box the html i want to display are checkboxes so it's more stuff for a form i'm using lotus notes, so i have to use javascript.
i can get it to display a checkbox if a particular item is selected but it won't show up in place, it loads a new page with the check box the only thing on that new page.
function updateChecks() { string = ""; if (document._WEBRequest.dataReq.value == "blah") { string = "<input type="checkbox" name="check" />"; string += "Boundary"; } return string; } function writeChecks() { document.write(updateChecks()); } the writeChecks() function is called onChange for the listbox
also don't have much clue as to how to make it show more checkboxes if more than one item is selected in the listbox.
I have a website at: [URL] The page works on Google Chrome, Mozilla Firefox, and IE-9. It sort-of works on IE-8, however, the problem is that on IE-8, there is about 2 seconds where everything is shown on top of everything else in a mess. This is bad.
The website is unusual in that it uses a menu to slide screens from right to left. This has implications. For instance, I need the menu to appear on all screens, so I use absolute positioning, and then use javascript to calculate the center position. The same goes for a logo image. And on top of that, some screens (which are really DIVs) have items positioned by absolute and relative positioning within them, and those positions are often calculated via javascript (and then set).
On IE-8, the result is not good. I think what is happening is that the browser first shows everything as it appears before javascript is run, and then slowly the javascript is run, which puts everything in the correct position. So initially, not only is everything in the wrong position, but different DIVs appear on top of each other.
I have countries listbox, for instance if i choose singapore listbox it should display the corresponding states listbox of singapore, if i chose anyother country it should display a label saying "ENTER STATE" followed by a blank textbox.
version of Apycom's jQuery menu; you can find itat http://apycom.com/ and it is looking really good.I have uploaded files, and published it on a test site - www.flexin.beUnfortunately, some of the submenus starting from the second that haschildren elements, it adds the item on the top level in InternetExplorer.Does anyone on this list has any experience with this library?
I may be reaching now, but I was wondering if there was a method that would tell me whether my list box contains a value. I know you can do it with an ArrayList in JAVA, but I was wonder if you could do it with a Select List in JavaScript. For example - Array List in Java.
I am trying to populate a listbox using Javascript. The listbox is populated using the xml response from ajax request. But i am facing performance issue here. some ajax requests retrieves xmls with around 11,000 nodes and this takes too much of time to populate the listbox.
I wrote the following code. So when the user presses the button it should select the second item in the list box. Would someone mind helping me fix this code so it works? Code:
Basically I am using asp for my coding, but what I have is a listbox that is 459px long, I need to show a status, some text and the last updated time. but rather then having it like this
I got a listbox and textfield, if i choose the second option in the listbox the nearby textfield should be disabled otherwise the nearby textfield should be enabled.