Repeat List Help

I have a spry region with a select list like so :
<div spry:region="dsPhones">
<select name="select" spry:repeatchildren="dsPhones"
spry:choose="choose"
onchange="dsPhones.setCurrentRowNumber(this.selectedIndex);" >
<option spry:when="{ds_RowNumber} ==
{ds_CurrentRowNumber}" selected="selected">{name}</option>
<option spry:default="default">{name}</option>
</select>
</div>
The select list works fine until...
I have another dataset on the page that pulls the phone id
out of a different table. I am trying to get the select list to
select the phone id from the other dataset on the page and display
the name from dsPhones… I can’t figure this out out. I
tried to make the select list dynamic in the properties instpector
but it gave me this below and doenst work:
<div spry:region="dsPhones dsInfo">
<select name="select" spry:repeatchildren="dsPhones"
spry:choose="choose"
onchange="dsPhones.setCurrentRowNumber(this.selectedIndex);EST();"
>
<option spry:when="{ds_RowNumber} ==
{ds_CurrentRowNumber}" selected="selected" value="" <%If (Not
isNull("{dsInfo::idphone}")) Then If ("" =
CStr("{dsInfo::idphone}")) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>{name}</option>
<option spry:default="default" value="" <%If (Not
isNull("{dsInfo::idphone}")) Then If ("" =
CStr("{dsInfo::idphone}")) Then
Response.Write("selected=""selected""") :
Response.Write("")%>>{name}</option>
</select>
</div>
can someone help? I can try to clarify better with an example
if needed.

Hello,
you want to check whether the user entered same value twice in the combo-editor, dont you? Then have a look:import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.JTextComponent;
public class ComboTest extends JFrame implements ActionListener
     private JComboBox combo = null;
     public ComboTest()
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          initCombo();
          pack();
          setLocationRelativeTo(null);
          setVisible(true);
     private void initCombo()
          combo=new JComboBox();
          combo.setEditable(true);
          combo.addActionListener(this);
          getContentPane().add(combo);
     public void actionPerformed(ActionEvent e)
          JTextField editorField = (JTextField) combo.getEditor().getEditorComponent();
          String input = editorField.getText();
          if(input.equals(""))
               return;
          int count = combo.getItemCount();
          boolean repeat = false;
          for(int i=0; i<count; i++)
               if(input.equals(combo.getItemAt(i)))
                    repeat = true;
                    break;
          if(repeat)
               JOptionPane.showMessageDialog(combo,"Do not enter same value twice!");
          else
               combo.addItem(input);
          editorField.setText("");     
     public static void main(String[]args)
          new ComboTest();
}regards,
Tim

Similar Messages

  • How to Display Repeat List In Spry Tab Content

    Hello,
    I am new to Spry. I thought I could just create an XML
    dataset, Insert a Spry Tabbed Panel, and then insert a Spry repeat
    list inside the Tabbed Content area of the Tabbed Panel. It is not
    working at all for me. Is this doable at all? If so, how?
    Thanks!

    hi,
    i have created an example in http://apex.oracle.com/pls/apex/f?p=44310:1:3623155419174978:::::
    username/password: demo/demo
    check, it may help you:)
    *please mark the thread answered if it done:)
    regards
    Little Foot

  • Spry repeat list break DW insert transaction?

    Hi,
    Does anyone know if spry repeat lists are recognized by DW as input devices? I added a few to a form, which uses the builtin DW insert record wizard, and they don't show up with the other controls in the server behavior list and they break the transaction (red ! on the insert transaction).
    Are there configuration issues? Or are these widgets only for search and display forms?
    Thanks for any help,
    Tony

    Hi Tony,
    I´m sure that the SPRY repeat lists you´re creating would need some heavy modification in order to become "regular" ADDT dropdown menus -- what they would need at least, is some embedded string comparison (aka PHP´s "strcmp" function) for displaying an existing column value as "SELECTED", like ADDT´s menus do:
    ...and I don´t think your Spry lists provide this for each list option.
    and they don't show up with the other controls in the server behavior list
    it seems as if those lists have one or more required elements missing which DW needs to accept them as valid "control". You can actually check the differences by opening an other ADDT form containing a valid control and taking a look at the HTML/PHP code of that list -- what does it have what your Spry list doesn´t ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • ADDT Dependent Dropdown SB with Spry Repeat Lists

    Hi,
    I first want to say that this forum is fantastic and full of very bright folks willing to help us not so bright types.
    Next, of course, I have a problem. I'm using spry repeat lists as dropdowns in a form. There are 3 that need to be dependent on each other. I had been using the ADDT dependent dropdown SB and it works great for normal selects. It doesn't seem to work at all on spry repeat lists. I was hoping these two would play nicely together, and maybe they do and there's some trick to this.
    If the ADDT SB's don't work with Spry repeat lists, maybe there's a way to do this using javascript?
    Thanks in advance for any help,
    Tony Galfano

    Hi Gunter,
    Thanks for the help. I've decided, based on your accurate assessment of the work involved in getting all this to work with spry, to ditch that and just refresh the damn page after all new entries are made. I appreciate your help, probably saved me many hours.
    I do have a wierd issue with the ADDT editaqble dropdown behavior. I actually use this one a lot and it always works well. I have one dropdown that only showsw the first 2 characters of the contents. A swcreenshot is avaiable here: http://www.zenwebguru.com/editabledropdown.jpg
    All of the other editable dropdowns on the page, and the site, work fine, but this one is shruken for some reason. I'm wondering if there is a size limitation in the css or the js that can't handle larger records? The largest field in the table contains the value:
    "Flat Guarantee; Purchaser to provide one Fender Amplifier (see rider for list of amps) at no cost to Artist."
    This really shouldn't present a problem, but maybe it's something else?
    Thanks, as always for your great help.
    Tony

  • Customize the repeat list?

    Is there any way to customize the repeat list when an iCal Alarm pops up? For instance, right now it gives you options to repeat in 1, 5, 15, or 30 minutes, 1 or 2 hours, 1 day, 1 week, or to repeat 1 hour, 2 hours, or 1 day before the event. I'd really like to tell it to remind me again in 2 days, or 3 days, etc. Is there some way to access that list that iCal draws from and add some other options?

    You can access the list but you cannot add nor change options. You can give Apple OS X Feedback with suggestions for improvements.
    AK

  • Filter spry table from repeater list

    Using Dreamweaver, I am looking to find out how to link a
    spry repeat list (Select Drop-Down) to a Spry table.
    I have created a repeat list (Select Drop-Down) using a
    distinct filter on a field in my XML data base :
    The XML database is:
    var ds2 = new
    Spry.Data.XMLDataSet("Data/NetballDatafeed190401.xml",
    "NetballList/NetballProducts/SubType",{sortOnLoad:"SubType",sortOrderOnLoad:"as
    cending",distinctOnLoad:true});
    The drop down list is created by
    <div spry:region="ds2">
    <select name="select" spry:repeatchildren="ds2">
    <option value="{SubType}">{SubType}</option>
    </select>
    </div>
    I have a table which I want to show only the values on the
    table where the subType that matches the value from the select
    list.
    This data is populated by:
    var ds1 = new
    Spry.Data.XMLDataSet("Data/NetballDatafeed190401.xml",
    "NetballList/NetballProducts",{sortOnLoad:"ProductPrice",sortOr
    derOnLoad:"ascending"});
    and is created by
    div spry:region="ds1">
    <table>
    <tr>
    <th>ProductName</th>
    <th>ProductPrice</th>
    <th>ImageURL</th>
    <th>SubType</th>
    </tr>
    <tr spry:repeat="ds1">
    <td>{ProductName}</td>
    <td>{ProductPrice}</td>
    <td><img src="{ImageURL}"/></td>
    <td>{SubType}</td>
    </tr>
    </table>
    </div>
    I believe that I need to create a spry:Choose statement in
    the drop down list which runs a function that filters the DS1 XML
    data.
    I beleive that The function need to look like
    var myFilterFunc = function(dataSet, row, rowNumber)
    some funtion here that filters ds1 on {SubType}.......
    I will then need to run ds1.filter(myFilterFunc);
    Any pointers or examples most welcome.

    to do the the spry:if="'statement" needs to be in the
    <tr> rows you want to filter on

  • Hi  how to find list help in parameters..?

    hi gurus
    i have some doubt..?
    my selection-screen is
    sales organization,
    distributed channel,
    division..
    i got list help for sales organization
    but i could not get list help for remaining two.
    i need list help for distributed channel from that sales organization,
    division list help for combination of sales organization n distributed channel,
    finally i got the customer list of those combination on selection-screen itself.
    can anybody suggest me
    how to solve that.
    thank you
    regards
    kals.

    Hi,
    Use the below logic.
    tables: t001k.
    For Identification Number
    DATA: BEGIN OF it_bwkey OCCURS 0,
            bwkey LIKE t001k-bwkey,
          END OF it_bwkey.
    data: v_bukrs(4).
    For Run date
    DATA: BEGIN OF it_bukrs OCCURS 0,
            bukrs LIKE t001k-bukrs,
          END OF it_bukrs.
    DATA it_ret LIKE ddshretval OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN: BEGIN OF BLOCK main WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS:    p_bukrs(4) TYPE c.
    SELECT-OPTIONS s_bwkey FOR t001k-bwkey NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK main.
    Validation Section
    INITIALIZATION.
      SELECT DISTINCT bukrs FROM t001k INTO TABLE it_bukrs.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'P_BUKRS'
          value_org       = 'S'
        TABLES
          value_tab       = it_bukrs
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bwkey-low.
      TABLES: t130r.
      DATA: BEGIN OF dynpfields OCCURS 0. "Hilfsstruktur zum auslesen des
              INCLUDE STRUCTURE dynpread. "Feldwertes vom Dynpro bei >F4<
      DATA: END OF   dynpfields.
      DATA : sy_repid LIKE sy-repid,
             sy_dynnr LIKE sy-dynnr.
      CLEAR dynpfields.
      REFRESH dynpfields.
      dynpfields-fieldname = 'P_BUKRS'.
      APPEND dynpfields.
      Lesen des akt. Wertes von Dynpro
      sy_repid = sy-repid.
      sy_dynnr = sy-dynnr.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = sy_repid
          dynumb     = sy_dynnr
        TABLES
          dynpfields = dynpfields
        EXCEPTIONS
          OTHERS     = 01.
      IF sy-subrc = 0.
        READ TABLE dynpfields WITH KEY fieldname = 'P_BUKRS'.
        IF sy-subrc = 0.
          v_bukrs = dynpfields-fieldvalue.
        ENDIF.
      ENDIF.
      SELECT bwkey FROM t001k
      INTO TABLE it_bwkey
      WHERE bukrs = v_bukrs.
      DELETE ADJACENT DUPLICATES FROM it_bwkey.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BWKEY'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'S_BWKEY'
          value_org       = 'S'
        TABLES
          value_tab       = it_bwkey
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

  • Adding a Counter to Spry Repeat List

    Hi, this might seem like a relatively simple problem but after spending some time, I haven't yet arrived at an appropriate solution.
    1. I have spry repeat list.
    2. I want add a counter (required by a javascript function nested within the repeat list).
    I have tried ds2.getCurrentRowID and that failed.
    One simple way of thinking of the problem is: how would you modify a spry repeat list to display each row, numbered 1 through n down the left-hand column?
                <tr spry:repeat="ds2" spry:odd="evenRowVenue" spry:even="oddRowVenue" spry:hover="hoverVenue" onClick="MM_callJS('GEvent.trigger(venue_list[INCREMENTING COUNTER HERE],\'click\');')">
                  <td align="left"><a href="venue_show.php?vid={@vid}">{@name}</a></td>
                  <td align="left">{@street1}</td>
                  <td align="left">{@city_suburb}</td>
                  <td align="left">{@state}</td>
                  <td align="left">{@country}</td>
                  <td align="left">{@rating}</td>
                </tr>

    secondliver wrote:
    Hi, this might seem like a relatively simple problem but after spending some time, I haven't yet arrived at an appropriate solution.
    1. I have spry repeat list.
    2. I want add a counter (required by a javascript function nested within the repeat list).
    I have tried ds2.getCurrentRowID and that failed.
    One simple way of thinking of the problem is: how would you modify a spry repeat list to display each row, numbered 1 through n down the left-hand column?
                <tr spry:repeat="ds2" spry:odd="evenRowVenue" spry:even="oddRowVenue" spry:hover="hoverVenue" onClick="MM_callJS('GEvent.trigger(venue_list[INCREMENTING COUNTER HERE],\'click\');')">
                  <td align="left"><a href="venue_show.php?vid={@vid}">{@name}</a></td>
                  <td align="left">{@street1}</td>
                  <td align="left">{@city_suburb}</td>
                  <td align="left">{@state}</td>
                  <td align="left">{@country}</td>
                  <td align="left">{@rating}</td>
                </tr>
    {ds_RowNumber} is what you are looking for.
    So in you case:
    onClick="MM_callJS('GEvent.trigger(venue_list[{ds_RowNumber}],\'click\');')">

  • Spry Repeat List does not appear in Google Chrome 28

    Spry repeat list works in IE8 and Firefox 22.  However in Google Chrome 28 no data appears (data is blank).  This is the code:
    <div>
                  <p><span class="headline">events</span></p>
                  <div spry:region="Events">
                    <dl spry:repeatchildren="Events">
                      <dt>{date}</dt>
                      <dd>{title}</dd>
            </dl>
          </div>
                  <p> </p>
                  <p><span class="headline"><br />
                  </span></p>
                </div>
    This is what appears in IE8 and Firefox:
    events
    May 10,2012
    Pre-Memorial Day Sale
    May 28, 2012
    Big Memorial Day Sale
    May 31, 2012
    Big After-Memorial Day Sale

    This is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
              <head>
              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
              <title>OrganicUtopia Home Page</title>
        <style type="text/css">
        </style>
        <link href="styles.css" rel="stylesheet" type="text/css" />
              <style type="text/css">
              .headline {          color: #88B036;
              font-weight: bold;
              font-size: 18px;
              margin-bottom: -2px;
        </style>
              <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
              <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
              <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
              <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
              <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
              <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
              <script src="SpryAssets/xpath.js" type="text/javascript"></script>
              <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
              <script type="text/javascript">
    var Events = new Spry.Data.XMLDataSet("data/events.xml", "calendar/event");
        </script>
              </head>
    <body>
    <div id="container">
      <div id="GlobalNav">Site Map | Login</div>
      <div id="header"><img src="images/ou_logo.gif" width="210" height="41" /></div>
      <div id="nav">{Menu Bar Here}</div>
      <div id="main">
        <p class="headline">welcome to organic utopia </p>
        <p> </p>
        <div id="TabbedPanels1" class="TabbedPanels">
          <ul class="TabbedPanelsTabGroup">
            <li class="TabbedPanelsTab" tabindex="0">What's New</li>
            <li class="TabbedPanelsTab" tabindex="0">Features</li>
            <li class="TabbedPanelsTab" tabindex="0">Customer Testimonials</li>
    </ul>
          <div class="TabbedPanelsContentGroup">
            <div class="TabbedPanelsContent">
              <p><span class="headline">Shop in the green! </span></p>
              <p><img src="images/recycle_bag.gif" alt="Recycle Bag" width="81" height="101" hspace="10" vspace="5" align="left" />We have added recyclable shopping bags, which eliminate the need for the age-old question &quot;paper or plastic?&quot;. These bags are tough, stylish, and eco-friendly! Pick from 2 sizes with the OU logo!</p>
              <p></p>
            </div>
            <div class="TabbedPanelsContent">
              <p><span class="headline">Featured stuff! </span></p>
              <p><img src="images/couch.gif" alt="Couch" width="107" height="73" hspace="5" vspace="5" align="left" />A whole new line of green living products has just hit the shelves! Try our new recyclable office furniture - imagine a couch that dissolves on its own back into Mother Earth! We also have a whole new line of natural cosmetics made from the finest ingredients that are gentle on your skin!</p>
            </div>
            <div class="TabbedPanelsContent">
              <p><span class="headline">Our loyal customers...</span></p>
              <p>&quot;organic Utopia is the place to shop - i wouldn't buy my stuff anywhere else...EVER!&quot; <br />
                - Jeff A., Boston, MA</p>
              <p>&quot;The best place for healthy, organic and green living..everything from food to furniture, all in one place!&quot; -  Fred G., Long Beach, NY </p>
            </div>
    </div>
        </div>
        <p> </p>
        <p> </p>
        <p> </p>
        <h1 > </h1>
      </div>
      <div id="sidebar">
    <div>
      <div id="Accordion1" class="Accordion" tabindex="0">
        <div class="AccordionPanel">
          <div class="AccordionPanelTab">Food Products</div>
          <div class="AccordionPanelContent">Dried Fruits &amp; Vegetables<br />
    Snacks<br />
    Beverages<br />
    Heat and Serve<br />
    Cereals</div>
        </div>
        <div class="AccordionPanel">
          <div class="AccordionPanelTab">Clothing</div>
          <div class="AccordionPanelContent">Bags<br />
    Accessories<br />
    Shoes<br />
    Fake Leather Goods</div>
        </div>
        <div class="AccordionPanel">
          <div class="AccordionPanelTab">Home Products</div>
          <div class="AccordionPanelContent">Candles<br />
    Pillows<br />
    Storage<br />
    Knick Knacks</div>
        </div>
    <div class="AccordionPanel">
      <div class="AccordionPanelTab">Lifestyle</div>
          <div class="AccordionPanelContent">Music &amp; DVDs<br />
    Decorations &amp; Wall Hangings</div>
      </div>
      </div>
    </div>
                <div>
              <p><span class="headline">events</span></p>
              <div spry:region="Events">
                <dl spry:repeatchildren="Events">
                  <dt>{date}</dt>
                  <dd>{title}</dd>
                </dl>
              </div>
              <p> </p>
              <p><span class="headline"><br />
                </span></p>
            </div>
            <div>
              <div id="CollapsiblePanel1" class="CollapsiblePanel">
                <div class="CollapsiblePanelTab" tabindex="0">Contact Us</div>
                <div class="CollapsiblePanelContent">Enter your email address to receive specials, event notifications and more!<br />
                  <label>
                    <input name="emailaddr" type="text" id="emailaddr" size="20" />
                    <br />
                    <input type="submit" name="button" id="button" value="Submit" />
                  </label>
                </span></div>
              </div>
            </div>
            <div></div>
          </div>
          <div id="footer">All content copyright of OrganicUtopia</div>
        </div>
        <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:false});
    </script>
    </body>
    </html>

  • TS1702 I purchased holiday add-ons for the UtiliTap Week Calendar.  I wanted basic holidays.  Once added my calendar was flooded with listings for holidays, the majority obscure, repeatedly listed. The "hide calendar" would work only till the next time I

    I purchased holiday add-ons for the UtiliTap Week Calendar.  I wanted basic holidays.  Once added my calendar was flooded with listings for holidays, the majority obscure, repeatedly listed. The "hide calendar" would work only till the next time I opened it. These holidays were listed on the built-in iPhone calendar as well as the UtiliTap Week Calendar. I actually want to delete the two purchases because I tried deleting the UtiliTap Calendar (where I purchased the add-on holidays) and the holidays still showed up on my built in iPhone calendar.

    I purchased holiday add-ons for the UtiliTap Week Calendar.  I wanted basic holidays.  Once added my calendar was flooded with listings for holidays, the majority obscure, repeatedly listed. The "hide calendar" would work only till the next time I opened it. These holidays were listed on the built-in iPhone calendar as well as the UtiliTap Week Calendar. I actually want to delete the two purchases because I tried deleting the UtiliTap Calendar (where I purchased the add-on holidays) and the holidays still showed up on my built in iPhone calendar.

  • I updated my iPhone 4 software now it's turninng off and off and keeps repeating . HELP!

    updated my iPhone 4 software now it's turninng off and off and keeps repeating . HELP!

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • CSS Menu - Dropdown list help.

    Hi guys,
    I am re-creating a website for a friend and I am currently finding coding the CSS Menu difficult.
    Here is MY version of the website:
    http://abacusmortgages.co.uk/index.html
    Here is the current version I am trying to copy:
    http://sdhmarketing.co.uk/
    Pages: Our client types and What do you need have special css menu dropdown lists which come up when you hover over the button.
    Here is the CSS code I have so far:
    #holding ul {
              margin: 0px;
              padding-left: 0px;
              list-style-type: none;
              font-family: Arial;
              font-size: 14px;
              font-weight: bolder;
              color: #506F1A;
              background-image: url(images/navbg.jpg);
              position: absolute;
              left: 0px;
              top: -3px;
    #holding ul li {
              float: left;
              width: 200px;
              margin: 0px;
              font-weight: bold;
    #holding ul li a {
              font-family: Arial;
              font-size: 11pt;
              color: #506F1A;
              text-decoration: none;
              background-color: Transparent;
              text-align: center;
              display: block;
              padding: 5px;
    #navigation {
    #holding ul li a:hover {
              color: #FFF;
              background-color: #333;
              font-weight: bolder;
              font-size: 14px;
    .menu {
    Here is the HTML I am using:
    <ul>
        <li><a href="index.html">HOME</a></li>
        <li><a href="ourclienttypes.html">OUR CLIENT TYPES</a></li>
        <li><a href="whatdoyouneed.html">WHAT DO YOU NEED?</a></li>
        <li><a href="casestudies.html">CASE STUDIES</a></li>
        <li><a href="managementteam.html">MANAGEMENT TEAM</a></li>
      </ul>
    If anyone could help it would be much appreciated.
    Thanks all!

    You, essentially, have an issue with float: left;
    Here's the deal, when you float list items left, they'll line up to the left, even though your navigation is centered.
    They have also done this website in a manner that does not line up with what the W3C considers a standard for websites, but that's another issue.
    Here's their HTML:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>wanted</title>
    <link href="wanted.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="page">
    <div id="head">
      <div style="width:100%; float:left;">
        <div id="name2"></div>
        <div id="name1"></div>
      </div>
      <div id="slogan"></div>
    </div>
    <div id="top"><a class="topsel1" href = "http://sdhmarketing.co.uk/index.php">HOME</a><a class="top1" href = "http://sdhmarketing.co.uk/who.php">OUR CLIENT TYPES</a><a class="top1" href = "http://sdhmarketing.co.uk/what.php">WHAT DO YOU NEED?</a><a class="top1" href = "http://sdhmarketing.co.uk/case_studies.php">CASE STUDIES</a><a class="top1" href = "http://sdhmarketing.co.uk/team.php">MANAGEMENT TEAM</a> </div>
    <div id="maintop"></div>
    </body>
    </html>
    Now, here's the problem. They have one line with all of their navigation. So they started out with (on the same line):
    HOME OUR CLIENT TYPES WHAT DO YOU NEED? CASE STUDIES MANAGEMENT TEAM
    Then, they selected each menu item and gave it a style and a link. That's pretty bad practice, because how do you manage that? Also, how do blind people figure out it's a navigation? Also, what if you want sub-menus?
    But you like how it's pretty and I respect that.
    This is how to really do it:
    HTML:
    <div id="top">
    <ul>
              <li>HOME</li>
        <li>OUR CLIENT TYPES</li>
        <li>WHAT DO YOU NEED?</li>
        <li>CASE STUDIES</li>
              <li>MANAGEMENT TEAM</li>
    </ul> <!--ends the list -->
    </div> <!--ends top -->
    You see here, I have an Unordered List for my navigation. Because it's an unordered list, I can easily add new items, add sub-lists (drop-down menus) and really make this puppy sing. Unfortunately, when you look at this with no style, you'll see something pretty boring and it won't be horizontal. We change all of that in the style sheet.
    First, before we do anything else, we'll make everything into a link. We can change those links later on when we build the rest of our pages.
    <ul>
              <li><a href="#">HOME</a></li>
        <li><a href="#">OUR CLIENT TYPES</a></li>
        <li><a href="#">WHAT DO YOU NEED?</a></li>
        <li><a href="#">CASE STUDIES</a></li>
              <li><a href="#">MANAGEMENT TEAM</a></li>
    </ul> <!--ends the list -->
    An hash "#" is a link that simply calls the page you are on. It's a bona-fide link and it will create what you want.
    Now, we need to set up styles.
    Let's set up the list by getting rid of bullet points (the default) and give it a little padding:
    Make a new style sheet, call it how-to.css. It will be blank so we'll add a style. We will need to link to it from our HTML page, so add the following to the <head> section:
    <link href="how-to.css" rel="stylesheet" type="text/css" />
    Now, we make a blank CSS page and we call it how-to.css. Put it in the root of your defined site in Dreamweaver for now. And we'll define list objects within the div they naked top:
    #top li {
              display: inline;
              list-style-type: none;
              padding-right: 20px;
    Now, you'll see that our list is suddenly horizontal! Cool! But links are blue by default and underlined. Did we want that? No. So let's style links:
    #top a {
              float:left;
              padding: 5px 20px 2px 20px;
              font-size: 13px;
              height:23px;
              color:#506F1A;
              display: block;
              letter-spacing: -0.2px;
              font-weight: bold;
              text-decoration: none;
    Now, I'm borrowing heavily from their styles here.
    But we have to set up the #top framework and here's that (it should go before everything else in your style sheet)
    #top {
              width:990px;
              padding:0px 10px 0px 0px;
              height:35px;
              margin:0px 0 0 0;
              background-image: url("navbg.jpeg");
              background-repeat: repeat-x;
    Now, it's just about done. They used an Arial typeface and the default is Times Roman. Let's add a little more to the #top id:
    Now let's make backgrounds change when we hover and when we have one selected.
    #top a:hover {
              background-color: #444;
              color: #fff;
    And make a background behind the page you are on, with a hover:
    .selected {
              background-color:#777777;
              color:white !important;
    .selected a:hover {
              background-color: #444;
              color: #fff;
    Now you're pretty much done.
    Here is how to style the entire thing in CSS:
    #top {
              width:990px;
              padding:0px 10px 0px 0px;
              height:35px;
              margin:0px 0 0 0;
              background-image: url("navbg.jpeg");
              background-repeat: repeat-x;
              font-family: Arial, Helvetica, sans-serif;
    #top li {
              display: inline;
              list-style-type: none;
              padding-right: 20px;
    #top a {
              float:left;
              padding: 10px 20px 5px 20px;
              font-size: 13px;
              height:26px;
              color:#506F1A;
              display: block;
              letter-spacing: -0.2px;
              font-weight: bold;
              text-decoration: none;
              margin-top: -5px;
    #top a:hover {
              background-color: #444;
              color: #fff;
    .selected {
              background-color:#777777;
              color:white !important;
    .selected a:hover {
              background-color: #444;
              color: #fff;

  • Whilst connected to internet itunes will only open once after rebooting and thereafter it will not open again until reboot. When reboot with internet off itunes will open repeatedly. Help

      This problem has only appeared in the past few days before that I had nio problems with itunes. Firstly I discovered that I could only open Itunes once after reboot - thereafter it would not reopen until I reboot again.  I have spent considerable hours yesterday talking to the Apple help by phone and tried all there suggestions including of course reinstalling itunes amongst other things.  Eventually I thought the problem had been solved when I discovered that I could suddenly open Itunes repeatedly without rebooting.  After a short time I then discovered that the reason it was working agai was that I had rebooted with the internet disconnected and itunes would open repeatedly as normal provide I left the internet disconnected.  When I reconnect to internet the problem resurfaces. HELP

    For those still wondering how to install ios 6.1 on 5th gen iPod, you need to download it off of apples official website and then shift click restore from backup and choose the downloaded ios 6.1
    apples one year warrant covers any hardware problems like these right?

  • New Users Not Appearing On Login List - Help!

    Hello Mac geniuses,
    I run a 10.3.9 network in an elementary school, and I since returning from summer vacation I have had problems with many of my client eMacs not displaying the names of users I have added in WGM. These eMacs are also still displaying the names of accounts I have deleted.
    If anyone is kind enough to help a stranger, I have copied below the transcripts of my email exchanges with an Apple tech, in my struggle to get my school functioning again. (I have placed them in the correct order so the 1st email is on top and the last on bottom. The tech's name is John and I am using "Jon" to make it slightly less confusing!).
    My very grateful thanks in advance to anyone who can help me.
    Jon
    On Sep 5, 2006, at 3:28 PM, Jon T wrote:
    Hi John,
    After deleting and adding users in WGM, some login screens still show deleted users and do not display the new users.
    I tried deleting the MCX cache via NetInfoManager on the clients, and even restarted the server, but it has not affected several machines.
    Any advice?
    Server: Dual 1Ghz G4 (Mirror Door) running Panther Server 10.3.9
    Clients: eMacs running 10.3.9
    Thanks in advance.
    On Sep 5, 2006, at 3:47 PM, John G wrote:
    Jon,
    Go into the client as the admin account.
    Delete /Library/Preferences/Directory Service
    Restart and setup Directory Access in Utilities
    Let me know if that works.
    John
    On Sep 6, 2006, at 9:08 AM, Jon T wrote:
    Hi John,
    Thanks for replying. unfortunately, that didn't work either . . . 
    Jon
    On Sep 6, 2006, at 2:03 PM, John G wrote:
    Jon,
    Are you sure the machine is on the network and talking to your
    server?
    Go into Dir Access and uncheck LDAP and readd the server.
    On Sep 6, 2006, at 4:07 PM, Jon T wrote:
    Hi John,
    Yeah, they're on the network, students can log in using the "Other" option, I can connect to the server and mount shared folders, etc.
    I did as you said, rebooted, still no updated list.
    Jon
    On Sep 6, 2006, at 8:57 PM, John G wrote:
    Jon,
    Netinfo is probably corrupt.
    Follow these directions to blow out Netinfo to create a new one.
    Bind back to server.
    <OS X frozen while booting.pdf>:
    AFP548.com: Articles: NetInfo Recovery Techniques
    NetInfo Recovery Techniques
    Joel Rennich, [email protected]
    4 June 2002
    When working with NetInfo, which we are and hope to have some more articles on in the near future, it is important to know
    how to back up to a previous version of your database.
    1. First, the most brutal way of recovering from a nonfunctional database.
    Boot into single user mode by holding down the "s" key while starting up. Follow the handy instructions Apple gives you at the end of the startup sequence and run fsck. Then mount the system root disk as read/write with:
    mount -uw /
    Now you can get on with recreating your database in a very brutal way. Remove your current database with:
    rm -rf /var/db/netinfo/local.nidb
    Now remove the file that prevents the Setup Assistant from running:
    m /var/db/.AppleSetupDone
    And now reboot to get things rolling.
    reboot
    This will cause the Setup Assistant to launch, complete with music and bouncing blue blobs. If you remember which account you set up first when you last saw this screen, set up that account now. Otherwise, go with whatever you want for your first
    Administrator account. If you match it up with the original Administrator account, all of your permissions should be groovy.
    Otherwise, get familiar with chown and chmod and you will be able to set things right.
    The above method is rather draconian and isn't for times when you need to replace a complicated NetInfo setup, but should work perfectly well for an essentially single user machine. However that probably rules out most Servers.
    On Sep 7, 2006, at 8:15 AM, Jon T wrote:
    Hi John,
    I performed that protocol, but even that didn't fix the problem!
    I know I've heard someone once suggest (in a moment of resignation) that I just use the blank name and password fields at login, but this is not really an option in elementary school. I only have 478 users in WGM, so I can't believe that would be too taxing for OS X Server!
    Thanks again for your thoughts on this.
    Regards,
    Jon
    On Sep 7, 2006, at 9:53 PM, John G wrote:
    Jon,
    The last resort is to reimage.
    Are you managing computers by Guest computers or
    computer groups?
    John, we're talking about 23 computers here - re-imaging is not an option for me alone unless I have some technical assistance (I don't know how to 'ghost' images across a network).
    I was managing the users by Groups though I did have a list of the computers called "lab computers". I just noticed that when I try accessing the Computers tab in WGM (whether on my teacher's station or on the server itself) I get the same error message:
    Got Unexpected Errror
    Error of type -14136 on line 432 of
    ComputerListPluginView.mm
    Please advise!
    Thank you again,
    Jon

    The list of users is a plist file and should be at at /Library/Preferences/com.apple.loginwindow.plist on the clients. See this thread for more information:
    http://discussions.apple.com/thread.jspa?messageID=2368769&#2368769
    If you've got a good plist from a client that sees the right users, you should be able to copy it over. If not, try backing up the file from one client and then deleting it and restarting.

  • I'm not able to do the DELETE and the SEARCH options on my list ( HELP!! )

    import java.io.*;
    public class StudentContactManager
    public static void main(String[] args) throws IOException
    char userSelection;
    final int maxStudents = 10;
    String [] Lname = new String [maxStudents];//LName= Last Name
    String [] FName= new String [maxStudents];//FName=First Name
    String [] En= new String [maxStudents];//En = Enrolment Number
    String [] PhoneNo= new String [maxStudents];
    int activeEntries = 0;
    boolean found = false;
    //================================
    System.out.println ( "1 - Initialise contact detail list" );
    System.out.println ( "2 - Display contact details list" );
    System.out.println ( "3 - Insert new entry into cotact detail list" );
    System.out.println ( "4 - Delete entry from contact detail list" );
    System.out.println ( "5 - Search cotact detail list" );
    System.out.println ( "Q - Quit" );
    System.out.print ( "Option : " );
    userSelection = Text.readChar ( "Enter option" );
    while ( userSelection != 'Q' & userSelection != 'q' )
    switch ( userSelection )
    case '1': activeEntries=0 ;
    break;
    case '2': if (activeEntries > 0)//IF contact detail list contains entries
    System.out.println("\tEnrolment Number\tFirst Name\tSecond Name\tTelephone Number");
    for (int i = 0; i<activeEntries; i ++)//FOR each stored contact
    {//DO
    System.out.println();
    System.out.println("\t"+En[i]+"\t"+"\t"+FName[i]+ Lname[i]+"\t"+"\t"+PhoneNo);//Display one/current contact detail
    }//END-FOR
    else
    {// ELSE
    System.out.println("Contact detail list empty");//Display �Contact detail list empty� message
    }//END-IF
    break;
    case '3': if(activeEntries<maxStudents)
    En[activeEntries]= Text.readString("Enter enrolment number");
    found = false;
    int i = 0;
    while ( !found && i < activeEntries)
    if (En[i].equals(En[activeEntries]) )
    found = true;
    else
    i++;
    }//end-if
    }//end-while
    if (found == false)
    FName[activeEntries]=Text.readString("Enter first name");
    Lname[activeEntries]=Text.readString("Enter last name");
    PhoneNo[activeEntries]=Text.readString("Enter telephone number");
    // Insert new contact details into contact detail list
    activeEntries++;
    else
    System.out.println("Enrolment number already exists");
    else
    System.out.println("Contact detail list full");
    break;
    case '4': Text.showMessage("Selected Option 4");
    break;
    case '5':Text.showMessage("Selected option 5");
    default: Text.showMessage("invalid selection, Please input a valid option");
    break;
    }//switch
    userSelection = Text.readChar ( "Enter option" );
    }//while
    System.exit(0);
    }//main
    }//StudentContactManager
    //===============================================================================
    I need help with case 4 and case 5...the search option should include while statement. and the 5th case is the delete option
    Thanks guys =).

    Please use the code tags when posting code (there is a button on the posting page for them). It would also help if you told us what you are trying to do, what error you are getting, and what you expect to get.
    If you are just asking us to write the code for you, then you are in the wrong place.

Maybe you are looking for

  • Flotaing Labels - How Do You Make Them With Premiere Pro?

    A recent video project i have arrived at has raised an interesting question:  is there any way to create a floating label that will rotate and move with the video within the Adobe Premiere Pro software?  What I'm looking for is basically a text box w

  • [SOLVED] xfce4 automounting problem on usb dev with utf8 encoded files

    I have problem of auto mounting usb external drive contains utf8 encoded files under xfce4. Using hal and dbus for usb device detection. Heard that I need to add iocharset=utf8 under fstab or hal fdi configure files and tried them all but didn't work

  • Send Smartform Email via Action Profile

    Hello, We have an Action Profile with a few actisn athat a workign perfectly.  I have added a new action to send  smartform via email when the the transaction is saved. The Action profile is set upfor object type BUS2000115(Quotation) with the contex

  • Oracle Erp integration

    Hello, Does Oracle document management provides integration with Oracle ERP version 11i /R12 ? If so where can i get more information. Please help.. Thanks Arun

  • Oracle 11i URL

    Hi, How can I drop the port reference from the URL? For instance rather that www.oracle.mycompany.com:6000 i only need www.oracle.mycompany.com. The port is also referenced when you click a menu item once logged in. Reason for this is that our firewa