Java drop down menu, target frame

Hi everyone...I'm brand new to this and found how to make this menu by searching the web. I need my links to open in a new frame, but can't find how to do it. Can you help? Thanks!
<form method="POST" name="currents">
  <p><select name="currentslist" size="1">
    <option> Regional Conditions (including Missouri) </option>
    <option> Arkansas Conditions </option>
    <option> Regional Radar </option>
    <option> Regional Satellite </option>
    <option> Daily Report, Small Arkansas Cities </option>
  </select> <input type="button" name="B1" value="Go">
   <SCRIPT FOR="B1" EVENT="onClick" LANGUAGE="VBScript">
   select case document.currents.currentslist.selectedindex
     case 0
      navigate("http://www.crh.noaa.gov/product.php?site=CRH&product=HRR&issuedby=SGF")
     case 1
      navigate("http://www.srh.noaa.gov/lzk/cgi-bin/wxs1.php?pil=rwr&max=13")
     case 2
      navigate("http://bimedia.ftp.clickability.com/kytvwebftp/kytv_regional_radar.jpg")
     case 3
      navigate("http://bimedia.ftp.clickability.com/kytvwebftp/kytv_satellite.jpg")
     case 4
      navigate("http://www.srh.noaa.gov/data/LZK/AGOLZK")
   end select
   </SCRIPT>
  </form>

This is just a reformat of the original:
http://forum.java.sun.com/thread.jspa?threadID=708646

Similar Messages

  • Importing Bridge Web Gallery into template with java drop down menu

    The iframe option from the tutorial David Powers referred readers to in the Bridge discussion board was easy and looks great....  EXCEPT the iframe covers up my java script dropdown navigation menu.  Is there an easy way to fix this, or do I have to use the more cumbersome alternate method?
    I built my site using a template I created in Dreamweaver. This complicates using the alternate method described in the David Powers tutorial which adds page elements to the index.html file created by Bridge.  How do I take what I need from that file and place it into the page based on my site's template?
    (Sorry to repeat my question in both discussion boards.  Got a not-very-helpful direction from the moderator of the other discussion board to ask the question here instead of there.)

    I should probably add that i am working in asp!

  • ACR 5.2 Targeted Adjustment Tool has no drop down menu

    Hello
    I've just started playing with Camera Raw 5.2 and I cannot get a drop down menu for the targeted adjustment tool. When I click on it the icon remains "depressed" and I enter the tone mode. In order to get to the other modes, I have to move to the appropriate tab.
    I guess I could use the key board short-cuts but I would like to know why I don't get a drop down menu.
    Geoffrey Pocock

    How amazingly simple - just a bit strange as drop-down menus usually appear on a single click - thank you very much
    Geoffrey Pocock

  • Linking to page in main frame from drop down menu movieclip

    I have a drop down menu movie clip on the 3rd frame with links that I want to link to pages on the main frame. I tried linking them the same way as if they were on the same main frame but I'm guessing it's not working because the drop down menu is on a sub frame of the movie clip. Any way around this?

    In AS3, _parent and _root are replaced by parent and root.  And almost always in implementing them you need to caste them as object types.  Try using...
    MovieClip(this.root).gotoAndStop("3");

  • Drop Down Menu Problem

    I followed the instructions on cssmenumaker.com, made my menu, downloaded, FTP'd menu folder to site root, placed code in a HTML snippet & published.
    Menu displays on the page, and works, until you actually click a link. The associated page loads in the snippet frame, (unless the link is designated to load in a new window.)
    To be safe, the menu was placed on one page only, a test scratch page that is sort of hidden in the site.
    Here's the link to it. http://www.realtyphotosnw.com/SCRATCH.html
    I'm a shooter, not a coder. Just doing the menu was foreign to me. I have too many pages now to not use a drop down menu. Ideally, I need to make changes to the site and hopefully click to publish without having to manually re-code a page each time it gets a change. Maybe that's wishful thinking, but that's the goal.
    Any help or recommendations are greatly appreciated. Thank You in advance.
    Chris

    Bonjour
    In the code, replace
    target="_self"
    by
    target="_top"

  • Need help please with drop down menu

    AS2 I created a drop down menu for my portfolio. my setup is my site mc, within that mc it my portfolio and the drop down menu with five buttons. I want to link on of those button not to the root, but in the same area as the drop down menu/ this is how it is set up.
    sceen1 and inside sceen1 is navebar with the drop down menu. Inside the menu are my buttons. I dont need it to link at the root(sceen1) I need to link one of the buttons to a frame in the navbar area. Sorry and I hope you can understand what I wrote.

    What code have you tried?  Where do you have the code planted?  If you plant all of the code in one place, such as the main timeline then it might be easier for you to manage targeting whichever objects you intend to.

  • Drop Down Menu Component

    I have completed a tutorial for a drop down menu. I test the
    movie and clicking on a submenu item named Save under a main menu
    heading named File and using a trace action, correctly identifies
    the item as shown in the attached code. However, I don't know how
    to use this result to then proceed to a movie clip named "Save".
    (These are just sample names for my trials.) I would have thought
    if I put a movie clip named Save with a frame label "Save", I could
    just replace the trace (e) code with gotoAndPlay(e); The logic is
    working to a point, as when I do this, I get a compiler error
    saying there is no label "Save" on Scene 1, so Flash is attempting
    to find the correct target. This is the compiler message
    "[MenuEvent type="itemSelected" bubbles=false cancelable=false
    eventPhase=2 menuIndex=0 menuLabel="File" itemIndex=1
    itemLabel="Save"]
    ArgumentError: Error #2109: Frame label [MenuEvent
    type="itemSelected" bubbles=false cancelable=false eventPhase=2
    menuIndex=0 menuLabel="File" itemIndex=1 itemLabel="Save"] not
    found in scene Scene 1.
    at flash.display::MovieClip/gotoAndPlay()
    at test_fla::MainTimeline/handleItemSelected()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    fl.example::MenuBar/fl.example:MenuBar::menuMouseHandler()"
    I am wondering if a frame label and an indexLabel are two
    different things?
    I am using Action Script 3 strictly. Anybody out there with
    any ideas?
    Thank you.

    Can you post a link to an example page where the menu is duplicated? Also, what version of GoLive are you using? The first thing that comes to mind is that the ID that the script relies on is being changed by GoLive to make it unique for each Component... why that results in it being duplicated I don't know yet, unless the script doesn't find what it's looking for, and then generates it automatically.

  • Drop down menu and null pointer exception

    I am trying to build a drop down menu that gives you options on sorting a list (eg. it sorts on the Title) . The drop down must show which sort option has been selected after the sort occurs.
    I keep getting a "java.lang.NullPointerException". I realize this error arises from not assigning a variable to a specific object in java. I'm a .net developer who got thrown into customixing a java application and I just don't see the error. The error message didn't say on which line this occured but it is in the posted code.
    It worked for a while and now i gives me this error.
    Can someone help me please!?!?
    <%String     strCheck = new String("");%>                     </td>
                    <form action="ChangeSorting.jsp?recordView=<jsp:getProperty name='CumulusBean' property='recordView'/>" id="changeSortingForm" target="invisibleFrame" method="POST">
                         <td>
                   <select name="uid" size="1" onChange="document.getElementById('changeSortingForm').submit();">
                   <%if (session.getAttribute( "theUid" ).equals ("{1e58eab1-f625-4d6b-be82-ef0ea493cb7a}"))  {
                   strCheck = ("selected");
                    }%>
              <option value="{1e58eab1-f625-4d6b-be82-ef0ea493cb7a}"<%=strCheck%> >
                Title          </option>
    </form>     Thanks,
    Luis

    This is not JSF ..
    Anyway, it looks like that the following code returns nullsession.getAttribute( "theUid" )and invoking the equals() on it thus causes a NullPointerException.
    So check if this attribute really exists in the session and add a nullpointer check to the code. For example:if (session.getAttribute("theUid") != null && session.getAttribute("theUid").equals("blah")) { }

  • Drop down menu or combo box in jtable

    Hi there I nee urgent help I have a jtable and I am collecting information to populate the table dynamically, the problem is I some of the strings that populate certain cells is longer the the width of the cell in a particular column, I thought I could use a combo box and split the strings up so I could have some type of drop down menu showing the information, but when I populate the combo box and instantiate the defaultcell renderer with the combobox it sets all cells in that column with the same information I would like to have it displaying the actual information for every row within that column
    or if you can give me any ideas as to how I can avoid this happening or maybe an alternative method of showing these long strings in the table some kind of drop down.
    Kind Regards Michael

    the problem is I some of the strings that populate certain cells is longer the the width of the cell in a particular column,Set a tooltip to display the entire text of the cell. Here is a simple example;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TableToolTip extends JFrame
         public TableToolTip()
              Object[][] data = { {"1234567890qwertyuiop", "A"}, {"2", "B"}, {"3", "C"} };
              String[] columnNames = {"Number","Letter"};
              JTable table = new JTable(data, columnNames)
                   public String getToolTipText( MouseEvent e )
                        int row = rowAtPoint( e.getPoint() );
                        int column = columnAtPoint( e.getPoint() );
                        Object value = getValueAt(row, column);
                        return value == null ? null : value.toString();
              JScrollPane scrollPane = new JScrollPane( table );
              getContentPane().add( scrollPane );
         public static void main(String[] args)
              TableToolTip frame = new TableToolTip();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.setSize(150, 100);
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }If you want to get fancier than you could set the tooltip text only when the width of the text is greater than the width of the column. Here is an example of this is done with a text field. You would need to modify the code to refer the to table for the text string and the TableColumn for the width.:
    JTextField textField = new JTextField(15)
         public String getToolTipText(MouseEvent e)
              FontMetrics fm = getFontMetrics( getFont() );
              String text = getText();
              int textWidth = fm.stringWidth( text );
              return (textWidth > getSize().width ? text : null);
    textField.setToolTipText(" ");
    I thought I could use a combo box and split the strings up so I could have some type of drop down menu showing the informationIf you want to proceed with this approach then check out this posting:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=637581

  • Autocomplete does not work (no drop-down-menu)

    Hi all
    I'm trying to setup the autocomplete-input, but it doesn't
    work. When I type anything into the textbox, the animated image
    beside the box shows activity and I see the submitted data from the
    backend in debug mode, but the drop-down-menu with the matching
    records does not appear.
    if I build a static list of possible choices in the
    cfinput-tag, it works.
    my cfc returns an array and this is serialized as JSON in the
    calling backend-template (see code below). In source code view of
    the html-page, I see lots of java-script and CSS inserted into the
    page.
    any ideas?
    stefan
    calling template:
    <cfsilent>
    <cfscript>
    //Get Query
    locationArray =
    application.addressDao.findLocation(url.term);
    </cfscript>
    </cfsilent>
    <cfoutput>#serializeJSON(locationArray)#</cfoutput>
    relevant part of CFC:
    <cfloop query="qLocations">
    <cfset arrayAppend(records, fPLZ & " " &
    fOrtschaft)>
    </cfloop>
    <cfreturn records/>
    form-page:
    <cfform action="" method="post" name="editForm"
    id="editForm">
    Dynamische Auswahlliste: <br />
    <cfinput type="text" name="ziplocation"
    autosuggest="url:ajaxLocationAutoComplete.cfm?term={cfautosuggestvalue}"
    autosuggestMinLength="3" maxResultsDisplay="10"><br
    />
    <br />
    </cfform>

    Rather a general answer I am afraid, as I can not see an obvious problem & solution:
    # Note for any one off problems with sites it is always worth clearing cookies for that site and cache [[How to clear the Firefox cache]] &[[Delete cookies to remove the information websites have stored on your computer]]
    # Try in safemode (see [[Troubleshoot Firefox issues using Safe Mode]]) that is accessible from your Firefox Button. (but at this stage do not yet try the reset)
    #* next try in safemode and also disable the java plugin that you have (Safe mode disables extensions not plugins)
    #* for info: note Java and Javascript are different animals: http://kb.mozillazine.org/JavaScript_is_not_Java
    # if the above do not help then try the Firefox reset, '''but''' be aware you will loose open tabs, extensions, and certain preferences, you may need to bookmark things first so you can find them again see [[Reset Firefox – easily fix most problems]]

  • Made a drop down menu. How can I get the drop down to fade in and out? !

    Hi guys!
    I've created a drop down menu (with the help of you legends on here! )...Now I just need it to animate so when the user hovers over the main menu item, the drop down fades in.
    Here's the HTML I have...
        <ul id="nav">
            <li><a href="#">Nav 1</a></li>
            <li><a href="#">Nav 2</a></li>
            <li><a href="#">Nav 3</a>
                <ul>
                    <li><a href="#">&raquo; Sub Menu 1</a></li>
                    <li><a href="#">&raquo; Sub Menu 2</a></li>
                    <li><a href="#">&raquo; Sub Menu 3</a></li>
                    <li><a href="#">&raquo; Sub Menu 4</a></li>
                </ul>
            </li>
            <li><a href="#">Nav 5</a></li>
            <li><a href="#">Nav 6</a></li>
        </ul>
    ...and here's my CSS...
    ul#nav {width:920px; height:35px; list-style:none; padding:0; margin:0; background:url(navBg.jpg) repeat-x; z-index:999;}
    ul#nav li a:hover, #nav li a:active {background:url(navOn.jpg) repeat-x; text-decoration:none;}
    ul#nav li a {color:#E0E2E7; display:inline-block; float:left; margin:0; padding:10px 19px; width:auto; text-decoration:none;}
    * html #nav li {display:inline; float:left; }  /* for IE 6 */
    * + html #nav li {display:inline; float:left; }  /* for IE 7 */
    #nav ul {width:208px; left:-9999em; list-style:none; margin:35px 0; padding:0; position:absolute; z-index:999;}
    #nav li:hover ul {left:auto;}
    #nav li {float:left;}
    #nav li li a {width:190px; background-color:#efefef; color:#2e2e2e; padding:8px; margin:0; }
    #nav li li a:hover {background-color:#000; background-image:none; color:#FFF;}
    #nav li:hover {background:url(assets/images/frame/navOn.jpg);}
    From what I can make out, I assume I need either Javascript or JQuery...
    Does anyone know how I can get the drop down to fade in and out?
    Thank you very much and I hope to hear from you.
    SM

    Yes, you'll need a client-side script to do fade-in/fade-out fx.  Look at jQuery Superfish.
    http://users.tpg.com.au/j_birch/plugins/superfish/#examples
    Nancy O.

  • How do I select a range of values in MySQL using a drop down menu

    Hi,
    I have a database of picture frames that have a value of
    frame width. I want to be able to select a range of values (i.e.
    .50" to 1") instead of each and every value (i.e. .50", .56", .76",
    etc.). I have a drop down menu (mnuWidth) with 5 ranges (see
    attached code).
    Each selection has a value from 1 to 5 indicating the range I
    want to search. In my results page I have let DW set up a recordset
    (see attached code)
    Can anyone tell me how to get this to choose a range instead
    of just the value entered by my menu?
    Thanks in advance.
    Tom

    I have been growing fond of lookup tables. Your lookup table would have your numbers in one column and the values you want returned in the next.
    Lookup table
    item
    Name
    1
    a
    2
    b
    3
    c
    4
    d
    5
    e
    6
    f
    7
    g
    8
    h
    9
    i
    Input table
    input
    Name
    1
    a
    B2 and copied down:
    LOOKUP(A2,lookup::$A$2:$A$11,lookup::$B$2:$B$11)
    Caution: Lookup will return the closest value so it it looks for "10" in this example it will return "i"
    If you don't want to see the error messages from blank inputs, wrap Lookup in IFERROR.
    hope this helps
    q

  • How do I create a drop down menu with Code Snippets and Flash CS5?

    Hi
    I am wondering how to create a drop down menu using the Code Snippets and CS5?
    There are some older tutorials out there and it would be nice if someone could create an updated drop down menu tutorial, and it might be me doing this after I have figured out the best and easiest way to create one, but before that I need some pointers.
    Thanks!
    Have a great day!
    Paal Joachim

    You can use panel widget to create manual menu where set to show target on rollover.
    Something like this :
    http://muse.adobe.com/exchange-library/menu-vertical-accordion-widget-1
    http://muse.adobe.com/exchange-library/tiptop-navigation-menu
    Thanks,
    Sanjit

  • How do I create a drop down menu with multiple items in Adobe Acrobat 9?

    I am trying to create a drop down menu with four items within a field box.  When I try to do this
    the font is too big and it just doesn't fit.

    You can use panel widget to create manual menu where set to show target on rollover.
    Something like this :
    http://muse.adobe.com/exchange-library/menu-vertical-accordion-widget-1
    http://muse.adobe.com/exchange-library/tiptop-navigation-menu
    Thanks,
    Sanjit

  • How Can I Put Multiple Columns in a Drop-Down Menu?

    We are trying to put multiple columns in a drop-down menu, similar to what is on these web sites...
    http://www.cabelas.com/
    http://www.target.com/  (This site has the multiple columns on the Women, Home, Kitching & Dining, Toys, Electronics, and See More categories).
    If anyone has any suggestions for coding, please reply.
    Thank you.
    Wil Radcliffe

    As an <li> tag is not a block level element like a <p> or <div> tag you can store a <div> container within the <li> tag and create an element in that menu item and us the following tutorial to create multiple columns depending on the ordering:
    http://www.alistapart.com/articles/multicolumnlists
    Depending on your target browser you could also use the CSS3 column-count to define the amount of columns.  But with just a quick glance at this I would say it only works in the the later versions of Firefox, Chrome, Safari and IE9+.
    http://www.w3schools.com/cssref/css3_pr_column-count.asp

Maybe you are looking for

  • How do I change permissions for the documents and files on my Mac Book Pro after I re-instaalled the HD using a Time Machine back-up?

    I had to re-install the HD on my Mac Book Pro. I used a Time Machine back-up for all the apps and files. Most were restored, However, I cannot unlock a number of them. I tried changing the permissions using Get info but it is not working. I am using

  • My ipod classic no longer syncs

    My iPod no longer syncs with iTunes

  • Ear files in different VM

    Hi, I know that the J2EE technology allow developers to deploy an application on a multitier model. The middle tier can be divided in more separated tiers, so it is possible to deploy the war files (containing the web-tier presentation logic modules)

  • DESFORMAT=SPREADSHEET

    Hi, I have a report which can give more than 36000 rows. The output has to be in Excel format. So, I tried DESFORMAT=SPREADSHEET. It works. But, when the result is more than 36000 rows, it just freezes. Is there a way to specify ReportBuilder to send

  • Header disappears when mail merge

    I'm having a really bizarre problem with mail merge on Pages. When I mail merge, all my fields work, everything else is fine. Except, on every second page, my header is missing. I just can't see why, and I can't find any solutions anywhere. I can man