Ajax problem urgently help please?

Hi all,
Can you tell me that is it possible using for when we selected a data from a select list to show the selected item results in a multiselect list.I tried but did not success.For example we select a dept name from a select list and in the multiselect list we will show the empnames for this deptno but more than ona rows.can you tell me how can ı success this?
ı am waiting your helps!

Hi,
You can replace a select list's item by doing something like the following in javascript:
function fillState(country)
     var statelist = document.getElementById("StateList");
     statelist.length=0;
     var opt = new Option;
     var statenames = getStateNames(country);
     var optioncount = 0;
     var isSelected = false;
     for (var n = 0; n < statenames.length; n++)
          opt = new Option;
          opt.value = statenames[n][0];
          opt.text = statenames[n][1];
          statelist.options[optioncount] = opt;
          optioncount++;
Without knowing more about the data you get back, I couldn't tell you how to adjust the above to suit your needs.
In this example, I have an array populated with state codes and names which I then loop through to add into the select list. The "statelist.length=0" line at the beginning clears out any previous data.
Hopefully this should give you an idea of what's needed.
Regards
Andy

Similar Messages

  • SQL problem URGENT help PLEASE

    SQL> select period_number, sum(gross_amt)
    2 from mpy_payslip_headers
    3 where payroll_year = 2001
    4 and business_group_id = 'E4'
    5 and employee_number = '366'
    6 and period_number between 12 and 13
    7 group_by period_number;
    group_by period_number
    ERROR at line 7:
    ORA-00933: SQL command not properly ended
    WHY THIS ERROR? As far as I know it is possible.
    Thanks in advance,
    Marija

    Sometimes, the most obvious things are the harder to see...
    The correct is 'order by', not 'order_by'!

  • b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b

    Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
    import java.sql.*;
    import java.sql.DriverManager;
    import java.sql.Connection;
    public class SqlConnection {
         public static void main(String[] args) {
              Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
              Connection con = DriverManager.getConnection
              ("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
              Statement stmt = con.createStatement ();// Sending a query to the database
              ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
              while (rs.next()) {
                   String man = rs.getString("1");
                   String jean = rs.getString("2");
                   String test = rs.getString("3");
                   String kok = rs.getString("4");
                   System.out.println( man, jean, test,kok );//here where my the
                                                 //compiler gives me errors
              stmt.close();
              con.close();
    }

    <b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p

  • My iPad shows a message "Cannot find AirPrint printer". I used to use my iPad to print materials using HP wireless printer D110. Now it does not want to print. Is this because I am now using IOS 7? What should I do to solve the problem? Help please.

    My iPad shows a message "Cannot find AirPrint printer". I used to use my iPad to print materials using HP wireless printer D110. Now it does not want to print. Is this because I am now using IOS 7? What should I do to solve the problem? Help please.

    Restart your WiFi router and printer by removing power for 30 seconds.

  • Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an er

    Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an error appears on the pages with video content?

    its in german:
    der Vorgang könnte nicht abgeschlossen werden.
    something like the process coundnt be completed

  • After updating to iOS 8.0.2 the App Store and iTunes have disappeared, is anyone else having this problem? Help please!

    After updating to iOS 8.0.2 the App Store and iTunes have disappeared, is anyone else having this problem? Help please!

    Well, if they have truly disappeared then something is really messed up. For really messed up stuff, you need to set it to factory default condition, and then afterwards, restore it from your backup.
    Back up and Restore your iOS Device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    iTunes: About iOS Backups
    http://support.apple.com/kb/ht4946
    Use iTunes to Restore your iOS Device to Factory Settings
    http://support.apple.com/kb/ht1414

  • HELP WITH IPHONE 4S IPHONE URGENT HELP PLEASE?

    IPHONE URGENT HELP PLEASE?
    for the whole day my network has been 'Searching...'
    i have tried airplane mode on and off, turning my phone on and off and network reset and taking sim in and out.
    so i backed up my phone and restored to factory settings as i don't think i did the option of choosing manually select a carrier.
    my network is still 'searching...' and it won't let my wifi to allow me to activate my iphone. i have tried to connect to itunes and it still won;t work.
    i keep getting a message about no activation server.
    this is a new iphone. i got it replaced on saturday.
    PLEASE SOMEONE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Hello,
    If this is a new iPhone then you will have free access, as all iPhones come with it, to Apple support. I would have them take care of an issue like this.
    Hope this helps.
    Regards,
    Jake

  • Why would you allow firefox to update computer web-browsers if you have an idea that it will no longer work after the update? And why would you not include instructions for, how to fix the problem? Help Please! Can I go back to the old one?

    Why would you allow firefox to update computer web-browsers if you have an idea that it will no longer work after the update? And why would you not include instructions for, how to fix the problem? Help Please! Can I go back to the old one?
    Ron Bell
    [email protected]

    Mozilla, like many other software companies, thoroughly test their software before releasing it to the public and I'm sure that no problem you are having is intentional.
    I do not work for Mozilla but I do have experience of releasing software for public usage.
    Firefox has no way of knowing what other software is already on your computer and with millions of combinations it isn't always possible to test for every scenario.
    You can go back to the old version of Firefox but that won't always solve your problem.
    The web site below tells you how:
    https://support.mozilla.com/en-US/kb/Installing%20a%20previous%20version%20of%20Firefox

  • Just bought Elements 13. Input serial number (starting 1057), which is not recognised and the installation stalls here. Urgent help please...

    Just bought Elements 13. Input serial number (starting 1057), which is not recognised and the installation stalls here. Urgent help please...

    Maryrhire910 I am sorry that you are facing difficulty downloading and installing Photoshop Elements 12.  Are you downloading the installation files from Download Photoshop Elements products | 13, 12, 11, 10?  If so what specific error are you receiving?

  • Just upgraded to Lion, how can i use my microsoft office especially excel.  I'm getting messages that it's no longer supported.  This is a BIG problem.  Help, please.

    Just upgraded to Lion, how can I use my microsoft office especially excel.  I'm getting messages that it's no longer supported.  This is a BIG problem.  Help, please.

    Apple has made a serious error not advising people when the Lion upgrade occurs that their present software may/will not be compatible and advise the user of such before and allow a opt out.
    All you can do (besides upgrading all your software) is backup your data off the machine (not to TimeMachine) and disconnect all drives.
    Hold c boot off the 10.6 disk and erase your makers hard drive on the far left, (that's the entire drive of everything)
    Partition tab: Option: GUID, format OS X extended and click apply so you get a new GUID (replacing the Lion one or trouble occurs later)
    Quit and install 10.6, then go through setup and use the same name as before, then update to 10.6.8
    Then c boot off the 10.6 disk again and use Disk Utility to Repair the disk the 10.6.8 update messed up.
    Then install all your programs again from fresh sources and lastly your user files in the same main user folders as before (music, pictures, documents etc.)
    Done as described will get you back just like it was before as close as possible, make SURE to use the same username or else your iTunes and other files get all messed up. Password and drive name can be different though if you wish.
    Note: if you've upgraded from 10.5 to 10.6, then you don't get the free iLife as it's not on the 10.6.3 white disks, only on the disks that came with your machine. So that will have to be purchased and reinstalled or use Pacifist to extract it from the 10.5 disks.
    This handy site can advise you what software doesn't work with the Lion.
    http://roaringapps.com/apps:table

  • Hi! I use MBP mid 2010. as per apple. I run mountain lion. Everytime I watch a videoclip on youtube, it just freezes or mostly just turns off and restarts. I tried erasing disk twice but still same problem. Help please?

    Hi! I use MBP mid 2010. I upgraded my ram to 8gb 1066 mhz as per apple. I run mountain lion. Everytime I watch a videoclip on youtube, it just freezes or mostly just turns off and restarts. I tried erasing disk twice but still same problem. Help please?

    Hi! I use MBP mid 2010. I upgraded my ram to 8gb 1066 mhz as per apple. I run mountain lion. Everytime I watch a videoclip on youtube, it just freezes or mostly just turns off and restarts. I tried erasing disk twice but still same problem. Help please?

  • Load XML in intranet ? urgent help please...

    Dear friends, I need urgent help: I have a CAYIN screen (which lets me display evetns, etc) and gives me the option of loading/displaying a FLASH (SWF) file, well, I need this SWF to load some XML data ("texto.xml") but  seems that when the CAYIN program which executes flash, does not allow the SWF to find the XML in the same folder...
    Then I tried many ways to load the XML file with no success till now. Some tries are :
    obj_xml.load("\\192.168.0.100\media\texto.xml")
    obj_xml.load("\media\texto.xml")
    obj_xml.load("texto.xml")
    obj_xml.load("../media/texto.xml")
    obj_xml.load("\\media\texto.xml")
    obj_xml.load("file:\\192.168.0.100\media\texto.xml")
    obj_xml.load("..\\192.168.0.100\media\texto.xml")
    I guess I am writting something wrong or forgetting something. Would anyone please help me ? because these files are in an internal server "192.168.0.100" (intranet).
    Urgent help please, thanks in advance,

    if the swf is in a directory with subdirectory media which contains texto.xml, use:
    obj_xml.load("media/texto.xml")

  • URGENT HELP PLEASE (MY N73 sometimes do not recive...

    i am facing this problem with my nokia n73 , sometimes if i try to open the inbox from the main window (i click on messages) , the inbox will not opened it will stay on the main window and if there is any one how sent me a message it will not be delivered even no delivery report will be shown on the sender mobile , but if i turn off then turn it on all the messages will be display, please i need your urgent help, because i send my mobile to nokia store to install a new software just before one month. because it used to hang when i use the camera.

    hi! i went to nokia yesterday and they said that the only solution is to upgrade the software but you need to do a back up coz all the data will be lost. My phone is good condition now and i can received messages without restarting my phone over and over again...
    give me also a update on after you send it to nokia center...for upgrading new software.

  • URGENT HELP PLEASE - drop index hangs on SAP

    Hi all,
    OS = Linux
    DBVersion = Oracle10.2.0.2
    Need some urgent help advise please on how to get around this problem.
    On a SAP system, am trying to drop six indexes, largest is 300MB and smallest is 50MB.
    I tried running drop index sapusername.index_name on the 50MB index via SQL*Plus and it seems to be taking forever. Can anyone please suggest if there is anything I can check on the database on why it is taking such a long time?
    I can leave it to run overnight but worried that when I come back the next day, it will still be hanged. Is there any quick way of dropping the index, .i.e. drop immediate ... :-)
    Am not using SAP's BRTOOLs as it is also hanging from there and the SAP-ADMIN had approved for the DBA to drop it from our end instead.
    Any response and advise on this will be very much appreciated.
    From Google'ing, I found some that mentioned that the fault could be because of the existence of the constraints on the table that I am dropping the index of.
    Checking the table, it has 17 SYS_ named constraints. None of these constraints have INDEX_NAME that refers to the indexes that am dropping.
    Should I disable the constraints and then run the drop index again?
    Thanks in advance.
    Edited by: user649596 on Apr 13, 2010 11:49 PM

    Should I disable the constraints and then run the drop index again?NO, certainly not !!
    Ask SAP Support on what methods you should use to diagnose the "hang" and what your next step(s) should be.
    Hemant K Chitale

  • Sound problems! help please

    My right earbud has not been working for several days, I checked the earbuds and they work-so I know for sure thats not the problem. I just finished restoring it and the right side still doesn't work. I have no idea what to do now, help please! Thanks

    Oh dear i have heard this one before its not good news what has happened it when you plug your earphones into iPod the earphones must obviously touch all connectors and what can happen to the odd person out is the tip of your earphones,
    (The right ear) can push the ipod jack connector forward so now the tip cant reach the connector, yet the bottom and middle connectors cant be pushed in because they are on the side, not the end, this is something you need to take up with apple support if your iPod is still under warrenty

Maybe you are looking for

  • Development of new functionality

    We have a requirement where we need to create a new functionality called 'Purchase Proposal' . This will be created with reference to either a shopping cart, a Bid or Live auction and will be referred while creating a PO in SRM. I am using the follow

  • What is the data type of the value returned by the List box prompt in crystal

    Post Author: Mudit Kothiyal CA Forum: Formula Hi all, I am creating a report which has a list box prompt. When I am selecting a single value from the list box the report is working fine, but when I am selecting multiple values its not returning any d

  • Mail count in the dock

    I no longer see a red count of unopened mail in the dock. I found in the settings I can click 'dock unread count' to show, but it still does not.  Suggestions?

  • How does the scrollbar know which field it lands on?

    Hi all I'm looking at components at the moment. Not how to use them but how to create them yourself to increase your workflow. When dragging a scroll component on to a dynamic textfield it automatically determines which field it land on, and populate

  • How to I add a photo to a book?

    I have completed a book but now find I want to add a photo to the cover and cannot figure out how to add the photo to the array.  How do I do this?