Drop down in mozilla firefox is not working

hi,
i am new to javascript.i am getting an problem in mozilla firefox(Mozilla/5.0 Firefox/2.0.0.2).i am sending the piece of code. dropdown in IE is working fine when u click on up or down button.but problem occuring is in mozilla it is not moving down(dropdown)it is sticking on the top itself...plz check the code and help in giving the solution for it....
<html>
<head>
<script type="text/javascript">
function moveUp(frm)
    if(frm.FieldlocatorSelectedList.selectedIndex!=null && frm.FieldlocatorSelectedList.selectedIndex!=-1)
    if (frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].index > 0)
        var selValue = frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].value;
        var selText = frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].text;
        var topValue = frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex-1].value;
        var topText = frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex-1].text;
        frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].value=topValue;
        frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].text=topText;
        frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex-1].value=selValue;
        frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex-1].text=selText;
        var ct=frm.FieldlocatorSelectedList.selectedIndex
        frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].selected=false;
        frm.FieldlocatorSelectedList.options[ct-1].selected=true;
    else
        alert ('Can\'t move up.  Top item is selected');
function moveDown(frm)
    if(frm.FieldlocatorSelectedList.selectedIndex!=null && frm.FieldlocatorSelectedList.selectedIndex!=-1)
        if (frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].index <
        (frm.FieldlocatorSelectedList.length-1))
            var selValue = frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].value;
            var selText = frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].text;
            var topValue = frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex+1].value;
            var topText = frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex+1].text;
            frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].value=topValue;
            frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].text=topText;
               frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex+1].value=selValue;
            frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex+1].text=selText;
            var ct=frm.FieldlocatorSelectedList.selectedIndex;
            frm.FieldlocatorSelectedList.options[frm.FieldlocatorSelectedList.selectedIndex].selected=false;       
            frm.FieldlocatorSelectedList.options[ct+1].selected=true;
        else
            alert ('Can\'t move down.  Bottom item is selected');
</script>
</head>
<body>
<form name="addInfoFrm">
<td class="bodytextbld" width="250">
<select id="FieldlocatorSelectedList" multiple="" name="selectedList" size="10">
<option value="OWNR_1_LABEL=Owner 1 Label($ 0.0/M)">Owner 1 Label($ 0.0/M)</option>
<option value="OWNR_1_LAST_NAME=Owner 1 Last Name($ 0.0/M)">Owner 1 Last Name($ 0.0/M)</option>
<option value="OWNR_1_FIRST_NAME=Owner 1 First Name($ 0.0/M)">Owner 1 First Name($ 0.0/M)</option>
<option value="OWNR_1_MIDDLE_NAME=Owner 1 Middle Name($ 0.0/M)">Owner 1 Middle Name($ 0.0/M)</option>
<option value="OWNR_2_LABEL=Owner 2 Label($ 0.0/M)">Owner 2 Label($ 0.0/M)</option>
<option value="OWNR_1_NAME_SFX=Owner 1 Suffix($ 0.0/M)">Owner 1 Suffix($ 0.0/M)</option>
<option value="OWNR_2_LAST_NAME=Owner 2 Last Name($ 0.0/M)">Owner 2 Last Name($ 0.0/M)</option>
<option value="OWNR_2_FIRST_NAME=Owner 2 First Name($ 0.0/M)">Owner 2 First Name($ 0.0/M)</option>
<option value="OWNR_2_MIDDLE_NAME=Owner 2 Middle Name($ 0.0/M)">Owner 2 Middle Name($ 0.0/M)</option>
<option value="OWNR_2_NAME_SFX=Owner 2 Suffix($ 0.0/M)">Owner 2 Suffix($ 0.0/M)</option>
<option value="OWNR_CARE_OF_NAME=Owner Care Of($ 0.0/M)">Owner Care Of($ 0.0/M)</option>
<option value="MAIL_ADDR_TXT=Mail Address($ 0.0/M)">Mail Address($ 0.0/M)</option>
<option value="MAIL_ADDR_CITY=Mail City($ 0.0/M)">Mail City($ 0.0/M)</option>
<option value="MAIL_ADDR_STATE=Mail State($ 0.0/M)">Mail State($ 0.0/M)</option>
<option value="MAIL_ADDR_ZIP_CODE=Mail Zip($ 0.0/M)">Mail Zip($ 0.0/M)</option>
<option value="MAIL_ADDR_ZIP_4=Mail Zip+4($ 0.0/M)">Mail Zip+4($ 0.0/M)</option>
<option value="MAIL_ADDR_CARR_RTE=Mail Carrier Route($ 0.0/M)">Mail Carrier Route($ 0.0/M)</option>
<option value="PROPERTY_ADDRESS=Property Address($ 0.0/M)">Property Address($ 0.0/M)</option>
<option value="SITE_HOUSE_NBR=Property House Number($ 0.0/M)">Property House Number($ 0.0/M)</option>
<input  type="button" onclick="moveUp(document.addInfoFrm)" value="Up"/>
<input  type="button" onclick="moveDown(document.addInfoFrm)" value="Down"/>
</select>
</form>
</body>
</html>plz help me in that.........

He don't want to scroll, but he want to move items.
Anyway, there are enough mozillacompatible Javascript examples available on the Internet. See Google (1st hit). This has nothing to do with JSP or JSTL.

Similar Messages

  • Why is my Mozilla Firefox toolbar not working? The weather icon has not updated in weeks!!

    For over a week I've had a terrible time accessing the web via Mozilla Firefox, so went back to using IE. Tried again today, and things seem to be fine, EXCEPT that the weather icon on my Mozilla Firefox tool bar is still not updating to the current conditions. It hasn't updated in weeks. What is happening?

    * Update Firefox to the latest version 10 -> [[Installing Firefox]]
    * [[Add-ons are disabled after updating Firefox#w_check-for-new-versions-of-your-add-ons|Check for new versions of your add-ons]]
    Check and tell if its working.
    May not be related to your problem but some of your Firefox Plugins are out-dated
    * Update All your Firefox Plugins -> [https://www.mozilla.org/en-US/plugincheck/]
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • "Classic ReTweet Button For Mozilla Firefox" is not working on Twitter. Anybody else having this problem?

    I have written extensively about this "Classic Retweet Button For Mozilla Firefox" and have it installed on all my computers and laptops. It does not seem to be working. Did Twitter disable this sometime over the weekend and this is another of their tricks to force people to use their crappy retweet button? Or is this just a temporary glitch? The button I refer to is here: https://addons.mozilla.org/en-US/firefox/addon/classic-retweet/ It was developed by Jon Pierce and very useful, saves a lot of time, and works great. https://addons.mozilla.org/en-US/firefox/user/4848588/

    Please bring issues with add-ons up with the add-on developer. I'm going to lock this thread.

  • Mozilla Firefox will not work today on our computer?

    We paid for and have been using Firefox and today it is gone?

    Could you provide some more info?
    Which Firefox Browser version were you using?
    When you say 'gone' please elaborate? Is there a shortcut icon on your desktop or taskbar? When you click on 'Start' and view your list of Programs is there Mozilla Firefox in the list? When you click on 'Computer' and choose C: drive and then 'Programs', can you see Mozilla Firefox in the list? If you open the 'Control panel' and select 'programs and Features' is Mozilla Firefox in the list?
    If the product has been uninstalled then it will not be on the computer and not in the list, but it can easily be reinstalled.
    If the application is in the list, but not as a shortcut on the desktop, then you can easily create a shortcut and put it on the desktop.
    Firefox is an open source free browser created by a global community. You can read about them under the 'About' link. They do not charge. It is free. So you did not pay for this Browser.
    please answer the queries so that we can help you.

  • Get / Put commands in site drop down menu greyed out and not working

    Re: Dreamweaver CS4
    About a year ago my get and put commands greyed out and stopped working.  I called my webhost and they were no help, they did say that they moved my site to a new (linux) server about the same time.  I have applied all the correct settings on my configure server window and when I hit test it connects successfully.
    I have been posting over the last year using Firefox FTP but am making quite a few changes and it's making me crazy going back and forth.  Anyone have any ideas?

    Closing this question out, the MacBook reverted to normal behavior sometime since I posted the problem and this post. No clue why.

  • Toolbar Drop-Down Box for rectangle etc not working

    Dropdown boxes for Toolbar (Pan, Transform, rectangle, Bezier, rectangle Mask) do not respond. The tools on right hand side of the bar (Add Generator, Behavior, Filter) are OK. I am using OSX 10.8.5 and motion 5.07.

    By the shear nature of a dropdown list, only one value may be returned as it is for one and only one field.
    If you need to return multiple values, you would need to create a modal screen with a table control on it and set options to allow the user multiple selected rows, which you would then recognize with an 'X' in the SEL field you add to the internal table and table control.

  • After navigating (sometimes downloading pictures, sometimes not) for approximately 10 minutes, I can no longer see contents of drop down menues, then Firefox freezes up and I have to use Ctrl/Alt/Delete to end my internet experience.

    After navigating (sometimes downloading pictures, sometimes not) for approximately 10 minutes, I can no longer see contents of drop down menus, then Firefox freezes up and I have to use Ctrl/Alt/Delete to end my internet experience.
    == This happened ==
    Every time Firefox opened
    == After upgrading to 3.6

    Step by step, how did you arrive at seeing this agreement?

  • I am trying to complete a form but can't get to the final drop down question as it is not displayed because it falls below where my screen ends.  i have tried changing the resolution but that doesn't work.  any suggestions?

    i am trying to complete a form but can't get to the final drop down question as it is not displayed because it falls below where my screen ends.  i have tried changing the resolution but that doesn't work.  any suggestions?

    brilliant
    google chrome works where safari doesn't on my macbook air.  many thanks
    i now have an embarrassing qu.  have dowloaded spider solitaire (sad!) and i can't add cards at the bottom of a column for the same reason - the display cuts short.  i have tried to extend it with the arrows in the bottom corners but it makes no difference.  any ideas?

  • Right-click, drop-down menus in Firefox 15 cause entire Mac OS 10.7.4 system to hang, forcing manual reboot.

    I bought a new MacBook Pro.
    I am running Mac OS 10.7.4 with Firefox 15. Every time I right click or try to use a drop-down menu in Firefox, it causes the entire system to hang, forcing a manual reboot.
    No crash reports are available as the Firefox does not actually crash.
    I have tried
    1.) Starting Firefox in safe mode
    2.) Disabling all the add-ons
    3.) Resetting Firefox
    4.) Removing and re-installing Firefox
    5.) Disabling hardware acceleration
    The problem still occurs.
    This is critical a critical issue as I have been using Firefox's Zotero plugin to write my PhD dissertation which is about 50% complete and now I cannot use Firefox or the Zotero plugin and have about 800 references I do not want to have to manually re-enter!! Also it is preventing me from continuing work on the dissertation as I am unable to insert references, and I have submit this thing by March!!!!

    Ok, further developments. Still can't get Firefox to work; it makes Lion hang and I have to force a reboot. I tried using terminal to open FF's profile manager, delete my old profile and make a new one. Same problem.
    I tried making a new user account in Mac OS, and doing another fresh install of Firefox. It worked! I was able to use drop down menus and right click without crashing the system!
    However, as soon as I installed the Zotero plugin... the same issue started occurring again.
    Dear programmers, please help me. It will literally take me weeks of work to re-do all of my citations using a different software or manually. There must be a way to fix this problem!

  • I tried down loading mozilla firefox to use as a web browser. It was downloaded 100% then when prompted to "run" the error message comes up with a red cross and the message'This file is corrupted" and won't let me proceed. What do I do now?

    I tried down loading mozilla firefox to use as a web browser. It was downloaded 100% then when prompted to "run" An error message comes up with a red cross and the message'This file is corrupted" and won't let me proceed. What do I do now?

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    You can try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See http://kb.mozillazine.org/Unable_to_save_or_download_files

  • When I open my computer and use it for a period of time it freezes up and it say Mozilla Firefox is not responding. What should I do with this?

    This happened several times already that my computer freezes up and it says Mozilla Firefox is not responding. When this happen it takes a long time before I can use my computer, I would say one hour or sometimes it takes 2 hours. When it takes like 30 minutes of freezing up what I do is I force the computer to shut down by pressing start button.
    And Ihttps://support.mozilla.com/media/img/markup/page_link.png wait for 3 to 5 minutes than I press the start button again to open the computer. When computer open up the Toshiba starts loading up all files after that I can use the computer for a while. I don't if there's something wrong with my computer or something else. I have Window Vista home premium.
    Please help.
    Thanks

    Apple Does Not recommend that. Please Read.
    http://support.apple.com/kb/HT1490
    From that article
    "Portables with built-in batteries"
    Current Apple portable computer batteries are pre-calibrated and do not require the calibration procedure outlined in this article. These computers use batteries that should be replaced only by an Apple Authorized Service Provider.
    MacBook 
    MacBook (13-inch, Late 2009) and later
    MacBook Air
    MacBook Air (all models)
    MacBook Pro
    MacBook Pro with Retina display (all models)
    MacBook Pro (13-inch, Mid 2009) and later
    MacBook Pro (15-inch, Mid 2009) and later
    MacBook Pro (17-inch, Early 2009) and later
    Thanks.
    Allan Mac wrote:
    Apple recommend calibrating the battery when you buy a new Macbook and then every few months, or monthly if it used on mains all the time. This, as Apple says is to keep the battery operating at maximum efficiency. When the battery discharges and shuts the macbook down, it still has reserve power for a good number of hours. There is also a logic board battery to hold various settings.
    I rather think I will take Apples advice on using their equipment not yours, but I would be intrigued to discover what is it you know that Apple doesnt about its batteries?
    Allan

  • Adobe Form... Is there a way to use a drop down menu to highlight or note other fields...

    I am working on a simple Adobe form.  I am currently trying to figure out if there is a way to use the answers of a drop down menu to either mark, note or highlight 14 other fields.  There are 9 possibilities in the drop down menu, include a blank and NONE.
    For example if the drop down menu is set to 1, then field 9, 10 and 14 are marked, noted or highlighted. 
    Is this possible with a script?
    Thank you in advance for any help! 

    Have you looked at the properties that are available to form fields. I would look at setting the fill color or border color for a form field. Either of these can be done with Acrobat JavaScript.

  • I keep getting "Unable to connect" for my firefox. It was working yesterday and I turned my computer off. I can get to the web using internet explorer 9. I don't know why my firefox is not working. Everything else is working. HELP....

    I keep getting "Unable to connect" for my firefox. It was working yesterday and I turned my computer off. I can get to the web using internet explorer 9. I don't know why my firefox is not working. Everything else is working.

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls

  • When iam using jdownloader for dowload, the firefox did not work at any page, as like there in no internet conexion?

    When iam using jdownloader for dowload, the firefox did not work at any page, as like`` there in no internet conexion?``

    you need to check whether '''jdownloader''' is compatible with the Firefox version you are using.
    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Tools Menu -> Add-ons -> Extension section -> check the Status of '''jdownloader''' extension -> if '''an update''' is available for this add-on then install the update -> Restart Firefox and check again check the compatibility -> if it is '''GREYED with Exclamation mark''' then it is incompatible with Firefox
    Try using this extension to force compatibility.
    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    Check and tell if its working.

  • I downloaded Firefox 4 and tried to launch it. The message said that Firefox will not work with this version of Mac OX. Please advise.

    I downloaded Firefox 4 and installed it. When I tried to launch it, a message came up saying that Firefox will not work with this version of Mac OSX. Now I have no Firefox. How can I get Firefox 3.6 back on my Mac? How can I make Firefox 4.0 work? Please advise.

    Thanks for the reply so quickly! Is the tenfourfox going to be be just as safe and as high of quality as the Firefox 4? Also since Mozilla's website says, "Firefox 3.6.x will be maintained with security and stability updates for a short amount of time. All users are strongly encouraged to upgrade to Firefox 4" does that mean if I go back to 3.6 there will be security and stability issues after a "short amount of time"?

Maybe you are looking for