Help with Divs need please

Hello could someone possibly help me.
My page layout has a top banner ("banner"), then main content
below in the middle (middletext), and a fotter ("footer") below the
"middletext" div
I want place a div of say 100px directly to the right of the
"middletext" div. The layout is fluid so I want the right div to
move with the rest of the page when resized in an IE window. Here
is the code for the css -
body {
background-color: #666666;
background-repeat: repeat-x;
#background {
background-color: #999999;
background-repeat: repeat-x;
width: 80%;
#content {
background-color: #CCCCCC;
background-repeat: repeat-x;
height: 300px;
#middletext {
background-color: #FFFFFF;
background-repeat: repeat-x;
margin-left: 200px;
margin-right: 200px;
height: 300px;
#footer {
background-color: #9999FF;
background-repeat: repeat-x;
height: 100px;
#rightcontent {
background-repeat: repeat-x;
width: 100px;
background-color: #CCCC66;
height: 100px;
position: absolute;
left: 1052px;
top: 135px;
#banner {
background-color: #996633;
background-repeat: repeat-x;
height: 100px;
And the code for the html page -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<link href="test.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4
resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW ||
innerHeight!=document.MM_pgH) location.reload();
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<div id="background">
<div id="banner">Content for id "banner" Goes
Here</div>
Content for id "background" Goes Here
<div id="content">
<div id="middletext">Content for id "middletext" Goes
Here</div>
id content </div>
<div id="footer">Content for id "footer" Goes
Here</div>
</div>
</body>
</html>
I also have the width of the page set to 80%, just to give a
small border, but how can I center the entire page?
Many thanks in advance!!
Billy.

Add the 'right' <div> before the 'middletext'
<div> and float it right
with a width of 100px. See code and css below.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<link href="test.css" rel="stylesheet"
type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4
resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW ||
innerHeight!=document.MM_pgH)
location.reload();
MM_reloadPage(true);
//-->
</script>
<style>
body {
background-color: #666666;
background-repeat: repeat-x;
#background {
background-color: #999999;
background-repeat: repeat-x;
width: 80%;
#content {
background-color: #CCCCCC;
background-repeat: repeat-x;
height: 300px;
#middletext {
background-color: #FFFFFF;
background-repeat: repeat-x;
margin-left: 200px;
margin-right: 200px;
height: 300px;
#footer {
background-color: #9999FF;
background-repeat: repeat-x;
height: 100px;
#rightcontent {
background-repeat: repeat-x;
width: 100px;
background-color: #CCCC66;
height: 100px;
position: absolute;
left: 1052px;
top: 135px;
#banner {
background-color: #996633;
background-repeat: repeat-x;
height: 100px;
#right {
float: right;
width: 100px;
background-color:#FFFFFF;
</style>
</head>
<body>
<div id="background">
<div id="banner">Content for id "banner" Goes
Here</div>
Content for id "background" Goes Here
<div id="content">
<div id="right">right</div>
<div id="middletext">Content for id "middletext" Goes
Here</div>
<div id="footer">Content for id "footer" Goes
Here</div>
</div>
</div>
</body>
</html>

Similar Messages

  • Help with Launchpad Needed please.

    Please can some one tell how to stop getting all these updates in my Launchpad, I downloaded some code which got rid of the icons,(Happy) I started to organise them all,  then Microsoft update put 20 icons on it, and they cannot be trashed. Hate This! Its a waist of time using the code to delete if everytime there is an update on something or other, loads of icons appear. Why can I not have control over my own Mac!

    I think Ive worked out my own problem...
    After I attach the model to the parent with addChild, i then
    set its transform to transform(). ie.
    theChildModel.transform = transform()
    Which solves the problem of the child being offset from the
    parent.
    (below is a seperate problem, I'm using a sphere primitive,
    so theres no issue with possibly the sphere having an popsitional
    offset when i attach it as a child. My previous question was in
    relation to when I attach the actual head object, which did have an
    offset)
    But Now, I have a problem with the parent being positioned
    incorrectly when I try to use boneplayer to animate it.
    I tried to get down to basics, to work out where the position
    was first going wrong, and its when i add the bonesPlayer modifier.
    These are the simple steps I take...
    I copy the Torso model into the 3D world. (this has a bone
    structure and a dummy Model in the correct position for head,
    hands, feet)
    Then I create a sphere primitive.
    Then I add the sphere as a child of the Torso's child[1]
    dummy Model, which I know is the 'head's dummy Model.
    That works fine, the sphere is in the correct 'head'
    position.
    But then when I add the bonesPlayer modifier to the Torso
    Model, the sphere jumps to an incorrect position(about in the
    middle of the torso model).
    Anyone experienced something like this before? Should I be
    doing something first before I add the bonesPlayer modifier?
    I have a very trimmed down demo of what Im talking about, if
    anyone would like to see the code.
    Any help greatly appreciated.
    Glen

  • I am using InDesign CS5. I have a body of text which is ranged left with tabbed indents. My client now wants the copy to be justifed, keeping the tabbed indents. Help and advice needed please!

    I am using InDesign CS5. I have a body of text which is ranged left with tabbed indents. My client now wants the copy to be justifed, keeping the tabbed indents. Help and advice needed please!

    Hi
    That screen grab helps a lot. There’s a much easier way of doing what you’re doing.
    Remove all your tabs and set the text in justified paragraphs.
    I’ve typed in dummy text in the example I made below, but after “19.1” put in a space and put your blinking cursor after the space and before the ’N’ of ‘Notices'.
    Then hold down the Command key and hit Backspace (on Mac at least - it’s the key between the Inverted commas/ apostrophe key and the return key).
    The text will jump into place the way you want it to.
    Hope that helps
    Paul
    PS You can set a tab, instead of using a space, in the description I gave above. So, after 19.1 or 19.2 or 19.185 etc etc insert a tab, then hit the Command Backspace after every paragraph number and they'll all line up exactly together. You'll find that editing text within the paragraphs
    after you've set it will be LOADS easier this way.
    You can put the tab anywhere you want it to be using 'Command-ShiftT' and putting a 'left align' tab just after the number. Just type the Command Backspace after the paragraph number and it'll work

  • Help with access control please

    So I'm trying to set up my brother's PSP to the wirless network through MAC address timed access. What I want to do is make it so that he can only access it through certain times in the day. I'm having troubles with actually getting it to work. Everytime I set it up, the PSP only show's up as a DHCP client and not a Wireless client. I tried the option panel with the add wireless clients through the first try access. Could I get some help with this issue please? Thanks!

    Just to calm your fears... There is no conspiracy. If someone had an answer or a suggestion they would post it.

  • I would need help with the following please: I need to save some of my email on a disk. I was going to Print, then Save PDF but then I am stuck. Help please. Thanks. Elisabeth

    I would need help with saving some eamil messages to a disk to unclutter my email. How can I do this please?
    Thanks.
    Elisabeth

    Open the email and then from the File menu select Save As Rich Text Format. That'll save it to open in TextEdit. If you want a pdf then open the email and do command-p (Print) and then from the PDF drop down box lower left corner select Save as PDF.

  • Need help with Portal Themes -- Please help

    I need help with Portal Themes.  I have read every document I can find but I am having no luck.  All I want to do is change the colors for the Exceptions on one of my queries.  I have created my own Portal Theme where I have changed the colors but I do not know how to assign my newly-created Portal Theme to my query.  Can someone please give me the detailed steps on how to do this? Please help because this is driving me crazy.
    Thanks.
    Ryan

    Hi,
    Refer
    Exceptions - How to change the colors
    This may help.
    Thanks,
    JituK

  • I need help with this script please ASAP

    So I need this to work properly, but when ran and the correct answer is chosen the app quits but when the wrong answer is chosen the app goes on to the next question. I need help with this ASAP, it is due tommorow. Thank you so much for the help if you can.
    The script (Sorry if it's a bit long):
    #------------Startup-------------
    display dialog "Social Studies Exchange Trviva Game by Justin Parzik" buttons {"Take the Quiz", "Cyaaaa"} default button 1
    set Lolz to (button returned of the result)
    if Lolz is "Cyaaaa" then
    killapp()
    else if Lolz is "Take the Quiz" then
              do shell script "say -v samantha Ok starting in 3…2…1…GO!"
    #------------Question 1-----------
              display dialog "Around age 11, many boys left their fathers to become…" buttons {"Scholars", "Warriors", "Apprentices"}
              set A1 to (button returned of the result)
              if A1 is "Apprentices" then
                        do shell script "say -v samantha Correct Answer"
              else
                        do shell script "say -v samantha Wrong Answer"
      #----------Question 2--------
                        display dialog "Most children were taught
    to read so that they could understand the…" buttons {"Music of Mozart", "Bible", "art of cooking"}
                        set A2 to (button returned of the result)
                        if A2 is "Bible" then
                                  do shell script "say -v samantha Correct Answer"
                        else
                                  do shell script "say -v samantha Wrong Answer"
      #------------Question 3---------
                                  display dialog "In the 1730s and 1740s, a religious movement called the_______swept through the colonies." buttons {"Glorius Revolution", "Great Awakening", "The Enlightenment"}
                                  set A3 to (button returned of the result)
                                  if A3 is "Great Awakening" then
                                            do shell script "say -v samantha Correct Answer"
                                  else
                                            do shell script "say -v samantha Wrong Answer"
      #-----------Question 4--------
                                            display dialog "_______ was
    a famous American Enlightenment figure." buttons {"Ben Franklin", "George Washington", "Jesus"}
                                            set A4 to (button returned of the result)
                                            if A4 is "Ben Franklin" then
                                                      do shell script "say -v samantha Correct Answer"
                                            else
                                                      do shell script "say -v samantha Wrong Answer"
      #----------Question 5-------
                                                      display dialog "______ ownership gave colonists political rights as well as prosperity." buttons {"Land", "Dog", "Slave"}
                                                      set A5 to (button returned of the result)
                                                      if A5 is "Land" then
                                                                do shell script "say -v samantha Correct Answer"
                                                      else
                                                                do shell script "say -v samantha Wrong Answer"
      #---------Question 6--------
                                                                display dialog "The first step toward guaranteeing these rights came in 1215. That
    year, a group of English noblemen forced King John to accept the…" buttons {"Declaration of Independence", "Magna Carta", "Constitution"}
                                                                set A6 to (button returned of the result)
                                                                if A6 is "Magna Carta" then
                                                                          do shell script "say -v samantha Correct Answer"
                                                                else
                                                                          do shell script "say -v samantha Wrong Answer"
      #----------Question 7--------
                                                                          display dialog "England's cheif lawmaking body was" buttons {"the Senate", "Parliament", "King George"}
                                                                          set A7 to (button returned of the result)
                                                                          if A7 is "Parliament" then
                                                                                    do shell script "say -v samantha Correct Answer"
                                                                          else
                                                                                    do shell script "say -v samantha Wrong Answer"
      #--------Question 8-----
                                                                                    display dialog "Pariliament decided to overthrow _______ for not respecting their rights" buttons {"King James II", "King George", "King Elizabeth"}
                                                                                    set A8 to (button returned of the result)
                                                                                    if A8 is "King James II" then
                                                                                              do shell script "say -v samantha Correct Answer"
                                                                                    else
                                                                                              do shell script "say -v samantha Wrong Answer"
      #--------Question 9------
                                                                                              display dialog "Parliament named ___ and ___ as England's new monarchs in something called ____." buttons {"William/Mary/Glorius Revolution", "Adam/Eve/Great Awakening", "Johhny/Mr.Laphalm/Burning of the hand ceremony"}
                                                                                              set A9 to (button returned of the result)
                                                                                              if A9 is "William/Mary/Glorius Revolution" then
                                                                                                        do shell script "say -v samantha Correct Answer"
                                                                                              else
                                                                                                        do shell script "say -v samantha Wrong Answer"
      #---------Question 10-----
                                                                                                        display dialog "After accepting the throne William and Mary agreed in 1689 to uphold the English Bill of _____." buttons {"Money", "Colonies", "Rights"}
                                                                                                        set A10 to (button returned of the result)
                                                                                                        if A10 is "Rights" then
                                                                                                                  do shell script "say -v samantha Correct Answer"
                                                                                                        else
                                                                                                                  do shell script "say -v samantha Wrong Answer"
      #---------Question 11------
                                                                                                                  display dialog "By the late 1600s French explorers had claimed the ___ River Valey" buttons {"Mississippi", "Ohio", "Hudson"}
                                                                                                                  set A11 to (button returned of the result)
                                                                                                                  if A11 is "Ohio" then
                                                                                                                            do shell script "say -v samantha Correct Answer"
                                                                                                                  else
                                                                                                                            do shell script "say -v samantha Wrong Answer"
      #------Question 12---------
                                                                                                                            display dialog "______ was sent to ask the French to leave 'English Land'." buttons {"Johhny Tremain", "George Washington", "Paul Revere"}
                                                                                                                            set A12 to (button returned of the result)
                                                                                                                            if A12 is "George Washington" then
                                                                                                                                      do shell script "say -v samantha Correct Answer"
                                                                                                                            else
                                                                                                                                      do shell script "say -v samantha Wrong Answer"
      #---------Question 13-------
                                                                                                                                      display dialog "_____ proposed the Albany Plan of Union" buttons {"George Washingon", "Ben Franklin", "John Hancock"}
                                                                                                                                      set A13 to (button returned of the result)
                                                                                                                                      if A13 is "Ben Franklin" then
                                                                                                                                                do shell script "say -v samantha Correct Answer"
                                                                                                                                      else
                                                                                                                                                do shell script "say -v samantha Wrong Answer"
      #--------Question 14------
                                                                                                                                                display dialog "The __________ declared that England owned all of North America east of the Mississippi" buttons {"Proclomation of England", "Treaty of Paris", "Pontiac Treaty"}
                                                                                                                                                set A14 to (button returned of the result)
                                                                                                                                                if A14 is "" then
                                                                                                                                                          do shell script "say -v samantha Correct Answer"
                                                                                                                                                else
                                                                                                                                                          do shell script "say -v samantha Wrong Answer"
      #-------Question 15-------
                                                                                                                                                          display dialog "Braddock was sent to New England so he could ______" buttons {"Command an attack against French", "Scalp the French", "Kill the colonists"}
                                                                                                                                                          set A15 to (button returned of the result)
                                                                                                                                                          if A15 is "Command an attack against French" then
                                                                                                                                                                    do shell script "say -v samantha Correct Answer"
                                                                                                                                                          else
                                                                                                                                                                    do shell script "say -v samantha Wrong Answer"
      #------TheLolQuestion-----
                                                                                                                                                                    display dialog "____ is the name of the teacher who runs this class." buttons {"Mr.White", "Mr.John", "Paul Revere"} default button 1
                                                                                                                                                                    set LOOL to (button returned of the result)
                                                                                                                                                                    if LOOL is "Mr.White" then
                                                                                                                                                                              do shell script "say -v samantha Congratulations…you…have…common…sense"
                                                                                                                                                                    else
                                                                                                                                                                              do shell script "say -v alex Do…you…have…eyes?"
                                                                                                                                                                              #------END------
                                                                                                                                                                              display dialog "I hope you enjoyed the quiz!" buttons {"I did!", "It was horrible"}
                                                                                                                                                                              set endmenu to (button returned of the result)
                                                                                                                                                                              if endmenu is "I did!" then
                                                                                                                                                                                        do shell script "say -v samantha Your awesome"
                                                                                                                                                                              else
                                                                                                                                                                                        do shell script "say -v alex Go outside and run a lap"
                                                                                                                                                                              end if
                                                                                                                                                                    end if
                                                                                                                                                          end if
                                                                                                                                                end if
                                                                                                                                      end if
                                                                                                                            end if
                                                                                                                  end if
                                                                                                        end if
                                                                                              end if
                                                                                    end if
                                                                          end if
                                                                end if
                                                      end if
                                            end if
                                  end if
                        end if
              end if
    end if

    Use code such as:
    display dialog "Around age 11, many boys left their fathers to become…" buttons {"Scholars", "Warriors", "Apprentices"}
    set A1 to (button returned of the result)
    if A1 is "Apprentices" then
    do shell script "say -v samantha Correct Answer"
    else
    do shell script "say -v samantha Wrong Answer"
    return
    end if
    #----------Question 2--------
    display dialog "Most children were taught to read so that they could understand the…" buttons {"Music of Mozart", "Bible", "art of cooking"}
    set A2 to (button returned of the result)
    if A2 is "Bible" then
    do shell script "say -v samantha Correct Answer"
    else
    do shell script "say -v samantha Wrong Answer"
    return
    end if
    (90444)

  • Can Anyone help with log in please

    Hello anyone out there,
    Please bear with me as I am probably your ultimate dummies here.
    I am at my wit's end trying to log on into my MacBook Pro 10.6.8. I'd started with when I bought a domain name and creating my blog which probably resulted in my Mac having direct access to my domain name database, as I started to see file folder that I don't remember saving. In the process, I somehow managed to get myself locked out of my Mac because of (what I guess) is changing my password and key chain access very late in the night with a not very bright state of mind :(
    So when I tried logging in the next time I got locked out. I look around support pages and follow instruction on installing with the original, it doesn't helped that i thought I looked into the wrong start up page intended for Lion. Reading some more I tried restarting again with the original disc that comes with it, with no luck, screen shake when trying to log in. I brought it to my local Apple shop, the guy there couldn't help at the time but offered me to come back the next day so to install it with Fire Wire.
    When I came back home that night, I managed to log in back to my page (although I was doing the exact same step before with no luck). I was then able to use it although some screen preview behaved differently. Oh the very same night, I had also dropped my Mac (and my heart) but with what i think is no further damage other than cosmetic. I also see that my root folder storing many html files loaded probably from sites i visited during the website creation. Instead of just clearing cache and changing browser preview to firefox (as I seem to understand now) I had again got my self locked out! Reading support pages, I log in using Cmd+S and follow instruction i found on community page, and did this:
    :/ root# /sbin/fsck -fy
    at the end it says The Volume Macintosh was repaired successfully
    Then i typed mount -uw (it says illegal option)
    Then i type /sbin/fsck -fy again thinking perhaps i type mount -uw too early.
    now it says /dev/rdisk0s2 (hfs) EXITED WITH SIGNAL 8
    :/ root#
    Question is: what do i do from here?
    Thank you so much for anyone who spare time to enlighten me, oh my brain hurts...

    For you I think it's best to take your machine to a local PC/Mac tech support and/or have someone in person assist you with your needs.
    We can only assist those who can assist themselves and it appears your machine needs to be looked over for hardware problems from the fall, then software problems, then finally finding out what your doing and what needs to be done to arrive there.
    It's all way too much for us here to handle as we can't even see your machine, so we have to go by what your saying and it appears your just searching around and entering unknown and possibly dangerous things via root user without understanding what your doing.
    So do that and let someone assist you in person as it's best for you.
    Good Luck.

  • Help with photo albums Please

    Hi, i really need some help with my pictures, I've only got a very basic understanding of how my phone works and have somehow put a load of albums on my phone when i plugged it into the computer-I want to delete some of them off the phone but cannot work out how to do it, when i plug my phone in i can find the photo tab but cannot actually see the pictures and can't see any delete button!!! Please can someone help me, basic explanations would be gratefully recieved xxxx

    The photo sync is one way: computer to phone. To remove photos, synced to your phone, remove the check marks next to the albums/folders under the photos tab in itunes & hit the apply/sync button. They will be removed from your phone. You cannot delete photos that were synced to your phone, directly on your phone. The easiest way to manage photos synced to your phone is to create albums or folders on your computer. Move whatever photos you want on your phone into these albums/folders & then select them under the photos tab in itunes to sync to your phone. You can then remove or add photos to these various albums/folders on your computer & the itunes sync process will update your phone every time you sync.

  • Help with Validation Problem Please

    I don't understand this validation and don't know how to fix it. I have checked my other websites and they seem fine. I don't think I have done anything different The link for the website ishttp://www.greenpatchwebsites.com/pow/index.html
    and the validator is http://validator.w3.org/check?uri=www.greenpatchwebsites.com%2Fpow%2Findex.html&charset=%2 8detect+automatically%29&doctype=Inline&group=0
    Please can you help.
    Thank you very much in advance.

    Thanks for that. I have tried it on a new page: http://www.greenpatchwebsites.com/pow/newtest.html and here is the validator :
    http://validator.w3.org/check?uri=www.greenpatchwebsites.com%2Fpow%2Fnewtest.html&charset= %28detect+automatically%29&doctype=Inline&group=0&No200=1- unfortunately loads of errors
    I also tried the recommended template:
    Use the following markup as a template to create a new XHTML 1.0 document using a proper DOCTYPE. See the list below if you wish to use another document type.
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
         <title>An XHTML 1.0 Strict standard template</title>
         <meta http-equiv="content-type"
              content="text/html;charset=utf-8" />
         <meta http-equiv="Content-Style-Type" content="text/css" />
    </head>
    <body>
         <p>… Your HTML content here …</p>
    </body>
    </html>
    but was getting errors with that. As you can tell, I need serious help with this. Which doc type should I be using
    and why doesn't Dreamweaver just do it for you when you select one?
    Thanks very much again in advance.

  • Help with Option 3 please

    A week ago I was on Option 1 but due to heavy use my speed was reduced to 15.7k/sec !.I was advised to upgrade to Option 3 which I promptly did and that was done on the 29th(last week).
    My speed though is still 15k/sec and I cannot watch any streaming video or BBC News Channels etc
    Would some kind gentleman please look into it for me and advise.......thankyou
    Solved!
    Go to Solution.

    Hi Pete,
    I am sorry for the delay in getting back to you.  I picked your email up this morning and have dropped you a reply.  I am pleased that you managed to sort this out, if you need any further help just let me know.
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Help with button code please?

    I am a novice and have just completed my first animated movie. I need help with action script.
    The movie is currently looped and I have created and invisible button the size of the frame with the intention that a user can click on the movie image to stop it and on second click continue the movie from where it stopped.
    I have used the AS event handler method to stop the movie. I have tested it and it works. But I cannot figure suitable code to restart the movie.
    Two questions;
    1. am I going about the task the right way? (should I use two buttons, one stop, one start)?
    2. if my approach is feasible, can anyone give me the correct AS to re-start the movie and put me out of my misery please?

    you can use the following after changing "yourbutton" and "yourmovieclip" to use suitable instance names:
    yourbutton.onRelease=function(){
    if(!this.toggle){
    yourmovieclip.stop();
    } else {
    yourmovieclip.play();
    this.toggle=!this.toggle;

  • Help with Required fields-PLEASE

    I have been attempting to get help with a required field and one of the forum helpers said he got it to work for me but I cannot and I have not been able to get any more responses from him to help me further.
    I am attempting to have a radio box when the YES is selected to require another field to be completed.  The script I was provided with is:
    getField("Location").required = (getField("Group1").value == "Yes");
    Location being the field that I require to be filled in if Group 1 is Yes.  The previous forum helper indicated that I had to have this script in both fields in Group 1 and when I do that, nothing different happens. 
    What am I doing wrong? 
    Please, I need to fix this right away and I will be using this java script on many other forms that I have so I need to get this done soon.
    Thank you in advance.

    Wht you want can get somewhat complicated. One way to prevent subsequent fields from being used is to set them to read-only and/or hidden. You could then use the Validate event of the text field to validate the entry and enable the subsequent fields if it is filled-in adequately. In general, you should also reset the fields whenever you hide them, so they don't contain potentially invalid data from previously being filled-in. So you could initially have the fields set to be hidden, and only unhide them if No is selected, or if Yes is selected and the required text field is filled-in.
    I realize this may not be as helpful as you had hoped for, but I can't suggest specific code without knowing more about the form.

  • Help with a routine please

    Hi experts!
    I have a requirement and I need help with an abap routine.
    I'm uploading a table from de ECC where each record contains one key figure per fiscal period (wlt01, wlt02,...wlt16). I need to have in a dso a unique key figure (called zwlt for instance) and the 0fiscper infoobject filled with the corresponding period, that is, for each record of the table, I need 16 records in the DSO with zwlt = wltXX and the fiscper = fiscyear&0&XX.
    Any help please?
    Thanks in advance.

    there are multiple ways to handle this.
    one way is to use APD to unpivot the data.
    or else you can use the following sample code to derive what you want...this code might just hint at the way to proceed.
    TYPES:
      BEGIN OF tys_SC_1,
          wlt01           TYPE P LENGTH 8 DECIMALS 2,
          wlt02           TYPE P LENGTH 8 DECIMALS 2,
          wlt03           TYPE P LENGTH 8 DECIMALS 2,
          wlt04           TYPE P LENGTH 8 DECIMALS 2,
          wlt05           TYPE P LENGTH 8 DECIMALS 2,
          wlt06           TYPE P LENGTH 8 DECIMALS 2,
          wlt07           TYPE P LENGTH 8 DECIMALS 2,
          wlt08           TYPE P LENGTH 8 DECIMALS 2,
          wlt09           TYPE P LENGTH 8 DECIMALS 2,
          wlt10           TYPE P LENGTH 8 DECIMALS 2,
          wlt11           TYPE P LENGTH 8 DECIMALS 2,
          wlt12           TYPE P LENGTH 8 DECIMALS 2,
      END OF tys_SC_1.
    DATA: ls_type TYPE tys_SC_1,
          l_name TYPE string,
          l_count Type n length 2.
    FIELD-SYMBOLS:
                <fs_type> TYPE tys_SC_1,
                <result>  TYPE P .
    ls_type-wlt01 = '1.1'.
    ls_type-wlt02 = '2.2'.
    ls_type-wlt03 = '3.3'.
    ls_type-wlt04 = '4.4'.
    ls_type-wlt05 = '5.5'.
    ls_type-wlt06 = '6.6'.
    ls_type-wlt07 = '7.7'.
    ls_type-wlt08 = '8.8'.
    ls_type-wlt09 = '9.9'.
    ls_type-wlt10 = '10.1'.
    ls_type-wlt11 = '11.11'.
    ls_type-wlt12 = '12.12'.
    CLEAR:  l_count ,  l_name.
    l_count = '01'.
    ASSIGN ls_type TO <fs_type> .
    Write: / .
    DO 12 TIMES.
      clear: l_name.
      Concatenate 'wlt'  l_count into l_name.
      ASSIGN COMPONENT l_name  OF STRUCTURE  <fs_type> TO <result> .
      Write: / , l_name , ' = ' , <result>.
      l_count = l_count + 1 .
    ENDDO.
    hope it helps.
    Regards
    Ashwin

  • Help with UILabel subclass please

    Hello all... I have a UILabel subclass I call CustomLabel. Ive been googling and reading the apple docs this entire week to figure this out. The few examples Ive seen, I dont think Im doing it right.
    Im trying to create a subclass to use throughout my project. Every label will have these properties so I figured why not subclass. So through a lot of trial and error I ended up with this...
    CustomLabel.h
    #import <UIKit/UIKit.h>
    @interface CustomLabel : UILabel {
    @property (nonatomic) CGSize shadowOffset;
    @property (nonatomic) UITextAlignment *textAlignment;
    @property (nonatomic, retain) UIColor *shadowColor;
    @property (nonatomic, retain) UIColor *textColor;
    @property (nonatomic, retain) UIColor *backgroundColor;
    @property (nonatomic, retain) UIFont *font;
    @end
    CustomLabel.m
    #import "CustomLabel.h"
    #import "Constants.h"
    @implementation CustomLabel
    @synthesize textColor;
    @synthesize backgroundColor;
    @synthesize font;
    @synthesize shadowColor;
    @synthesize shadowOffset;
    - (id)initWithFrame:(CGRect)frame {
    if ((self = [super initWithFrame:frame])) {
    self.textColor = [UIColor whiteColor];
    self.backgroundColor = [UIColor clearColor];
    self.font = SMALL_CHALKDUSTER;
    self.shadowColor = [UIColor colorWithRed:0.0f green:0.0f blue:0.0f alpha:0.35f];
    self.shadowOffset = CGSizeMake (0, 2);
    self.textAlignment = UITextAlignmentCenter;
    return self;
    - (void)dealloc {
    [super dealloc];
    @end
    I then allocate a label like so...
    ViewController.h
    CustomLabel *myLabel;
    @property (nonatomic, retain) CustomLabel *myLabel;
    ViewController.m
    myLabel = [[CustomLabel alloc] init];
    myLabel.text = @"Blah blah blah";
    I feel like Im way off on this... I must be since it isnt setting any of the properties Im trying to use in the subclass.
    I found an older post on the forums here for setting the textAlignment but for some reason I couldnt apply the same logic to mine.
    So can anyone help me with this subclass please and thank you?

    xnav... thanks a ton for pointing me to this link. Its got me closer to my end goal than I was before. Right now I have...
    CustomLabel.h
    #import <UIKit/UIKit.h>
    @interface CustomLabel : UILabel {
    @end
    CustomLabel.m
    #import "CustomLabel.h"
    #import "Constants.h"
    @implementation CustomLabel
    - (void) drawRect:(CGRect)rect {
    CGContextRef ctx = UIGraphicsGetCurrentContext();
    UIColor *lineColor = [UIColor whiteColor];
    UIColor *shColor = [UIColor colorWithRed:0.0f green:0.0f blue:0.0f alpha:0.35f];
    //UIColor *bkgColor = [UIColor clearColor];
    CGContextSetFillColorWithColor(ctx, lineColor.CGColor);
    CGContextSetShadowWithColor(ctx, CGSizeMake(0, 2), self.font.pointSize / 2.0, shColor.CGColor);
    //CGRect drawRect = CGRectMake(rect.origin.x, rect.origin.y,rect.size.width, rect.size.height);
    //CGContextSetAlpha(ctx, 0) ;
    //CGContextFillRect(ctx, drawRect);
    //CGContextSetStrokeColorWithColor(ctx, [[UIColor clearColor] CGColor]);
    //CGContextSetFillColorWithColor(ctx, [[UIColor clearColor] CGColor]);
    CGContextSetBlendMode(ctx, kCGBlendModeClear);
    //CGContextAddEllipseInRect(ctx,CGRectMake(size.width-(size.width/2)-(size.width/10), (size.width/10), (size.width/2), (size.height/2)));
    //CGContextClosePath(ctx);
    //CGContextDrawPath(ctx, kCGPathFillStroke);
    //CGContextSetTextDrawingMode(ctx, kCGTextFillStroke);
    //self.backgroundColor = [UIColor clearColor];
    //[self setBackgroundColor:[UIColor clearColor]];
    [self.text drawInRect:self.bounds withFont:TINY_CHALKDUSTER lineBreakMode:self.lineBreakMode alignment:UITextAlignmentCenter];
    - (void)dealloc {
    [super dealloc];
    @end
    As you can see I have a couple of things commented out. LOL I still cant figure out how to make the background color clear. I also dont know if I need the dealloc in this subclass. But the other properties seem to be working like the font and line color.
    Thanks again for the link and getting me in the right direction xnav. If you can lend any more assistance on how to get that darn background color clear I would appreciate it!

Maybe you are looking for

  • NI Oscilloscope Measurement Problem

    I have a very different problem regarding NI-5102 Oscilloscope Card Problem 1: This card is performing self test through the measurement & automation explorer. But through its driver program its showing failed. As there is self test vi in niscope.llb

  • Replacing Mac Book Pro battery

    I need to replace my battery for my original Mac Book Pro. Is there a specific battery I need to look for? Or do I just need a 15" Mac Book Pro battery? Do the older Mac Book Pro's run with a different battery than newer models? Thanks for your help.

  • 1.4.1.1 many images still not loading in browser

    I can't believe it. A LOT of people use the smartphone to go online, I mean A LOT. and what did palm do with the browser? get a nice ACID3 score? how much day to day benefit does it have? ZERO and the problems. slight large images stop loading, this

  • Roboform 7.2.8 will not fill passwords in Firefox 4

    As above. I have go to Edit and copy/ paste. "Fill forms" does not seem to function either.

  • IPod touch gen 2 touch screen not working

    My iPod was missing for 10 days, in the back of a couch. I recharged it, used for ~ 1 hour. Then the screen would not respond to touch. I could turn it on, but the screen doesn't function. Any suggestions?