Trouble with my dropdown menu

I'm new to Java and I am getting pretty frustrated. I need a drop-down menu in my calculator and I'm probably doing this all wrong.
When I compile my code, I don't get any errors but when I run it, I get:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at mortgagePaymentAmount.mortgagePaymentAmount(mortgagePaymentAmount.java:50)
at mortgagePaymentAmount.<init>(mortgagePaymentAmount.java:27)
at mortgagePaymentAmount$4.run(mortgagePaymentAmount.java:243)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:598)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Here is my code. Can someone please help me out? Thank you.
import java.lang.*;
import java.text.DecimalFormat;
import javax.swing.*;   
public class mortgagePaymentAmount extends javax.swing.JFrame
  public mortgagePaymentAmount()
  mortgagePaymentAmount();
  private void mortgagePaymentAmount()
  /*From http://java.sun.com/docs/books/tutorial/uiswing/learn/index.html*/
  /*Fields for user to input data and labels on the side of the fields*/
  //Amount of mortgage
  loanAmountTextField = new javax.swing.JTextField();
  loanAmountLabel = new javax.swing.JLabel();
  //Term of mortgage
  monthsTextField = new javax.swing.JTextField();
  monthsLabel = new javax.swing.JLabel();
  //Interest rate
  interestTextField = new javax.swing.JTextField();
  interestLabel = new javax.swing.JLabel();
  menuBar = new javax.swing.JMenuBar();
  frame.setJMenuBar(menuBar);
  menu = new javax.swing.JMenu("Menu Label");
  item1 = new javax.swing.JMenuItem("Item Label 1");
  item2 = new javax.swing.JMenuItem("Item Label 2");  
  //Calculate
  calcButton = new javax.swing.JButton();
  calcButton.setText("Calculate");
  calcButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    { calcButtonActionPerformed(evt); }
  //Reset
  resetButton = new javax.swing.JButton();
  resetButton.setText("Reset form");
  resetButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    { resetButtonActionPerformed(evt); }
  //Quit
  quitButton = new javax.swing.JButton();
  quitButton.setText("Quit");
  quitButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    { quitButtonActionPerformed(evt); }
  //Monthly payment amount display
  monthlyPaymentLabel = new javax.swing.JLabel();
  setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  //Title
  setTitle("Mortgage Calculator v2.3");
  //Labels for each field
  loanAmountLabel.setText("Amount of Mortgage (no commas)");
  monthsLabel.setText("Term of Mortgage (in years)");
  interestLabel.setText("% interest rate");
  monthlyPaymentLabel.setText("Monthly payment amount");
  //Layout of buttons using
  //http://java.sun.com/docs/books/tutorial/uiswing/examples/learn/CelsiusConverterProject/src/learn/CelsiusConverterGUI.java
  //as my template
  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  getContentPane().setLayout(layout);
  layout.setHorizontalGroup(  //Horizontal positioning
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
      .addContainerGap()
      .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
        //Loan amount field and label position
        .addGroup(layout.createSequentialGroup()
          .addComponent(loanAmountTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
          .addComponent(loanAmountLabel))
         //Months field and label position
        .addGroup(layout.createSequentialGroup()
          .addComponent(monthsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
          .addComponent(monthsLabel))
        //Interest field and label position 
        .addGroup(layout.createSequentialGroup()
          .addComponent(interestTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
          .addComponent(interestLabel))
        //Menu bar
        .addGroup(layout.createSequentialGroup()
          .addComponent(menuBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
          .addComponent(menuBar))
        //Calculate button           
        .addGroup(layout.createSequentialGroup()
          .addComponent(calcButton)
          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
          .addComponent(monthlyPaymentLabel))
        //Reset button           
        .addGroup(layout.createSequentialGroup()
          .addComponent(resetButton)
          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
          .addComponent(monthlyPaymentLabel))
        //Quit button           
        .addGroup(layout.createSequentialGroup()
          .addComponent(quitButton)
          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
          .addComponent(monthlyPaymentLabel)))
      .addContainerGap(30, Short.MAX_VALUE)) //length
  layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {item2, item1, menu, menuBar, resetButton, quitButton, calcButton, loanAmountTextField, monthsTextField, interestTextField});   
  layout.setVerticalGroup( //Vertical positioning
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
      .addContainerGap()
      //Loan amount field and label position
      .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
        .addComponent(loanAmountTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        .addComponent(loanAmountLabel))
      //Months field and label position         
      .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
        .addComponent(monthsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        .addComponent(monthsLabel))
      //Interest field and label position 
      .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
        .addComponent(interestTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        .addComponent(interestLabel))
      //Menu bar
      .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
        .addComponent(menuBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        .addComponent(menuBar))
      //Calculate button           
      .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
      .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
        .addComponent(calcButton)
        .addComponent(monthlyPaymentLabel))
      //Reset button
      .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
      .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
        .addComponent(resetButton))
      //Quit button
      .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
      .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
        .addComponent(quitButton))
    .addContainerGap(20, Short.MAX_VALUE)) //height
    pack(); 
  //Calculation action
  private void calcButtonActionPerformed(java.awt.event.ActionEvent evt)
  DecimalFormat df = new DecimalFormat("0.##");  //DecimalFormat derived from http://forum.java.sun.com/ to make no more than two decimal places.
  //My calcuations
  double months = ((Double.parseDouble(monthsTextField.getText())) * 12); //months calculated into years
  double loanAmount = (Double.parseDouble(loanAmountTextField.getText()) );
  double interest = ((Double.parseDouble(interestTextField.getText())) / 100); //interest decimal calculated into percentage
  double monthlyAmount = (loanAmount * (interest/12.0))/(1 - 1 /Math.pow((1 + interest/12.0), months));
  monthlyPaymentLabel.setText(df.format(monthlyAmount) + " Monthly payment amount");  //output
  //Reset action
  private void resetButtonActionPerformed(java.awt.event.ActionEvent evt)
  new mortgagePaymentAmount().setVisible(true);
  //Quit action
  private void quitButtonActionPerformed(java.awt.event.ActionEvent evt)
  System.exit(0);
  //Run the program
  public static void main(String args[])
  java.awt.EventQueue.invokeLater(new Runnable()
    public void run()
      new mortgagePaymentAmount().setVisible(true);
    //variables
    private javax.swing.JLabel loanAmountLabel;
    private javax.swing.JLabel monthsLabel;
    private javax.swing.JLabel interestLabel;
    private javax.swing.JFrame frame;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JMenu menu;
    private javax.swing.JMenuItem item1;
    private javax.swing.JMenuItem item2;
    private javax.swing.JButton calcButton;
    private javax.swing.JLabel monthlyPaymentLabel;
    private javax.swing.JTextField loanAmountTextField;
    private javax.swing.JTextField monthsTextField;
    private javax.swing.JTextField interestTextField;
    private javax.swing.JButton quitButton;
    private javax.swing.JButton resetButton;
}

Don't be scared of actually reading these stacktraces - a lot of the time they give you all you need to solve your problem. This one tells you that there's a NullPointerException at line 50 of your class - you're trying to do something to, or call a method on, something that doesn't exist.

Similar Messages

  • IE 7 - CSS Issues with Spry dropdown Menu *HELP*

    I am using a spry horizontal dropdown menu generated in DW. The menus look consistant in all other browsers except ie7 -  When the drop down menu occurs they all appear to the right and not directly under its menu item.. Looked around in the Css and i cant seem to find the right rule to make the change in ie7 only... was planning on using a css conditional statement to shift them left.. But im not having any luck.. HELP!
    Thanks so much in advance!

    Sorry.. Here is the link.. Thanks so much for your willingness to help!
    http://soldesign.us/_working/WEBSITE_BoulderPlasticSurgery/index.html

  • I am having trouble with the navigation menu

    I edited a template and I published it online earlier, but when I click the buttons on the menu, they take me to the unedited indexes instead of the pages that I created. What did I do wrong? Here is the site: www.brilliantbrightsmiles.com
    Thank you

    when I click the buttons on the menu, they take me to the unedited indexes instead of the pages that I created. What did I do wrong?
    * did you upload the edited pages?
    * did you upload them to the correct location?

  • More fun with enumerated dropdowns - Binding to table

    Hi All,
    I'm having some trouble with enumerated dropdowns.
    My context is as follows:
    node DATA 1...1
    ---> node FLIGHTS 0...N
       -->CARRID etc from SFLIGHTS
    --->DDL (element type string)
    I have successfully tried to add a simple dropdown with the following code on the component controller:
    method wddoinit .
        data lo_nd_data type ref to if_wd_context_node.
        data lo_el_data type ref to if_wd_context_element.
        data ls_data type wd_this->element_data.
        data lv_ddl like ls_data-ddl.
        data node_info type ref to if_wd_context_node_info.
        data vals type table of  wdr_context_attr_value.
        data: s_element type wdr_context_attr_value.
        data: str type string.
    *   navigate from <CONTEXT> to <DATA> via lead selection
        lo_nd_data = wd_context->get_child_node( name = wd_this->wdctx_data ).
    *   get element via lead selection
        lo_el_data = lo_nd_data->get_element(  ).
        lo_el_data->get_static_attributes(
          importing
            static_attributes = ls_data ).
    *      get node info
        call method lo_nd_data->get_node_info
          receiving
            node_info = node_info.
         do 25 times.
           str = sy-index.
           condense str no-gaps.
           s_element-text = str.
           s_element-value = str.
           append s_element to vals.
        enddo.
    *    Set Value_sets to node_info
         call method node_info->set_attribute_value_set
          exporting
            name      = 'DDL'
            value_set = vals
    endmethod.
    This works fine, however now I am trying the same thing with a field from the SFLIGHTS table.
    I want to display a table of the retrieved SFLIGHTS but a field as a dropdown with valid entries from the database. I have added the following code to the view.
    method WDDOINIT .
        data lo_nd_data type ref to if_wd_context_node.
        data lo_nd_flights type ref to if_wd_context_node.
        data lo_el_flights type ref to if_wd_context_element.
        data ls_flights type wd_this->element_flights.
        data gt_flights type table of sflights.
        select * from sflights into table gt_flights.
    *   navigate from <CONTEXT> to <DATA> via lead selection
        lo_nd_data = wd_context->get_child_node( name = wd_this->wdctx_data ).
    *   navigate from <DATA> to <FLIGHTS> via lead selection
        lo_nd_flights = lo_nd_data->get_child_node( name = wd_this->wdctx_flights ).
        lo_nd_flights->bind_table( gt_flights ).
           types: begin of ty_carrname,
         carrname type s_carrname,
         end of ty_carrname.
       data: gt_carrname type table of ty_carrname.
       select distinct carrname
          from sflights
          into table gt_carrname.
         data lv_carrname like ls_flights-carrname.
         data node_info type ref to if_wd_context_node_info.
         data vals type table of  wdr_context_attr_value.
         data: s_element type wdr_context_attr_value.
         data: str type string.
          lo_nd_flights->get_static_attributes(
          importing
            static_attributes = ls_flights ).
          call method lo_nd_flights->get_node_info
          receiving
            node_info = node_info.
         field-symbols: <carrname> like line of gt_carrname.
         loop at gt_carrname assigning <carrname>.
           str = <carrname>-carrname.
           s_element-text = str.
           s_element-value = str.
           append s_element to vals.
         endloop.
         call method node_info->set_attribute_value_set
          exporting
            name      = 'CARRNAME'
            value_set = vals.
    endmethod.
    I can display all the entries with a repeating subform but when I bind the CARRNAME to an enumerated dropdown I get an ADS rendering error:
    WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.pdf on the application server
    I have looked in the Error PDF but it is blank.
    Does anyone have any suggestions on what is goign wrong or how to diagnose the problem.
    I am assuming you can have a data element that has a 0..N cardinality (i.e a table element) and is also of type enumerated dropdown.
    I'm guessing this is something to do with cardinality but I have no way to find out.
    Thanks,
    Gregor

    I have looked in the defaultTrace file and found the following errors:
    1.  A pdf document with 0 pages.
        Return Status: Render Failure
        Output Trace returned: <?xml version="1.0" encoding="UTF-8"?>
    <log>
       <m mid="29184" tid="10064.4896" sev="f" d="2008-11-12T15:20:01.722Z">Malformed SOM expression: $record.sap-vhlist.FLIGHTS\\.DATA[*]\\.CARRNAME.item[*]</m></log>
    Has anybody else used the enumerated dropdown element bound to dynamic data?
    I am using the latest releases and the "Specify Item Values" on the Object->Binding tab is filled in with what looks correct ($record.sap-vhlist.FLIGHTS\.Data etc) but greyed out.
    Thanks

  • Help with a Spry Menu Bar

    I'm having trouble with a Spry Menu Bar not displaying
    correctly in Internet Explorer, while it displays fine in every
    other browser I have available. I've done some searching on these
    boards, but the queries I've found with the same type of problem
    each has a knowledgeable person editing the code for the
    poster...and I can't seem to make heads or tails of it.
    So, below is my link. What you'll see if viewed in Explorer
    is that the "Clinics" listing and the "Services & Specialties"
    listing are each on the same horizontal line, rather than vertical
    like the rest of the menu. If anyone can help me in correcting this
    problem, I'd be very appreciative.
    Thanks in advance.
    http://www.chambershospital.com/temp/about.html

    Hello,
    You might try removing all of the <div> tags you
    inserted in the menu.
    This can happen if you select text in design view and use the
    "align" icons
    in the properties window instead of using CSS to align
    things.
    For example:
    <li>
    <div align="left"><<****REMOVE THIS
    <a href="clinics.html"
    class="MenuBarItemSubmenu">Clinics</a>
    <ul>
    <li><a href="clinic.html">Chambers
    Clinic</a></li>
    <li><a href="clinic7.html">Scenic 7
    Clinic</a></li>
    </ul>
    </div><<*** REMOVE THIS
    </li>
    So it looks like this:
    <li><a href="clinics.html"
    class="MenuBarItemSubmenu">Clinics</a>
    <ul>
    <li><a href="clinic.html">Chambers
    Clinic</a></li>
    <li><a href="clinic7.html">Scenic 7
    Clinic</a></li>
    </ul>
    </li>
    Repeat for all the other <div align="left"> and
    </div> tags in the menu.
    Take care,
    Tim
    "Zim74" <[email protected]> wrote in message
    news:fv4vc0$r0t$[email protected]..
    > I'm having trouble with a Spry Menu Bar not displaying
    correctly in
    > Internet
    > Explorer, while it displays fine in every other browser
    I have available.
    > I've
    > done some searching on these boards, but the queries
    I've found with the
    > same
    > type of problem each has a knowledgeable person editing
    the code for the
    > poster...and I can't seem to make heads or tails of it.
    >
    > So, below is my link. What you'll see if viewed in
    Explorer is that the
    > "Clinics" listing and the "Services & Specialties"
    listing are each on the
    > same
    > horizontal line, rather than vertical like the rest of
    the menu. If
    > anyone can
    > help me in correcting this problem, I'd be very
    appreciative.
    >
    > Thanks in advance.
    >
    >
    http://www.chambershospital.com/temp/about.html
    >
    >

  • How to select an item from a dropdown menu using Enter key

    A website I frequently use opens with a dropdown menu. Using my former browser, I was able to select the an item from the dropdown list by hitting the first letter with my keyboard and then hitting Enter. (Think of entering an address and selecting TX from a dropdown menu of states. Often you can hit T twice to get to TX and then the Enter key will advance the cursor to the zip code field.) Since converting to Firefox, the Enter key no longer works to advance to the next screen...I now have to move the mouse to a "Go" button and click it after selecting the desired item from the downdown menu. It's a small thing, but constantly switching back and forth between mouse and keyboard is becoming annoying. Is there an option in Firefox to select items simply by highlighting them in the dropdown menu and hitting the Enter key, instead of having to use the mouse to click a "Go" button? Thanks

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Android Adobe DPS viewer. HTML form dropdown menu closes everytime the viewer navigation pops up.

    I have a web content page which contains a form dropdown menu: <select><option></option></select> ... and so on. I use this as a small filter to narrow a result.
    When I tap the screen, this dropdown menu is shown and works correctly on an iPad. As a side effect the navigation from the Adobe DPS viewer is also shown although this doesn't interfere with the dropdown menu in the HTML. Both are shown.
    On an Android tablet, the html dropdown menu is shown for a fraction of a second until the Adobe DPS viewer navigation pops up. The HTML dropdown menu just won't stay visible.
    My question: How can I solve this? How can I make the HTML dropdown visible on an Android tablet? Or how can I prevent the DPS viewer navigation from showing?
    Thanks

    This phenomenon does not happen on a Samsung Galaxy Tab 2. While not showing the dropdown menu as on an iPad it shows it as a scrollable menu at the bottom.

  • How to create a dropdown menu with sub buttons that link back to the labels on click.

    im trying to create a dropdown menu buttons that when you rollover to the top central button the button it opens up like a drop down menu would containg two other subsectional buttons. This makes the sub sectional buttons seperate from the main stage making it difficult to simply give them a on click,  sym.play("label") function.
    the buttons work like this in symbols or sections stage/panel/homebutton inside home button is group dev containg another group dev containg the button which I need to link back to a "label" in the /panel/ symbol or section. Thank you very much.

    pdp_1 wrote:
    Hi!
    I would like to create a DVD menu that offers two languages. So the first page gives two options: Language 1 and Language 2. Then depending on which language you choose, you go to a menu that proposes different videos and a photo slideshow.
    Regardless on which language button you click on initially, you get the same content but in different languages.
    I've been looking at Premiere's templates, which I can certainly customize, but I really don't see how to create the double menu. Does anybody have an idea?
    Put the video with the first language on the timeline followed by the video with the second language.  Use chapter markers so you can have each video as a chapter in the menu.
    I use Premiere Pro, so I can't give more specific directions. Perhaps somebody like ATR will chime in.
    Also, I have another question: can I put videos from different projects in the same DVD with Premiere or must all of the videos that go into the DVD be in the same project?
    Thank you very much!!!
    pdp1
    They must be in the same project.

  • HT3180 Anyone having trouble with Netflix not showing up in the internet menu?  I am trying to do a reset, but it says it can't download latest updates try again later.

    Anyone having trouble with Netflix not showing up on the Internet Menu?  I have tried to do a reset and then restore, but it says that "the latest update download cannot be done at this time, try again later"

    If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
    Connect the micro USB cable to the Apple TV and to your computer.
    Open iTunes.
    Select your Apple TV in the Source list, and then click Restore.

  • Trouble with iWeb code snippet for drop down menu

    Hello,
    So, I'm having a bit of trouble figuring this out and it goes beyond my knowledge, to be honest. I'm working on a website for someone and when viewed in Safari for Mac or iPad or even iPhone, it all works out great. But, when viewed in any other browser for Mac or Windows, the drop down doesn't display the "menu heading," only what should be the first drop down selection. Not only that, that page now becomes "unselectable" and more or less dead.
    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    On all other browsers, it displays the FAQ - Yoga option as the "title" and only displays the other two options. So, is this something that can be fixed in the code snippet or is what I'm seeing a more involved HTML issue that would require actual skills to fix? Any help or direction would be greatly appreciated because I'd love to get this knocked out and also pick something up in addition. If I have to edit the actual HTML pages themselves I could do that as well; I've got an editor and have done that for my own site when needed. Anyway, thank you very much in advance!
    Her
    <html>
    <title></title>
    <head>
    <script>
    <!--
    function land(ref, target)
    lowtarget=target.toLowerCase();
    if (lowtarget=="_self") {window.location=loc;}
    else {if (lowtarget=="_top") {top.location=loc;}
    else {if (lowtarget=="_blank") {window.open(loc);}
    else {if (lowtarget=="_parent") {parent.location=loc;}
    else {parent.frames[target].location=loc;};
    function jump(menu)
    ref=menu.choice.options[menu.choice.selectedIndex].value;
    splitc=ref.lastIndexOf("*");
    target="";
    if (splitc!=-1)
    {loc=ref.substring(0,splitc);
    target=ref.substring(splitc+1,1000);}
    else {loc=ref; target="_self";};
    if (ref != "") {land(loc,target);}
    //-->
    </script>
    </head>
    <body>
    <style type="text/css">
    <!--
    .combobox {
    background-color: #fef3e2;
    color: #463c3c;
    font-size: 13pt;
    font-family: optima;
    font-weight: normal;
    font-style: none;
    -->
    </style>
    <form action="dummy" method="post"><select name="choice" size="1" class="combobox" onChange="jump(this.form)"
    <option value="">Rates, Hours, Reservations</option>
    <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    </form>
    </body>
    </html>

    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    No, it shouldn't and it doesn't. It should look like :
    Rates, Hours, Reservations
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    FAQ and Reserve - Training
    Here's the correct part :
    <select>
              <option value="">Rates, Hours, Reservations</option>
              <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    The <select> item was missing. And if you don't want the first line in the menu (Rates, Hours, Reservations) then don't enter it in the first place.
    BTW, it's not a dropdown menu. It's a selection list in a form.

  • Interactivity with dropdown menu

    Hi,
    I need dropdown menu for my project. I know Captivate is
    giving dropdown menu if i use project>Skin but its skin is not
    matching with my project interface also it is not letting me to
    customized it.
    If i make the dropdown menu in flash and import the .swf in
    captivate, is it possible to give interactivity to flash
    dropdownmenu to the captivate slides and if yes how to do it?

    Hello pocketPc
    In most cases you would create this the same way that you
    would any other kind of interactive simulation.
    You start by capturing your screens using either the training
    simulation or assessment simulation recording mode. Captivate would
    then add click boxes to the dropdown menu and radio button when you
    click on these items in the application you are capturing your
    screens from.
    That way once you finish your screen capture session you
    would end up with a slide that shows for example the radio button
    in its default state and another slide with the radio button
    selected. Same goes for the dropdown menu.
    If this isn't what you require then please provide us with
    some more details so that you can advise you better.
    Regards,
    Mark

  • HT1320 Hello! My name is Ed. I'm having trouble with my Ipod classic, it keep freezing up on me and i can't unfreeze my Ipod. I hold down the menu button on the wheel and still won't do anything. All my Ipod classic do this. But my Ipod Touch, I don't hav

    Hello, my name is Ed. I'm with all my Ipod, I have (4) they all keep freezing up on me when I play my devices. But my Ipod Touch I don't have this problem. On my classic I'll hold down menu botton on the wheel. But thing happen, I'm tired of letting battery go dead and recharge it, just to freeze up again. I made it work one time by holding down the menu button. That's  about it. I need help.
    Ed Shelton
    PS I don't know operation system on my ipod classic, but on my mac book pro i am using (11.0.2) my mac os x (10.6.8). So, I try to take a quess at my os my classic

    Holding down the center/select button and the menu button will reboot your ipod. See if that helps. Also, I'd recommend something else- I had nothing but trouble with my ipod classic until I spent $20 to get Mac OS Mountain Lion. It did what you said and sometimes wouldnt play, or wouldnt power on...
    Try rebooting your ipod and let me know what happens and maybe in the future obtain Mountain Lion to aide your ipod in functionality.
    Good luck!

  • Crystal reports with static list parameter : blank dropdown menu

    Hi,
    I've created a very simple report displaying customer order (ordr and rdr1)
    it has :
    parameter DocKey@  used in the selection formula    DocKey@=DocEntry
    It also has another parameter : static list with 2 entries
          - 1 : normal presentation
          -  2 : proforma presentation
    The user has to choose between option 1 or 2 before displaying the report
    Using the report in the Crystal application is OK : i can choose between option 1 and 2 in a dropdown list
    If i use the Addin Menu // preview in SAP : i can choose in the dropdown menu
    If i import my report in SAP and i try to preview it : the dropdown menu is empty and i cannot select anything
    Anyone has the same problem ?
    I use SAp SBO 8.8 pl 00 hotfix 14
    I 've the same report worrking on a sap sbo 8.8 sp 00 pl 11
    thanks for your help

    Hi and thanks for your help
    I've tried with and without default values : no changes
    I've tested with the last pl (18) and it works fine : no blank dropdown menu , i can select a value for my static parameter !
    Edited by: Antoine TESSIER on Jan 6, 2011 11:47 AM

  • Android – html with dropdown menu not working

    hi everybody,
    I'm creating a digital pubblication fo android and I'm testing it on an Asus tablet.
    I just have a big html widget showing a local web application. Everything works except a simple dropdown menu: when I tap on the button that should open the dropdown items, the button highlights itself, but the options don't appear.
    this the HTML code:
      Size:   4
    4,5
    5
    5,5
    6
    6,5
    7
    7,5
    8
    8,5
    9
    9,5
    10
    10,5
    11
    11,5
    12
    12,5
    13
    13,5   
    I'm sure it worked on a Samsung tablet (within the DPS app), and it works on the Asus if I access to the application via browser.
    it only doesn't work when loading it within the DPS app on the Asus device. is the tablet brand the problem?
    my android version is: 4.2.2.
    anybody can help me, please?
    thank you very much.

    it works with the native android viewer!
    but with this there's another problema (that the legacy one doesn't have): I have a simple form and the last text field appears beneath the keyboard.
    with the legacy viewer each time I move the focus from a textfield to the next one, the text field moves upwards to be visible (and not hidden by the keyboard).
    this is the code for the form:
    <div data-role="fieldcontain" class="text-field">
      <label for="firstname">Nome:</label>
      <input type="text" name="firstname" value="" placeholder="" class="required" id="firstname" />
      </div>
      <div data-role="fieldcontain" class="text-field">
      <label for="surname">Cognome:</label>
      <input type="text" name="surname" value="" placeholder="" class="required" id="surname" />
      </div>
      <div data-role="fieldcontain" class="text-field">
      <label for="surname">Indirizzo:</label>
      <input type="text" name="address" value="" placeholder="" id="address" class="required"/>
      </div>
      <div data-role="fieldcontain" class="text-field">
      <label for="email">Email:</label>
      <input type="email" name="email" value="" placeholder="" class="required" id="email"  title="Your error message" />
      <div class='error_message'></div>
      </div>
      <div data-role="fieldcontain" class="text-field note">
      <label for="message">Note :</label>
      <textarea name="message" id="message" placeholder="" ></textarea>
      </div>
      <div data-role="fieldcontain" class="text-field mail">
      <label for="email_shop">Email negozio:</label>
      <input type="email" name="email_shop" value="" placeholder="" class="required" id="email_shop"  />
      </div>

  • Button with dropdown menu

    Hi,
    i am new at apex and i try to create a button with dropdown menu. any help? i dont want to use plugin but create a new one... i know that i need jquery and i have tha basic knowledge.
    thanks,
    Adven

    Hi,
    You could try to create a list with as template Pull Down Menu.
    Make sure that you create parent-child relations to get the pull down menu options.
    It also depends on the theme you pick up.
    Hope it works for u
    Sunil Bhatia

Maybe you are looking for

  • How do I transfer website from one business catalyst user to another?

    Our Company website is currently being hosted on our web designers business catalyst in one of his 5 free slots. We want to transfer it to our own business catalyst so we can upgrade it to web marketing and maintain it ourselves. How do I do this? Th

  • How do I turn off the feature that opens the last window in an application

    Hello; I want to turn off the feature that opens the last window when I return to an application. Matt

  • Up to date drivers

    my system (windows 7 64bit) asked me to update my drivers, however i can't find the new ones on your site (http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?product=5141800&lc=en&cc=sk&dlc=en this is the only thing i have found). could you link me/

  • Scientific Notation Render Problem

    Using an ADF Faces form to enter the following number "5.500E-02" (without quotes) into an attribute based upon a Number data-type and then pressing a Save Button - the value entered re-renders as "0.055". What must be done to make the value entered

  • Bookmark / return to where user left off tracker -- Flash 8?

    Is there a template or plug in that anyone is aware of that is written in Flash 8 that keeps track ("bookmark of sort") of where a user left off on a .swf or .htm tutorial that includes: The user must be able to leave a .swf or .htm tutorial and retu