Help needed creating consistency across pages

My site is here:
http://www.leaningtowermpls.com/index.php
The horizontal yellow bar at the top is inconsistent across
the pages Home, Menu and Locations. I haven't taken the time to
learn CSS properly yet, and most of the layout is table based. (Not
that I have mastered anything at this point.) This site needs to
get out the door, so if anyone can let me know how to solve this
problem I would really appreciate it.
-Adam

On Tue, 16 Oct 2007 00:13:52 +0000 (UTC),
"adam@blueapplestudio"
<[email protected]> wrote:
>My site is here:
>
>
http://www.leaningtowermpls.com/index.php
>
> The horizontal yellow bar at the top is inconsistent
across the pages Home,
>Menu and Locations. I haven't taken the time to learn CSS
properly yet, and
>most of the layout is table based. (Not that I have
mastered anything at this
>point.) This site needs to get out the door, so if anyone
can let me know how
>to solve this problem I would really appreciate it.
>
> -Adam
As discussed - it would be best to base on a simple template
- with
the common items like menu, to yellow bar in the template
etc.
Also you have the css in each file, far better to move it out
to an
external style sheet - so that all pages will behave the
same.
Tidy up some of the code with Dw's
Commands | Apply source formatting
~Malcolm N....
~

Similar Messages

  • Help needed with consistency across browsers

    I know this is an age old problem but I am hoping that
    someone can help me make my site look correct across all browsers.
    In particular I would like spacing around elements to be
    consistent.
    My website is boxout.co.uk
    If you view it Firefox or Safari on either a mac or pc the
    spacing is exactly as I want it. Look at the site in Explorer and
    the space at the top and bottom of the divs is missing. I have
    linked 2 screenshots to highlight the problem areas.
    Explorer -
    incorrect layout
    Safari -
    Correct Layout
    This is my css code

    Hi Alec
    The website is
    www.boxout.co.uk
    The css is www.boxout.co.uk/boxout.css
    If you need to see screenshots these can be found at
    www.boxout.co.uk/sampleimages/explorer.jpg
    www.boxout.co.uk/sampleimages/safari.jpg
    Thanks
    Jeff

  • Suggestions/help needed creating portal type page

    Let me start by saying I am very new to Java. I'm trying to create a portal - a fairly simple web page where each user who logs in will see only those application links that they are authorized to access. User A will see links to applications X, Y and Z and user B will see links to applications R and Q.
    I'm running a Tomcat 6 server, and will be using Java 6 (jsp pages, servlets, etc). I've done some research on things like tomcat realms, ldap, ad, jaas, etc. but I'm still not sure what direction I should be going in. My 'portal'/web page will consist of about 20 application links - some are links out to external web sites/applications (public web sites outside of our network), some are internal applications housed on various in-house servers on our network, some are home-grown, others are 3rd party applications, eventually some will be home-grown java applications. Each application currently has it's own login and password.
    I know that I can build a table in a relational database, or update an xml file in Tomcat and use Tomcat realms to determine who has access to what. Are there other options? I can certainly build a table, but I don't want to if there are easier ways - can AD tell me what applications a particular user has access to (so I can determine what links to display)? If so, how? (I don't know much about ad (yet)).
    I just don't want to end up building something overly complex, and missing out on something that would make this simpler. Any ideas, suggestions, etc on what I could/should be looking at would be most appreciated.
    Thanks!

    Unless you know what you're doing with absolute positioning, avoid absolute positioning! Absolute positioning actually takes an element out of the normal HTML document flow and positions it absolutely in relationship with it's first parent with a position other than static - for details read the HTML specs at the W3C.
    Ideally you should use the normal HTML document flow. Divs are block level elements meaning that they act like blocks that take up a height (determined by children content) and width (the full width of the page or it's parent container, unless you tell it otherwise).
    For your CSS try this:
    #techlistcontainer {
        width: 75%;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 30;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 30;
    How does that work with your templates?

  • Help Needed with Dynamic RePort PAges

    I've created a link that dynamically will generate a data
    report from my db. I have about 30 reports the client needs to be
    able to run. Do I have to create a separate page for every single
    recordset?? Is there a more efficient way to do this??

    You could make a drop down menu with the name of the report
    in it and then show that report on the redirect page using an if
    statement to determine which sql statement to run. Also you can
    have multiple recordset on a page.
    Are you using php, asp or cfm?

  • Help in creating a confirmation page

    i have created an application form in asp and would like new
    members to receive email telling them they have successfully
    registered and another to myself the administrator telling me that
    person x has registered. any assistance would be
    appreciated.

    Hi,
    I use CDOSYS to send email from my ASP. You will first need
    to check that your host allows this. It's the default now on
    Windows servers so there should not be an issue here.
    For more info look here:
    http://www.powerasp.com/content/new/sending_email_cdosys.asp
    You will then need to build your form, add validation as
    needed and build a 'thankyou.asp' page which you redirect to when
    the form has been submitted.
    The 'thankyou.asp' will include your various SMTP gateway
    authentication requirements and also the field names of your form
    so as to build your E-Mail.
    Something like this maybe:
    <%
    Dim objMail
    Set objMail = Server.CreateObject("CDO.Message")
    Set objConfig = Server.CreateObject("CDO.Configuration")
    'Configuration:
    objConfig.Fields(cdoSendUsingMethod) = cdoSendUsingPort
    objConfig.Fields(cdoSMTPServer)="auth.smtp.hostname.co.uk"
    objConfig.Fields(cdoSMTPServerPort)=25
    objConfig.Fields(cdoSMTPAuthenticate)=cdoBasic
    objConfig.Fields(cdoSendUserName) = "mailbox_username"
    objConfig.Fields(cdoSendPassword) = "mailbox_password"
    'Update configuration
    objConfig.Fields.Update
    Set objMail.Configuration = objConfig
    objMail.From = Request("email")
    objMail.To = "[email protected]"
    objMail.Subject = "Details from My Form"
    objMail.HTMLBody = "<font size=2 face=verdana>"
    objMail.HTMLBody = objMail.HTMLBody & "<strong>"
    & "Contact Name " & "</strong>" &
    Request.form("name") & "<br>" & "<br>"
    objMail.HTMLBody = objMail.HTMLBody & "<strong>"
    & "Telephone Area Code " & "</strong>" &
    Request.form("telcode") & "<br>" & "<br>"
    objMail.HTMLBody = objMail.HTMLBody & "<strong>"
    & "Telephone Number " & "</strong>" &
    Request.form("telnumber") & "<br>" & "<br>"
    objMail.HTMLBody = objMail.HTMLBody & "<strong>"
    & "Email " & "</strong>" & Request.form("email")
    & "<br>" & "<br>"
    objMail.HTMLBody = objMail.HTMLBody & "<strong>"
    & "Message " & "</strong>" &
    Request.form("message") & "<br>" & "<br>"
    objMail.HTMLBody = objMail.HTMLBody & "Sent at " &
    Now() & "<br>" & "<br>" & "</font>"
    objMail.Send
    If Err.Number = 0 Then
    Response.Write(".")
    Else
    Response.Write("Sorry, There was an error processing your
    questionnaire. Please try again. Code: " & Err.Number)
    Err.Clear
    End If
    Set objMail=Nothing
    Set objConfig=Nothing
    %>
    Hope this helps some
    Jules

  • Help in creating a OAF Page

    My requirement is to create a page and in that I need to have the fields like date, employee number, batch number, person type, group name and below these fields I need to have an advance table with other fields. User can enter one batch# and employee number and date and for that employee, user should enter the rows in advance table and all these values should store in a single VO including the fields above the advanced table. I am not sure if this will work as we are entering the above fileds one time and multiple rows in advanced table.
    If you see any similar page in any of the module, please let me know the responsibility and function, I will check the page and code behind that.
    Thanks,
    HC

    it is not recomendated to have both header master and line child in same table.
    But you can create such page. Oracle will not have such page.
    what problem are you facing while development.
    --Parag                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Help Needed Created Standalone Network for iTunes DJ

    I use my MBP to manage backing tracks for a band. I would like to use iTunes DJ for requests from the audience via wireless connection via *iPhone/iPod Touch Remote app*. I would use this option in conjunction with a printed song list and small request cards (for those who don't have iPhones).
    I can't connect to an existing network as most venues do not have wireless. I would like to set up my MBP as a wireless base station that can be accessed via an iPhone/iPod Remote app. Besides, I would prefer to have a network that echo's the band's name.
    I know I have to use the "*Create computer-to-computer Networks*", but I am unsure of what settings I need to get the network working.
    I will use Locations to quickly activate the MBP as the base station.
    Any help or suggestion setting up my MBP as a wireless base station would be greatly appreciated.
    TIA

    TSG wrote:
    yep, tried changing cables....even upto cat6!!! no joy.
    starting to do my head in now.....might call in a network person/tech but i hate the idea of being charged to see him repeat all i have already done!
    Agreed. I'd keep at it yourself. I guarantee it will be something simple.
    what are the benefits of a switcher? (never used one before) any recomends?
    A switch is just like a hub, except that instead of always sending packets to your entire network, it only sends them where they need to go. The benefits grow with the size and speed of your network. Switches used to be much more expensive than hubs but not any more. Normally I'd recommend almost any Linksys device, but in this case dlink seems to have a better one:
    http://www.amazon.com/D-Link-DGS-2205-5-port-Desktop-Switch/dp/B000FIVDIA
    Again, I don't think your dlink hub is responsible for this dramatic bottleneck though.

  • Help needed, Createing Dynamic User input

    Hello,
    I am attempting to create some dynamic user input by "predicting" what the user requires in a text box.
    For example if the user enters "Smi" I have a select list pop up which gives the user all options that begin with "Smi".
    I am able to achieve the popups but the interface is quite jerky and not terribly responsive I am trying to solve this by using a thread which starts and stops when new input is received but it is still not quite right.
    The program uses a Sorted TreeSet to hold the data (I thought this would give me a quick search time) and a simple interface at this stage.
    Any help would be fantastic
    Thanks in advance :P
    import java.io.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.text.*;
    import java.util.*;
       /** This program represents part of a larger user interface for allowing the
       user to select data from a file or database.
       <p>
       When the program starts up, it will read in data from a given file, and hold
       it in some type of container allowing rapid access.
       <p>
       The user may then type in the first few letters of the surname of a person,
       and this program should immediately present in a popup dialog the names which
       match.  The user will be able to click on one of the names in the popup and
       that will cause all data about that person to be displayed in the JTextArea
       at the bottom of the window.
       <p>
       This program requires the FormLayout.class, FormLayout$Placement.class, and
       FormLayout$Constraint.class files in the same directory
       (folder) or in its classpath.  These is provided separately.
    class PartMatch extends JFrame implements Runnable
                        /** Close down the program. */
       JButton quitbtn;
                        /** Field for the surname. */
       JTextField namefld;
                        /** Full details of the person(s). */
       JTextArea  results;
                        /** Popup dialog to display the names and addresses which
                        match the leading characters given in namefld. */
       Chooser matches;
                      /** Default background color for a window. */
       final static  Color            defBackground = new Color(0xD0C0C0);
                      /** Default foreground color for a window. */
       final static  Color            defForeground = new Color(0x000000);
                      /** Default background color for a field */
       final static  Color            fldBackground = new Color(0xFFFFFF);
                      /** Default background color for a button */
       final static  Color            btnBackground = new Color(0xF0E0E0);
       final static  Color            dkBackground = new Color(0xB0A0A0);
                      /** Larger font */
       final static  Font bold = new Font("Helvetica", Font.BOLD, 30);
       TreeSet members;
       String input;
       String[] found;
       public static void main(String arg[])
          UIManager.put("TextField.background",fldBackground);
          UIManager.put("TextField.foreground",defForeground);
          UIManager.put("TextField.selectionBackground",btnBackground);
          UIManager.put("TextArea.background",fldBackground);
          UIManager.put("TextArea.foreground",defForeground);
          UIManager.put("TextArea.selectionBackground",btnBackground);
          UIManager.put("Panel.background",defBackground);
          UIManager.put("Label.background",defBackground);
          UIManager.put("Label.foreground",defForeground);
          UIManager.put("Button.background",btnBackground);
          UIManager.put("Button.foreground",defForeground);
          UIManager.put("CheckBox.background",defBackground);
          UIManager.put("ScrollBar.background",defBackground);
          UIManager.put("ScrollBar.thumb",btnBackground);
          UIManager.put("ComboBox.background",btnBackground);
          UIManager.put("ComboBox.selectionBackground",dkBackground);
          PartMatch trial = new PartMatch(arg);
       public PartMatch( String [] arg )
          super("Part Match");
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          Container cpane = getContentPane();
          FormLayout form = new FormLayout(cpane);
          JLabel lab1 = new JLabel("Fetch details") ;
          lab1.setFont( bold );
          form.setTopAnchor( lab1, 4 );
          form.setLeftAnchor( lab1, 4 );
          JLabel lab2 = new JLabel("Surname: ") ;
          form.setTopRelative( lab2, lab1, 4 );
          form.setLeftAlign( lab2, lab1 );
          namefld = new JTextField( 30 );
          form.setBottomAlign( namefld, lab2 );
          form.setLeftRelative( namefld, lab2, 4 );
          namefld.addCaretListener( new CaretListener()
             public void caretUpdate(CaretEvent e)
                 showMatches();
          quitbtn = new JButton( "Quit" );
          quitbtn.addActionListener( new ActionListener()
             public void actionPerformed(ActionEvent e)
                quitProcessing();
          form.setBottomAlign( quitbtn, namefld );
          form.setLeftRelative( quitbtn, namefld, 15 );
          results = new JTextArea( 10,50 );
          results.setEditable(false);
          JScrollPane jsp = new JScrollPane( results,
                                     JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                                     JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );
          form.setTopRelative( jsp, lab2, 6 );
          form.setLeftAlign( jsp, lab2 );
          form.setBottomAnchor( jsp, 5 );
          form.setRightAnchor( jsp, 5 );
          form.setRightAnchor( quitbtn, 5 );
          matches = new Chooser( this );
          //matches.setUndecorated(true);
          pack();
          setVisible(true);
          namefld.requestFocus();
          if (arg.length > 0) init(arg[0]);
          else init("triathlon.txt"); //<<<<<<<<<<<<<<<< Place the default filename here
          /** Called once only, at the end of the constructor, to read the data
            * from the membership file.
       public void init( String fname )
          members = new TreeSet();
           try {
               FileReader fr = new FileReader(new File (fname));
               Scanner scan = new Scanner(fr);
               trimember cmem;
               String cLine, eTag, memberNo, first, last, gender, yob, tel ,addr,
                       club;
               while(scan.hasNextLine())
                   cLine = scan.nextLine();
                   Scanner scan2 = new Scanner(cLine);
                   scan2.useDelimiter(";");
                   eTag = scan2.next().trim();
                   memberNo = scan2.next().trim();
                   first = scan2.next().trim();
                   last = scan2.next().trim();
                   gender = scan2.next().trim();
                   yob = scan2.next().trim();
                   tel = scan2.next().trim();
                   addr = scan2.next().trim();
                   club = scan2.next().trim();
                   cmem = new trimember(eTag, memberNo, first, last, gender, yob,
                           tel, addr, club);
                   members.add(cmem);
           catch (FileNotFoundException ex)
               results.append("Sorry can't find the input file\n");
               results.append("Please check file name and location and try again");
               ex.printStackTrace();
          /** Called every time there is a change in the contents of the text field
            * namefld.  It will first clear the text area.  It then needs to search
            * through the container of data to find all records where the surname
            * starts with the characters that have been typed.  The names and
            * addresses need to be set up as strings and placed in
            * an array of Strings.  This can be placed in the "matches" window and
            * displayed for the user, inviting one to be selected.
            * <p>
            * The performance of this is very important.  If necessary, it may be
            * necessary to run as a separate thread so that the user interface is
            * not delayed.  It is essential that the user be able to type letters at a
            * reasonable speed and not have the keystroke processing held up by
            * previous text.
       public void showMatches( )
           run();
                // First clear the text area
          //results.setText("");
                // Determine the leading characters of the surname that is wanted
                input = namefld.getText();
                // Locate the data for this name, and display each matching item
                //  in the JTextArea ...
                // Example of how to set the data in the popup dialog
          matches.list.setListData(found);
          matches.pack();   // resize the popup
                // set the location of the popup if it is not currently visible
          if ( ! matches.isVisible())
             Dimension sz = matches.getSize();
             Point mouse = getMousePosition();
             Point framepos = getLocation();
             int x=0, y=0;
             if (mouse == null)
                Point pt = results.getLocation();
                x = pt.x + 20 + framepos.x;
                y = pt.y + 20 + framepos.y;
             else
                x = mouse.x - 2 + framepos.x;
                y = mouse.y - 2 + framepos.y;
             matches.setLocation(x,y);
          matches.setVisible(true);
          namefld.requestFocus();
          /** Perform any final processing before closing down.
       public void quitProcessing( )
          // Any closing work.  Then
          System.exit(0);
        public void run()
            ArrayList<String> foundit = new ArrayList<String>();
            System.out.println(input);
            if(input != null)
            Iterator it = members.iterator();
            while(it.hasNext())
               trimember test = (trimember) it.next();
               if (test.last.startsWith(input))
                   foundit.add(test.last +", "+ test.first);
            found = new String[foundit.size()];
            for(int i=0; i<foundit.size();i++)
                found[i] = foundit.get(i);
         /** A window for displaying names and addresses from the data set which
          match the leading characters in namefld.
          <p>
          This will automatically pop down if the user moves the mouse out of the
          window.
          <p>
          It needs code added to it to respond to the user clicking on an item in
          the displayed list. */
       class Chooser extends JWindow
                /** To display a set of names and addresses that match the leading
                characters of the namefld text field. */
          public JList list = new JList();
          Chooser( JFrame parent )
             super( parent );
             Container cpane = getContentPane();
             cpane.addMouseListener( new MouseAdapter()
                public void mouseExited(MouseEvent e)
                   Chooser.this.setVisible(false);
             cpane.add("Center",list);
             list.addListSelectionListener( new ListSelectionListener()
                public void valueChanged(ListSelectionEvent e)
                   Chooser.this.setVisible(false);
                   System.out.println("ValueChanged");
                   // First clear the text area
                   results.setText("");
                   String in = (String) list.getSelectedValue();
                   System.out.println("Selected Value was : "+in);
                   String[] inlf = in.split(", ");
                   System.out.println("inlf[0]:"+inlf[0]+" inlf[1]:"+inlf[1]);
                   results.append("Surname \tFirst \teTag \tMemberNo \tSex \tYOB " +
                           "\tTel \tAddress \t\t\tClub\n");
                   Iterator it = members.iterator();
                   while(it.hasNext())
                       trimember test = (trimember) it.next();
                       if (test.last.equals(inlf[0])&&test.first.equals(inlf[1]))
                           results.append(test.toString()+"\n");
                   namefld.requestFocus();
          public class trimember implements Comparable
           String eTag;
           public String memberNo;
           public String first;
           public String last;
           String gender;
           String yob;
           String tel;
           String addr;
           String club;
           public trimember(String eT, String me, String fi, String la,
                   String ge, String yo, String te, String ad, String cl)
               eTag = eT;
               memberNo = me;
               first = fi;
               last = la;
               gender = ge;
               yob = yo;
               tel = te;
               addr = ad;
               club = cl;         
           //To String method to output string of details
           public String toString()
               return last + "\t" + first + "\t" + eTag + "\t" +
                       memberNo + "\t" + gender + "\t" + yob + "\t"+ tel + "\t" +
                       addr + "\t" + club;
           //Compare and sort on Last name
           public int compareTo(Object o)
               trimember com = (trimember) o;
               int lastCmp = last.compareTo(com.last);
               int firstCmp = first.compareTo(com.first);
               int memCmp = memberNo.compareTo(com.memberNo);
               if (lastCmp == 0 && firstCmp !=0)return firstCmp;
               else if (lastCmp==0&&firstCmp==0)return memCmp;
               else return lastCmp;
    }

    Please don't cross-post. It is considered very rude to do that here:
    http://forum.java.sun.com/thread.jspa?messageID=9953193

  • Help needed to introduce a page break

    Hi ,
    I have a repeated subform with xml data_instance like this(data.xml) :
              State A
                        Premium Period A
                                  80170
                                  80180
                                  80170
                        Premium Period B
                                  80170
                                  80180
              State B
                        Premium Period A1
                                  80170
                                  80180
                                  80170
                        Premium Period B1
                                  80170
                                  80180
                                  80170
    I have created the subforms structure also and working fine.
    I want whenever the state changes i want to go to the next page .
    I have tried setting all the options like Place and After but the designer geenrates the blank pages either at the top or at the last .
    a. How do i get rid of the extra blank page
        OR
    How do i acheive the page break whenever state changes.
    Please help me asap as i have wasted lot of time int his.
    Many Thanks
    Mohit Gupta

    I believe the new Conditional Break feature in Designer 7.1 can help you solve this problem. It'll let you specify an expression which compares the previous value of the section_name field with the value of the current instance of section_name and, if they're different, insert a page break to the top of the next page.
    Assuming the basic structure inferred by the Data View palette when you drag & drop the options node onto the form, make the page subform Flowed (using the Content property Object palette's Subform tab), make the options subform repeatable (using the Object palette's Binding tab) and then go to the Object palette's Pagination tab on the options subform. There, you'll see a middle section labeled
    Conditional Breaks with an Edit button that'll be enabled. Click on that to set an expression like this (in FormCalc):
    options[-1].section_name ne options.section_name
    where the Break property is set to
    Before and the To property is set to
    Top of Next Page.
    The result will be a form which lists each section on its own page without have a superfluous blank page.
    I've attached a sample form based on your sample data which breaks whenever the state changes.
    Stefan
    Adobe Systems

  • Help needed creating Web Service Proxy with SSL

    Hi All, I really need your help. I need to create a Web Service proxy for a web service which is SSL enabled and developed in Netbeans. I have been given keystore as well as certificates files and I have copied "keystore.jks" in my c:\Documents and Settings\<user> and the certifcates to <JAVA_HOME>\jre\lib\security\cacerts. Now when I run the Proxy creation wizard and give the location of the WSDL file, JDeveloper gives an error "Error importing schemas: Default SSL Context init failed: Invalid keystore format". Can anyone please guide me what I am doing wrong here. I will appreciate your help.
    Thanks in advance.
    John

    I am using JDeveloper 10.1.3.3.0. Thanks Heaps

  • Form help needed- creating a PRIORITY FIELD

    I cannot figure this out as i have looked all over the
    internet to no avail.
    I have a 30 question coldfusion flash form.
    I would like the user to select their top eight questions by
    having a drop menu labeled 1 thru 8 beside each question.
    The priority number can only be chosen once.
    Help please...

    zoemayne wrote:
    java:26: cannot find symbol
    symbol  : method add(java.lang.String)
    location: class Dictionary
    add(toAdd);this is in the dictionary class
    generic messageThat's because there is no add(...) method in your Dictionary class: the add(...) method is in your WordList class.
    To answer your next question "+how do I add things to my list then?+": Well, you need to create an instance of your WordList class and call the add(...) method on that instance.
    Here's an example of instantiating an object and invoking a method on that instance:
    Integer i = new Integer(6); // create an instance of Integer
    System.out.println(i.toString()); // call it's toString() method and display it on the "stdout"

  • Basic help needed creating a trigger

    I'm completely new to SQL programming altogether, and I'm trying to set up a trigger that will make some checks before adding a new row to a given table. I am trying to do this because I need to enforce a CONSTRAINT that checks whether the dates entered for 'deadline' and 'startDate' are greater than sysdate and less than (sysdate + 365), and I found out that you cannot reference sysdate from a CONSTRAINT. Therefore I am now attempting to do this using a trigger, but I don't really know how to do this. Here is the sql code used to create the table:
    -- PLACEMENT TABLE
    DROP TABLE placement;
    CREATE TABLE placement
    contactId Int,
    placementId Int,
    position VARCHAR(60),
    description CLOB,
    lengMonths Int,
    salary Number(7,2),
    deadline DATE,
    startDate DATE,
    addrLine1 VARCHAR(120),
    postCd VARCHAR(10)
    And here is my attempt at creating the trigger that will only allow the deadline and startDate to be entered if they satisfy the following check: (sysdate < deadline/startDate <= sysdate+365)
    CREATE OR REPLACE TRIGGER trg_deadline_low BEFORE INSERT OR UPDATE OF deadline ON placement
    BEGIN
    IF :deadline <= SYSDATE THEN
    ROLLBACK;
    END IF;
    END;
    CREATE OR REPLACE TRIGGER trg_deadline_high BEFORE INSERT OR UPDATE OF deadline ON placement
    BEGIN
    IF :deadline > SYSDATE + 365 THEN
    ROLLBACK;
    END IF;
    END;
    If possible, I would like for these triggers to display an error rather than just using ROLLBACK, but I'm not sure how! At the moment, these triggers do not work at all; I get an error message "Warning: Trigger created with compilation errors." when I attempt to create the triggers in the first place.
    Can anyone tell me why I am seeing this error when trying to implement the triggers? And if anyone could also improve on my amateur attempt at coding a trigger, then that would be great! Thanks for any help!

    Oops!
    Nicolas, Thank you for correcting my mistake.
    SQL> edit
    Wrote file afiedt.buf
    1 CREATE TABLE placement
    2 (
    3 contactId Int,
    4 placementId Int,
    5 position VARCHAR(60),
    6 description CLOB,
    7 lengMonths Int,
    8 salary Number(7,2),
    9 deadline DATE check (deadline between sysdate and sysdate+365),
    10 startDate DATE,
    11 addrLine1 VARCHAR(120),
    12 postCd VARCHAR(10)
    13* )
    SQL> /
    deadline DATE check (deadline between sysdate and sysdate+365),
    ERROR at line 9:
    ORA-02436: date or system variable wrongly specified in CHECK constraint
    SQL> edit
    Wrote file afiedt.buf
    1 CREATE TABLE placement
    2 (
    3 contactId Int,
    4 placementId Int,
    5 position VARCHAR(60),
    6 description CLOB,
    7 lengMonths Int,
    8 salary Number(7,2),
    9 deadline DATE check (deadline between to_date('2007-03-21','yyyy-mm-dd') and to_date('2008-03-21','yyyy-mm-dd')
    10 startDate DATE,
    11 addrLine1 VARCHAR(120),
    12 postCd VARCHAR(10)
    13* )
    SQL> /
    Table created.
    On the contrary, I think that OP want an error instead of rollback : "I would like for these triggers to display an error rather than just using ROLLBACK"Ah, I had misread additionally. Sorry.

  • Help needed creating vertical bullet list using div tag and css

    Hi,
    I think there is something quite fundamental that I'm missing when using div tags - I seem to keep running into problems with them.
    I'm trying to create a vertical bullet list. It works fine when I try the code on its own as follows:
    <!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>Untitled Document</title>
    <style type="text/css">
    <!--
    #techlistcontainer {
        /*list-style-type: square;*/
        position: absolute;
        top: 20px;
        left: 0;
        z-index: 2;
        width: 75%;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 30;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 30;
    #techlistcontainer ul {
      margin-top: 0;
      margin-left: 0;
      padding-left: 0;
      list-style-type: none;
      font-family: Arial, Helvetica, sans-serif;
    #techlistcontainer li {
        margin-bottom: 8px;
        list-style-type: circle;
        margin-left: 50px;
        padding-right: 30px;
    -->
    </style>
    <head>
    </head>
    <body>
    <div id="techlistcontainer">
    <ul id="techlist">
              <li>Java Messaging Service (JMS)</li>
              <li>Message Driven Beans </li>
              <li>Remote Session EJBs with multi-threading</li>
              <li>Message Oriented Middleware(MOS) such as Websphere MQ series, Mercator with SAP/ERP</li>
              <li>XML messaging</li>
              <li>CORBA (Common Object Request Broker Architecture), RMI (Remote Method Invocation)</li>
        </ul>
    </div>
    </body>
    </html>
    http://www.pa-solutions.co.uk/vertical_list.html
    When I insert that into my site template page, its all over the place:
    http://www.pa-solutions.co.uk/development.html
    I've put the css code into a seperate file http://www.pa-solutions.co.uk/pas.css - I get the same results when its embedded into the html doc.
    Please help before I pull all my hair out.
    Thanks,
    Phil.

    Unless you know what you're doing with absolute positioning, avoid absolute positioning! Absolute positioning actually takes an element out of the normal HTML document flow and positions it absolutely in relationship with it's first parent with a position other than static - for details read the HTML specs at the W3C.
    Ideally you should use the normal HTML document flow. Divs are block level elements meaning that they act like blocks that take up a height (determined by children content) and width (the full width of the page or it's parent container, unless you tell it otherwise).
    For your CSS try this:
    #techlistcontainer {
        width: 75%;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 30;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 30;
    How does that work with your templates?

  • HELP NEEDED CREATING VI WITH POTENTIOMETER

    Hi Everyone,
    I have a DAQ 6009, linear potentiometer and a spring.
    I want to measure the displacement of a spring using the linear pot and correspond this displacement into a force by multiplying by spring constant k. (F=-k.x)
    F=force, k = spring constant, x = displacment
    I need to create a VI that will,
    Take voltage readout of potentimeter and correspond it to  0-110mm displacement of spring. ie 0V=0mm, 5V =110mm.
    Multiply the displacement mm by k (which is 25).
    Record values into excel file and display when stop button is pressed.
    Record peak force (amplitude).
    When the pot is fully extented it would correspond to 0mm/0V.
    Please find attached current Labview VI and linear pot.
    As you can see it is multiplying the voltage reading by 25, I want to correspond this voltage to a displacment and then multiply by 25 so I will have output in Newtons.
    Thank you for your help,
    John

    I am fairly new to Labview, so excuse my lack of knowledge at the moment.
    I didn't use a custom scale. Can you inform me of what to do?
    I multiplied voltage by 20 to correspond it to mm then by k (25) to convert it to a force,  is this correct?
    I reversed the ground and 5V supply on the 6009 so it will be reading 0 when pot is fully extended?
    Below is DAQ Assistant and Block diagram/front panel.
    Also my read from measurement file graph is only generating a somewhat straight line instead of an actual waveform??

  • Help needed creating a linked list program

    I have been trying to create a linked list program that takes in a word and its definition and adds the word to a link list followed by the definition. i.e. java - a simple platform-independent object-oriented programming language.
    the thing is that of course words must be added and removed from the list. so i am going to use the compareTo method. Basically there a 2 problems
    1: some syntax problem which is causing my add and remove method not to be seen from the WordList class
    2: Do I HAVE to use the iterator class to go thru the list? I understand how the iterator works but i see no need for it.
    I just need to be pointed in the right direction im a little lost.................
    your help would be greatly appreciated i've been working on this over a week i dont like linked list..........
    Here are my 4 classes of code........
    * Dictionary.java
    * Created on November 4, 2007, 10:53 PM
    * A class Dictionary that implements the other classes.
    * @author Denis
    import javax.swing.JOptionPane;
    /* testWordList.java
    * Created on November 10, 2007, 11:50 AM
    * @author Denis
    public class Dictionary {
        /** Creates a new instance of testWordList */
        public Dictionary() {
            boolean done=false;
    String in="";
    while(done!=true)
    in = JOptionPane.showInputDialog("Type 1 to add to Dictionary, 2 to remove from Dictionary, 3 to Print Dictionary, and 4 to Quit");
    int num = Integer.parseInt(in);
    switch (num){
    case 1:
    String toAdd = JOptionPane.showInputDialog("Please Key in the Word a dash and the definition.");
    add(toAdd);
    break;
    case 2:
    String toDelete = JOptionPane.showInputDialog("What would you like to remove?");
    remove(toDelete);
    break;
    case 3:
    for(Word e: list)
    System.out.println(e);
    break;
    case 4:
    System.out.println("Transaction complete.");
    done = true;
    break;
    default:
    done = true;
    break;
       }//end switch
      }//end while
    }//end Dictionary
    }//end main
    import java.util.Iterator;
    /* WordList.java
    * Created on November 4, 2007, 10:40 PM
    *A class WordList that creates and maintains a linked list of words and their meanings in lexicographical order.
    * @author Denis*/
    public class WordList{
        WordNode list;
        //Iterator<WordList> i = list.iterator();
        /*public void main(String [] args)
        while(i.hasNext())
        WordNode w = i.next();
        String s = w.word.getWord();
        void WordList() {
          list = null;
        void add(Word b)
            WordNode temp = new WordNode(b);
            WordNode current,previous = null;
            boolean found = false;
            try{
            if(list == null)
                list=temp;
            else{
                current = list;
                while(current != null && !found)
                    if(temp.object.getWord().compareTo(current.object.getWord())<0)
                        found = true;
                    else{
                    previous=current;
                    current=current.next;
                temp.next=current;
                if(previous==null)
                    list=temp;
                else
                    previous.next=temp;
                }//end else
            }//end try
            catch (NullPointerException e)
                System.out.println("Catch at line 46");
        }//end add
    /*WordNode.java
    * Created on November 4, 2007, 10:40 PM
    *A class WordNode that contains a Word object of information and a link field that will contain the address of the next WordNode.
    * @author Denis
    public class WordNode {
        Word object;//Word object of information
        WordNode next;//link field that will contain the address of the next WordNode.
        WordNode object2;
        public WordNode (WordNode wrd)
             object2 = wrd;
             next = null;
        WordNode(Word x)
            object = x;
            next = null;
        WordNode list = null;
        //WordNode list = new WordNode("z");
        Word getWord()
            return object;
        WordNode getNode()
            return next;
    import javax.swing.JOptionPane;
    /* Word.java
    * Created on November 4, 2007, 10:39 PM
    * A class Word that holds the name of a word and its meaning.
    * @author Denis
    public class Word {
        private String word = " ";
        /** Creates a new instance of Word with the definition*/
        public Word(String w) {
            word = w;
        String getWord(){
            return word;
    }

    zoemayne wrote:
    java:26: cannot find symbol
    symbol  : method add(java.lang.String)
    location: class Dictionary
    add(toAdd);this is in the dictionary class
    generic messageThat's because there is no add(...) method in your Dictionary class: the add(...) method is in your WordList class.
    To answer your next question "+how do I add things to my list then?+": Well, you need to create an instance of your WordList class and call the add(...) method on that instance.
    Here's an example of instantiating an object and invoking a method on that instance:
    Integer i = new Integer(6); // create an instance of Integer
    System.out.println(i.toString()); // call it's toString() method and display it on the "stdout"

Maybe you are looking for

  • ITunes 10.6.3 freezes

    For whatever reason, this problem does not seem to affect iTunes on my Macbook Pro, but it's made iTunes on my iMac effectively inoperable: Listening to a podcast, or moving the scrubber on a podcast while listening to it, frequently causes the entir

  • ESB(Enterprise Services Builder) access error after PI 7.1 install

    We have installed PI 7.1 system. Everything went well with installation. We can access all the components such as RWB, Directory, SLD,... However when we try to access ESB(Enterprise Services Builder) we are geting the following error: "Cannot connec

  • Is it possible to keep the text in an internal linked object?

    I have created a button with a text field. This is an internal linked object. I was hoping to be able to edit the text for each instance of the button. But still be able to later change the look. Is there a way to preserve the local text edits? Thank

  • Hidden text

    Hello. I am having problems with hidden text in docx files. If I have document with Heading 2 formatting and color text to blac I can't see it nor on iPhone 4 nor on iPad/iPad 2. Only blank space is shown where text is located. If I select area where

  • System generated tickets and customer generated tickets

    what are system generated tickets and customer generated tickets. Edited by: jyothys9 on Mar 15, 2010 6:56 AM