Need help getting this code to work

I am trying to get this code to work using "if else statment" but it will only do the first part and not do the second part in the else statement. Can anyone help me out? Here is the code:
var R1 = this.getField("Registration Fees1");
var R2 = this.getField("Registration Fees2");
var R3 = this.getField("Registration Fees3");
var R4 = this.getField("Registration Fees4");
var R0 = 0
if (R0 == 0)
  event.value = Math.floor(R1.value);
else
  event.value = Math.floor(R2.value + R3.value + R4.value);
I did notice that if I fiddled around this this part:
if (R0 == 0)
sometimes I can get the second part to work but not the first. I need it to do either or and this is getting frustrating.
I might also not even need "var R0 = 0". I put that there for the condition part. If that is what is causing the problem, I can take it out. But then what would the condition be? For this form, the default is 0 and then the calculation follows by user clicking on different prices. The first part is if they want to pay for the full conference and the second part is if they want to pay for either Monday, Tuesday or Wednesday or 2 of the 3 days. Is it possible to get this to work with both parts together? I am still stuck on getting just one or the other working. Any help would be greatly appreciated. Thanks in advance.

I have posted this on another message board and a user by the name of gkaiseril offered this solution but it hasn't worked either.
// all four days
var R1 = this.getField("Registration Fees1").value;
// Monday
var R2 = this.getField("Registration Fees2").value;
// Tuesday
var R3 = this.getField("Registration Fees3").value;
// Wednesday
var R4 = this.getField("Registration Fees4").value;
var Fee = 0
event.value = ''; // default value
if (R1 != 'Off') {
  Fee = Number(R1) + Fee;
} else {
  if(R2 != 'Off') {
     Fee = Number(Fee) + R2;
  if(R3 != 'Off') {
     Fee += Number(R3);
  if(R4 != 'Off') {
     Fee = Number(R4) + Fee;
event.value = Fee;

Similar Messages

  • I need help getting this program to work.

    K. I don't pay much attention in my AP Comp Science Class.. but my teacher said if i can get this program to work i get an a for the semester... The program is Metrowerks Codewarrior IDE.. we are running it on windows 98 i think. She said she can't get it to compile.. so i guess it just needs to be able to input simple java programs (i.e. loops, just the regular crap) and compile them and run them...i have no clue what is wrong with it.. it could just need a patch...or we may just be going about it the wrong way...any help would be SUPER appreciated...

    K. I don't pay much attention in my AP Comp Science
    Class.. but my teacher said if i can get this programYou better did.
    to work i get an a for the semester... The program is
    Metrowerks Codewarrior IDE.. we are running it on
    windows 98 i think. She said she can't get it toAtleast be sure of the OS.
    compile.. so i guess it just needs to be able to
    input simple java programs (i.e. loops, just the
    regular crap) and compile them and run them...i have
    no clue what is wrong with it.. it could just need aEven we don't.
    patch...or we may just be going about it the wrong
    way...any help would be SUPER appreciated...Nothing in your thread really speaks of the problem. And since you mentioned homework, there's hardly anyone to be interested in that.
    Regards
    ***Annie***

  • I need help with this code error "unreachable statement"

    the error_
    F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
    int index;
    ^
    F:\Java\Projects\Tools.java:71: missing return statement
    }//end delete method
    ^
    F:\Java\Projects\Tools.java:86: missing return statement
    }//end getrecod
    ^
    3 errors
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    public class Tools//tool class
    private int numberOfToolItems;
    private ToolItems[] toolArray = new ToolItems[10];
    public Tools()//array of tool
    numberOfToolItems = 0;
    for(int i = 0; i < toolArray.length; i++)//for loop to create the array tools
    toolArray[i] = new ToolItems();
    }//end for loop
    }//end of array of tools
    public int search(int id)//search mehtod
    int index = 0;
    while (index < numberOfToolItems)//while and if loop search
    if(toolArray[index].getID() == id)
    return index;
    else
    index ++;
    }//en while and if loop
    return -1;
    }//end search method
    public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
    if(numberOfToolItems >= toolArray.length)
    return 0;
    int index;
    index = search(id); <-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------HERE
    if (index == -1)
    toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
    numberInStock ++;
    return 1;
    }//end if index
    }//end if toolitem array
    return -1;
    }//end insert method
    public int delete(/*int id*/)//delete method
    }//end delete method
    public void display()//display method
    for(int i = 0; i < numberOfToolItems; i++)
    //toolArray.display(g,y,x);
    }//end display method
    public String getRecord(int i)//get record method
    // return toolArray[i].getName()+ "ID: "+toolArray[i].getID()
    }//end getrecod
    }//end class
    Edited by: ladsoftware on Oct 9, 2009 6:08 AM
    Edited by: ladsoftware on Oct 9, 2009 6:09 AM
    Edited by: ladsoftware on Oct 9, 2009 6:10 AM
    Edited by: ladsoftware on Oct 9, 2009 6:11 AM

    ladsoftware wrote:
    Subject: Re: I need help with this code error "unreachable statement"
    F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
    int index;
    ^
    F:\Java\Projects\Tools.java:71: missing return statement
    }//end delete method
    ^
    F:\Java\Projects\Tools.java:86: missing return statement
    }//end getrecod
    ^
    3 errorsThe compiler is telling you exactly what the problems are:
    public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
    if(numberOfToolItems >= toolArray.length)
    return 0; // <<== HERE you return, so everyting in the if block after this is unreachable
    int index;
    index = search(id);  //< -----------------------------------------------------------------------------------------------------------------HERE
    if (index == -1)
    toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
    numberInStock ++;
    return 1;
    }//end if index
    }//end if toolitem array
    return -1;
    }//end insert method
    public int delete(/*int id*/)//delete method
    // <<== HERE where is the return statement?
    }//end delete method
    public String getRecord(int i)//get record method
    // return toolArray.getName()+ "ID: "+toolArray[i].getID() <<== HERE you commented out the return statement
    }//end getrecod
    }//end class

  • I need help getting my printer to work

    I need help getting my printer to work

    http://h30434.www3.hp.com/t5/Printer-Networking-and-Wireless/Want-Good-Answers-Ask-Good-Questions/td...
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Need help getting this Java app to work on Mac OS X

    Aloha all,
    I am testing this new Java app that was built that is based on th Axis and Allies strategy gaming engine. On the PC the author wrote a .bat file to launch the app and the JVM. But when I try and enter the arguments on the Mac OS X via the terminal window I get the Usage/Options argument options back. The ,bat file goes as follows:
    java -Xincgc -classpath ../classes;../lib/crimson.jar;../lib/jaxp.jar games.strategy.engine.framework.GameRunner
    It looks to me as if OS X if having problems with -Xincgc argument. I checked to see if I needed to download the JVM, but according to Apple it is already built in. Is there another way to enter the arguments to get this app to launch?
    Maui Duck

    Does OS X use ';' as a separator like windows, or does it use ':' like UNIX. that might be the problem.

  • Need Help on this Code Immediately

    Hi Friends,
    Iam very new to java.
    I have a Java Code that iam trying to Run. The Code Compiles fine but it fails on its 3rd Loop where it is trying to Run a report.
    I have the Code part that is errorring out. Can someone please look into the code and tell me if i need to make any changes to the Code.
    The Code when Executed gives an Error "The Client Did Something Wrong".
    Please Help Me!!!
          * Execute a report.
          *@param     path     This is the search path to the report.
          *@param     format     The array that contains the format options (PDF,HTML,etc...)
         public void executeReport(String path,String[] format)
              ParameterValue pv[] = new ParameterValue[]{};
              Option ro[] = new Option[3];
              RunOptionBoolean saveOutput = new RunOptionBoolean();
              RunOptionStringArray rosa = new RunOptionStringArray();
              RunOptionBoolean burstable = new RunOptionBoolean();
              // Define that the report to save the output.
              saveOutput.setName(RunOptionEnum.saveOutput);
              saveOutput.setValue(true);
              // What format do we want the report in: PDF? HTML? XML?
              rosa.setName(RunOptionEnum.outputFormat);
              rosa.setValue(format);
              // Define that the report can be burst.
              burstable.setName(RunOptionEnum.burst);
              burstable.setValue(true);
              // Fill the array with the run options.
              ro[0] = rosa;
              ro[1] = saveOutput;
              ro[2] = burstable;
              try
                   SearchPathSingleObject spSingle = new SearchPathSingleObject();
                   spSingle.setValue(path);
                   // Get the initial response.
                   AsynchReply res = reportService.run(spSingle,pv,ro);
                   // If it has not yet completed, keep waiting until it is done.
                   // In this case, we wait forever.
                   while (res.getStatus() != AsynchReplyStatusEnum.complete && res.getStatus() != AsynchReplyStatusEnum.conversationComplete)
                        res = reportService.wait(res.getPrimaryRequest(), new ParameterValue[]{}, new Option[]{});
                   reportService.release(res.getPrimaryRequest());
                   // Return the final response.
              catch (Exception e)
                   System.out.println(e);
         }

    Guess I was too late. Sorry
    Inestead of posting you need help on code immediately how about intest posting the particular topic that you are working on. It's quite doubtful that you would be here if you didn't have a question.

  • Noob needs help with this code...

    Hi,
    I found this code in a nice tutorial and I wanna make slight
    adjustments to the code.
    Unfortunately my Action Script skills are very limited... ;)
    This is the code for a 'sliding menue', depending on which
    button u pressed it will 'slide' to the appropriate picture.
    Here's the code:
    var currentPosition:Number = large_pics.pic1._x;
    var startFlag:Boolean = false;
    menuSlide = function (input:MovieClip) {
    if (startFlag == false) {
    startFlag = true;
    var finalDestination:Number = input._x;
    var distanceMoved:Number = 0;
    var distanceToMove:Number =
    Math.abs(finalDestination-currentPosition);
    var finalSpeed:Number = .2;
    var currentSpeed:Number = 0;
    var dir:Number = 1;
    if (currentPosition<=finalDestination) {
    dir = -1;
    } else if (currentPosition>finalDestination) {
    dir = 1;
    this.onEnterFrame = function() {
    currentSpeed =
    Math.round((distanceToMove-distanceMoved+1)*finalSpeed);
    distanceMoved += currentSpeed;
    large_pics._x += dir*currentSpeed;
    if (Math.abs(distanceMoved-distanceToMove)<=1) {
    large_pics._x =
    mask_pics._x-currentPosition+dir*distanceToMove;
    currentPosition = input._x;
    startFlag = false;
    delete this.onEnterFrame;
    b1.onRelease = function() {
    menuSlide(large_pics.pic1);
    b2.onRelease = function() {
    menuSlide(large_pics.pic2);
    b3.onRelease = function() {
    menuSlide(large_pics.pic3);
    b4.onRelease = function() {
    menuSlide(large_pics.pic4);
    I need to adjust five things in this code...
    (1) I want this menue to slide vertically not horizontally.
    I changed the 'x' values in the code to 'y' which I thought
    would make it move vertically, but it doesn't work...
    (2) Is it possible that, whatever the distance is, the
    "sliding" time is always 2.2 sec ?
    (3) I need to implement code that after the final position is
    reached, the timeline jumps to a certain movieclip to a certain
    label - depending on what button was pressed of course...
    I tried to implement this code for button number two...
    b2.onRelease = function() {
    menuSlide(large_pics.pic2);
    if (currentPosition = finalDestination) {
    this.large_pics.pic2.gotoAndPlay("s1");
    --> sliding still works but it doesn't jump to the
    appropriate label...
    (4) I wanna add 'Next' & 'Previous' buttons to the slide
    show - what would be the code in this case scenario ?
    My first thought was something like that Flash checks which
    'pic' movieclip it is showing right now (pic1, pic2, pic3 etc.) and
    depending on what button u pressed u go to the y value of movieclip
    'picX + 1' (Next button) or 'picX - 1' (Previous button)...
    Is that possible ?
    (5) After implementing the Next & Previous buttons I need
    to make sure that when it reached the last pic movieclip it will
    not go further on the y value - because there is no more pic
    movieclip.
    Options are to either slide back to movieclip 'pic1' or
    simply do nothing any more on the next button...
    I know this is probably Kindergarten for you, but I have only
    slight ideas how to do this and no code knowledge to back it up...
    haha
    Thanx a lot for your help in advance !
    Always a pleasure to learn from u guys... ;)
    Mike

    Hi,
    I made some progress with the code thanx to the help of
    Simon, but there are still 2 things that need to be addressed...
    (1) I want the sliding time always to be 2.2 sec...
    here's my approach to it - just a theory but it might work:
    we need a speed that changes dynamically depending on the
    distance we have to travel...
    I don't know if that applies for Action Scrip but I recall
    from 6th grade, that...
    speed = distance / time
    --> we got the time (which is always 2.2 sec)
    --> we got the disctance
    (currentposition-finaldestination)
    --> this should automatically change the speed to the
    appropriate value
    Unfortunately I have no clue how the action script would look
    like (like I said my action script skills are very limited)...
    (2) Also, one other thing I need that is not implemented yet,
    is that when the final destination is reached it jumps to a certain
    label inside a certain movieclip - every time different for each
    button pressed - something like:
    if (currentPosition = finalDestination) {
    this.large_pics.pic2.gotoAndPlay("s1");
    that statement just doesn't work when I put it right under
    the function for each button...
    Thanx again for taking the time !!!
    Mike

  • I need help getting my Intuos5 to work with Flash CS6

    Can someone give me some help with this? I can't find a single thing on Google that helps me.
    I installed Adobe Flash CS6 recently and I have been using my Intuos5 Large for a long time now with Photoshop CS6. The thing is, with Photoshop, it took forever to get working properly. It turned out that I needed to use the 64-bit version because my 64-bit system and tablet drivers won't work with 32-bit Photoshop.
    Concerning Flash, it's the same problems as Photoshop. It refuses to recognize my tablets functions such as pressure and tilt sensitivity. It also has an annoying lag or lack of response if I do small, quick strokes. I would switch Flash to 64-bit mode, but there isn't one. I can't find the little stroke-like icon in Flash to turn on sensitivity either. I'm really confused. I've tried it with Flash CS5.5 and it's the same thing.
    That's my issue, and I have tried restarting the software and rebooting many times as well. There doesn't seem to be much for options. This all leads to it probably being a 64-bit and 32-bit compatability issue
    I'm running Windows 7 with more than enough power to maintain Flash CS6. It is possible that I may need to update my tablet driver since I did for Photoshop CS6, but it was a pain in the *** getting Photoshop to work until I used 64-bit mode. I may need additional files to mod the software.
    I would really appreciate the help so I can begin to learn animation. It's my passion. Thanks, in advance.
    Here are my relevant specs:
    System Information
    Time of this report: 9/4/2012, 01:32:48
           Machine name: LAPPY_TOPPY
       Operating System: Windows 7 Home Premium 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.120503-2030)
               Language: English (Regional Setting: English)
    System Manufacturer: TOSHIBA
           System Model: Satellite L675
                   BIOS: Phoenix SecureCore Version 2.30
              Processor: Intel(R) Core(TM) i5 CPU       M 450  @ 2.40GHz (4 CPUs), ~2.4GHz
                 Memory: 4096MB RAM
    Available OS Memory: 3954MB RAM
              Page File: 2016MB used, 5890MB available
            Windows Dir: C:\windows
        DirectX Version: DirectX 11
    DX Setup Parameters: Not found
       User DPI Setting: Using System DPI
    System DPI Setting: 96 DPI (100 percent)
        DWM DPI Scaling: Disabled
         DxDiag Version: 6.01.7601.17514 64bit Unicode
    Display Devices
              Card name: ATI Mobility Radeon HD 5650
           Manufacturer: ATI Technologies Inc.
              Chip type: ATI display adapter (0x68C1)
               DAC type: Internal DAC(400MHz)
             Device Key: Enum\PCI\VEN_1002&DEV_68C1&SUBSYS_FD001179&REV_00
         Display Memory: 2735 MB
       Dedicated Memory: 1014 MB
          Shared Memory: 1721 MB
           Current Mode: 1600 x 900 (32 bit) (60Hz)
           Monitor Name: Generic PnP Monitor
          Monitor Model: unknown
             Monitor Id: LGD01CA
            Native Mode: 1600 x 900(p) (60.080Hz)
            Output Type: Internal

    If you are moving from an existing Mac to a new Mac the easiest thing to do is connect the two Macs via a Firewire cable and run the Migration assistant. If you are moving files from a Windows platform or you don't want to use the Migration assistant review this article.
    http://docs.info.apple.com/article.html?artnum=300173

  • I cannot get this code to work...

    This code is annoying me to no end. I cannot seem to get it
    to work. I can get it to work, but all of my buttons disappear,
    along with everything else. EXCEPT, it keeps my home button, and
    makes two of them.... Now,I have no idea why, but help would be
    VERY appreciated.
    <SCRIPT language=JavaScript>
    dCol='404040';//date colour.
    fCol='0000FF';//face colour.
    sCol='FF0000';//seconds colour.
    mCol='000000';//minutes colour.
    hCol='000000';//hours colour.
    ClockHeight=30;
    ClockWidth=30;
    ClockFromMouseY=100;
    ClockFromMouseX=200;
    //Alter nothing below! Alignments will be lost!
    d=new
    Array("SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY");
    m=new
    Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTO BER","NOVEMBER","DECEMBER");
    date=new Date();
    day=date.getDate();
    year=date.getYear();
    if (year < 2000) year=year+1900;
    TodaysDate=" "+d[date.getDay()]+" "+day+"
    "+m[date.getMonth()]+" "+year;
    D=TodaysDate.split('');
    H='...';
    H=H.split('');
    M='....';
    M=M.split('');
    S='.....';
    S=S.split('');
    Face='1 2 3 4 5 6 7 8 9 10 11 12';
    font='Arial';
    size=1;
    speed=0.6;
    ns=(document.layers);
    ie=(document.all);
    Face=Face.split(' ');
    n=Face.length;
    a=size*10;
    ymouse=0;
    xmouse=0;
    scrll=0;
    props="<font face="+font+" size="+size+"
    color="+fCol+"><B>";
    props2="<font face="+font+" size="+size+"
    color="+dCol+"><B>";
    Split=360/n;
    Dsplit=360/D.length;
    HandHeight=ClockHeight/4.5
    HandWidth=ClockWidth/4.5
    HandY=-7;
    HandX=-2.5;
    scrll=0;
    step=0.06;
    currStep=0;
    y=new Array();x=new Array();Y=new Array();X=new Array();
    for (i=0; i < n; i++){y
    =0;x=0;Y
    =0;X=0}
    Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
    for (i=0; i < D.length; i++){Dy
    =0;Dx=0;DY
    =0;DX=0}
    if (ns){
    for (i=0; i < D.length; i++)
    document.write('<layer name="nsDate'+i+'" top=0 left=0
    height='+a+' width='+a+'><center>'+props2+D
    +'</font></center></layer>');
    for (i=0; i < n; i++)
    document.write('<layer name="nsFace'+i+'" top=0 left=0
    height='+a+'
    width='+a+'><center>'+props+Face+'</font></center></layer>');
    for (i=0; i < S.length; i++)
    document.write('<layer name=nsSeconds'+i+' top=0 left=0
    width=15 height=15><font face=Arial size=3
    color='+sCol+'><center><b>'+S
    +'</b></center></font></layer>');
    for (i=0; i < M.length; i++)
    document.write('<layer name=nsMinutes'+i+' top=0 left=0
    width=15 height=15><font face=Arial size=3
    color='+mCol+'><center><b>'+M+'</b></center></font></layer>');
    for (i=0; i < H.length; i++)
    document.write('<layer name=nsHours'+i+' top=0 left=0
    width=15 height=15><font face=Arial size=3
    color='+hCol+'><center><b>'+H
    +'</b></center></font></layer>');
    if (ie){
    document.write('<div id="Od"
    style="position:absolute;top:0px;left:0px"><div
    style="position:relative">');
    for (i=0; i < D.length; i++)
    document.write('<div id="ieDate"
    style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+pro ps2+D+'</B></font></div>');
    document.write('</div></div>');
    document.write('<div id="Of"
    style="position:absolute;top:0px;left:0px"><div
    style="position:relative">');
    for (i=0; i < n; i++)
    document.write('<div id="ieFace"
    style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+pro ps+Face
    +'</B></font></div>');
    document.write('</div></div>');
    document.write('<div id="Oh"
    style="position:absolute;top:0px;left:0px"><div
    style="position:relative">');
    for (i=0; i < H.length; i++)
    document.write('<div id="ieHours"
    style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+ hCol+';text-align:center;font-weight:bold">'+H+'</div>');
    document.write('</div></div>');
    document.write('<div id="Om"
    style="position:absolute;top:0px;left:0px"><div
    style="position:relative">');
    for (i=0; i < M.length; i++)
    document.write('<div id="ieMinutes"
    style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+ mCol+';text-align:center;font-weight:bold">'+M
    +'</div>');
    document.write('</div></div>')
    document.write('<div id="Os"
    style="position:absolute;top:0px;left:0px"><div
    style="position:relative">');
    for (i=0; i < S.length; i++)
    document.write('<div id="ieSeconds"
    style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+ sCol+';text-align:center;font-weight:bold">'+S+'</div>');
    document.write('</div></div>')
    (ns)?window.captureEvents(Event.MOUSEMOVE):0;
    function Mouse(evnt){
    ymouse =
    (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
    xmouse =
    (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
    (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
    function ClockAndAssign(){
    time = new Date ();
    secs = time.getSeconds();
    sec = -1.57 + Math.PI * secs/30;
    mins = time.getMinutes();
    min = -1.57 + Math.PI * mins/30;
    hr = time.getHours();
    hrs = -1.575 + Math.PI *
    hr/6+Math.PI*parseInt(time.getMinutes())/360;
    if (ie){
    Od.style.top=window.document.body.scrollTop;
    Of.style.top=window.document.body.scrollTop;
    Oh.style.top=window.document.body.scrollTop;
    Om.style.top=window.document.body.scrollTop;
    Os.style.top=window.document.body.scrollTop;
    for (i=0; i < n; i++){
    var F=(ns)?document.layers['nsFace'+i]:ieFace
    .style;
    F.top=y + ClockHeight*Math.sin(-1.0471 +
    i*Split*Math.PI/180)+scrll;
    F.left=x
    + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
    for (i=0; i < H.length; i++){
    var HL=(ns)?document.layers['nsHours'+i]:ieHours.style;
    HL.top=y
    +HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
    HL.left=x+HandX+(i*HandWidth)*Math.cos(hrs);
    for (i=0; i < M.length; i++){
    var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes
    .style;
    ML.top=y+HandY+(i*HandHeight)*Math.sin(min)+scrll;
    ML.left=x
    +HandX+(i*HandWidth)*Math.cos(min);
    for (i=0; i < S.length; i++){
    var
    SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds.style;
    SL.top=y
    +HandY+(i*HandHeight)*Math.sin(sec)+scrll;
    SL.left=x+HandX+(i*HandWidth)*Math.cos(sec);
    for (i=0; i < D.length; i++){
    var DL=(ns)?document.layers['nsDate'+i]:ieDate
    .style;
    DL.top=Dy +
    ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
    DL.left=Dx
    + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
    currStep-=step;
    function Delay(){
    scrll=(ns)?window.pageYOffset:0;
    Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
    Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
    for (i=1; i < D.length; i++){
    Dy=Math.round(DY
    +=(Dy[i-1]-DY)*speed);
    Dx
    =Math.round(DX+=(Dx[i-1]-DX
    )*speed);
    y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
    x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
    for (i=1; i < n; i++){
    y=Math.round(Y
    +=(y[i-1]-Y)*speed);
    x
    =Math.round(X+=(x[i-1]-X
    )*speed);
    ClockAndAssign();
    setTimeout('Delay()',50);
    if (ns||ie)window.onload=Delay;
    </SCRIPT>

    That is a problem with the Speed Dial extension.
    See [[Troubleshooting extensions and themes]]

  • I need help getting Mini Bridge to work in PS CS6

    I have already tried deleting the folder and rebooting the computer, I have tried creating a new user account, I have tried uninstalling and reinstalling the entire package and I cannot get Mini Bridge to work at all. It just keeps going to "Mini Bridge waiting for Bridge CS6..." and then never finds anything. I am having this issue on both my Macbook Pro Retina 15 and my MacBook Pro 13 (Early 2011 model). I cannot seem to find any other solutions to this problem online. I also made sure that both Macbooks are fully updated as well as all CS6 software titles. Please help me fix this!
    I also made sure I added it to the exceptions list in the firewall too.

    Moving the discussion to PS forum
    You can also follow the solution suggested in http://helpx.adobe.com/photoshop/kb/error-waiting-for-bridge-cs5.html
    they may help

  • Need help getting my MacBook to work a with a D-Link print server

    I'm trying to set up my MacBook Pro running OS X Ver 10.4.11 to print to a HP PSC 2210 All in One printer attached to a D-Link DP-301U print server. I'm actualy a Windows user and set this up and it works fine on the Windows side. My brother in law here is the Mac user and I can't seem to get this going.
    I did install Gimp Print Ver 4.2 and the printer is listed as a support device at their website. But, the printer model doesn't appear in the list when I try and add the IP printer. I did try a LaserJet 4l driver and DeskJet 860c - they don't work. In the print queue, the status says "Network host '<IP address of D-Link> is busy; will retry in 30 seconds."
    Any ideas? D-Link support was horrible, claiming that they don't support Macs - despite what it says on the box.
    Any insights on next steps would be appreciated.
    TIA

    Thanks, Greg. GutenPrint lists it as a supported printer but as I said, I don't see it. I'll try the other site.
    There is some stuff on Macs at teh D-Link site, but its not verry useful. But, re: the queue, name it appears to me that the PS-<servername>-P1 convention comes from a print server with a parallel interface and this is the LPT port name. This is a USB printer and that's why we get the PSC2210 name which I think is the Windows name I gave the Printer. At any rate, the D-Link doc claims that you should leave the queue name blank for a single port server. I beleive that the issue is that this is not a postscript printer which hopefully I can get at the alternate site.
    I am curious why this is different on a Mac than in Windows. If the printer works if direct connected, why does the Mac OS need the special drivers to extend the connection through a network? I'm curious as I mooonlight setting up home networks and I don't want to be a "windows only" solution. Oh, and would this work on the Mac if I had selected an Apple print server or wireless router with printer port built in?
    Thanks again.

  • Need help getting personal web sharing working again

    I've somehow managed to hose my apache web server and am hoping someone can offer some advice to get it running correctly again:
    my problem: I can no longer access my website files running on my mini server computer, and even when I run a simple local connection (127.0.0.1) from the mini, I get 403 Forbidden errors.
    Background: I set up a web page on a mac mini that I had set up as a mini server many years ago. When I decided to resurrect the mini and use it for this purpose again, I noted that my website contents were not sitting in my user/sites folder, but instead, were in a folder called WebServer, sitting inside the Library folder of my hard drive. Unfortunately, I lost all of my notes as to how (or why) I configured my server this way.
    I decided that I wanted to set up multiple local hosts to try to run two different web pages and followed the directions here: http://www.wonderhowto.com/how-to-host-multiple-websites-mac-mini-server-260994/
    After messing around with this a bit I started to get the 403 errors and decided to remove all the additional code mentioned in the link above in the apache config file and go back to my original set up, but this is not working.
    Is there a easy way to remove apache and install a default version like that which comes with OSX to start over with a clean config file, or can someone tell me where in the config file to search to see what else is going wrong?

    Hi Mark, some clues... & are you restarting Apache each change?
    http://discussions.apple.com/thread.jspa?messageID=11085842
    http://www.cyberciti.biz/faq/apache-403-forbidden-error-and-solution/
    http://techtrouts.com/mac-os-x-105-web-sharing-forbidden-403-on-httplocalhostuse rname/

  • I need help in this code

    wazap guys ? long time not 2 see U :)
    i need help , this application that will follow is supposed to count the words lengths
    i.e if typed "I am poprage" the program will output :
    the word length the occurence
    1 1
    2 1
    3
    4
    5
    6
    7 1
    compile it & u will understand it.
    the problem is that it makes a table for each damen word
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class Application2 extends JFrame{
    private JLabel label;
    private JTextField field;
    private JTextArea area;
    private JScrollPane scroll;
    private int count;
    public Application2(){
    super("Application 2 / Word Length");
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    label = new JLabel("Enter The Text Here");
    c.add(label);
    field = new JTextField(30);
    field.addActionListener(
    new ActionListener(){
    public void actionPerformed(ActionEvent e){
    StringTokenizer s = new StringTokenizer(e.getActionCommand());
    count = s.countTokens();
    while(s.hasMoreTokens()){
    count--;
    pop(s.nextToken());
    c.add(field);
    area = new JTextArea(10,30);
    area.setEditable(false);
    c.add(area);
    scroll = new JScrollPane(area);
    c.add(scroll);
    setSize(500,500);
    show();
    public void pop (String s){
    String poprage = "";
    int count1 = 0;
    int count2 = 0;
    int count3 = 0;
    int count4 = 0;
    int count5 = 0;
    int count6 = 0;
    int count7 = 0;
    int count8 = 0;
    int count9 = 0;
    int count10 = 0;
    int count11 = 0;
    int count12 = 0;
    int count13 = 0;
    int count14 = 0;
    int count15 = 0;
    int count16 = 0;
    int count17 = 0;
    int count18 = 0;
    int count19 = 0;
    int count20 = 0;
    int count21 = 0;
    int count22 = 0;
    int count23 = 0;
    int count24 = 0;
    int count25 = 0;
    for(int i = 0; i < s.length(); i++){
    if(s.length() == 1) count1 += 1;
    else if(s.length() == 2) count2 += 1;
    else if(s.length() == 3) count3 += 1;
    else if(s.length() == 4) count4 += 1;
    else if(s.length() == 5) count5 += 1;
    else if(s.length() == 6) count6 += 1;
    else if(s.length() == 7) count7 += 1;
    else if(s.length() == 8) count8 += 1;
    else if(s.length() == 9) count9 += 1;
    else if(s.length() == 10) count10 += 1;
    else if(s.length() == 11) count11 += 1;
    else if(s.length() == 12) count12 += 1;
    else if(s.length() == 13) count13 += 1;
    else if(s.length() == 14) count14 += 1;
    else if(s.length() == 15) count15 += 1;
    else if(s.length() == 16) count16 += 1;
    else if(s.length() == 17) count17 += 1;
    else if(s.length() == 18) count18 += 1;
    else if(s.length() == 19) count19 += 1;
    else if(s.length() == 20) count20 += 1;
    else if(s.length() == 21) count21 += 1;
    else if(s.length() == 22) count22 += 1;
    else if(s.length() == 23) count23 += 1;
    else if(s.length() == 24) count24 += 1;
    else if(s.length() == 25) count25 += 1;
    poprage += "The Length\t"+"The Occurence\n"+
    "1\t"+count1+"\n"+
    "2\t"+count2+"\n"+
    "3\t"+count3+"\n"+
    "4\t"+count4+"\n"+
    "5\t"+count5+"\n"+
    "6\t"+count6+"\n"+
    "7\t"+count7+"\n"+
    "8\t"+count8+"\n"+
    "9\t"+count9+"\n"+
    "10\t"+count10+"\n"+
    "11\t"+count11+"\n"+
    "12\t"+count12+"\n"+
    "13\t"+count13+"\n"+
    "14\t"+count14+"\n"+
    "15\t"+count15+"\n"+
    "16\t"+count16+"\n"+
    "17\t"+count17+"\n"+
    "18\t"+count18+"\n"+
    "19\t"+count19+"\n"+
    "20\t"+count20+"\n"+
    "21\t"+count21+"\n"+
    "22\t"+count22+"\n"+
    "23\t"+count23+"\n"+
    "24\t"+count24+"\n"+
    "25\t"+count25+"\n";
    area.append(poprage);
    public static void main (String ar[]){
    Application2 a = new Application2();
    a.addWindowListener(
    new WindowAdapter(){
    public void windowClosing( WindowEvent e ){
    System.exit(0);
    can any one fix it ???????
    REGARDS.

    Okay, so I took a look at it, where you are having the problem is that your pop() method not only updated the count variable, but then displays the result each time you call it. and since you call it in the loop, guess what it will give you a "table" for each "damen word"...
    Any way, I was bored enough to "fix" the program and included comments as to what I did and the relative "why"...
    So here goes...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class Application2 extends JFrame{
    private JLabel label;
    private JTextField field;
    private JTextArea area;
    private JScrollPane scroll;
    private int count;
    // moved these up here so that all methods in this class
    // can see and modify them, and more importantly so that they would not go
    // out of scope and end up zero'd out before we display the values
    // in the "table", once that done, then we can zero them out.
    // although an array would be better and easier to use... -MaxxDmg...
    private int count1 = 0;private int count2 = 0;
    private int count3 = 0;private int count4 = 0;
    private int count5 = 0;private int count6 = 0;
    private int count7 = 0;private int count8 = 0;
    private int count9 = 0;private int count10 = 0;
    private int count11 = 0;private int count12 = 0;
    private int count13 = 0;private int count14 = 0;
    private int count15 = 0;private int count16 = 0;
    private int count17 = 0;private int count18 = 0;
    private int count19 = 0;private int count20 = 0;
    private int count21 = 0;private int count22 = 0;
    private int count23 = 0;private int count24 = 0;
    private int count25 = 0;
    // end move int count variable declarations  - MaxxDmg...
    public Application2(){
    super("Application 2 / Word Length");
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    label = new JLabel("Enter The Text Here");
    c.add(label);
    field = new JTextField(30);
    field.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e){
    String poprage = ""; // move this here, once pop() loop is done, then this string
    // will be constructed and displayed  - MaxxDmg...
    StringTokenizer s = new StringTokenizer(e.getActionCommand());
    count = s.countTokens();
    while(s.hasMoreTokens()){ // this is the "pop() loop" since it calls pop() to count the words - MaxxDmg...
    count--;
    pop(s.nextToken()); // runs pop which only increments the count variable as needed - MaxxDmg...
    }// end "pop() loop" - MaxxDmg...
    // string poprage constructed one pop() loop is done to display the proper results - MaxxDmg...
    poprage += "The Length\t"+"The Occurence\n"+"1\t"+count1+"\n"+
    "2\t"+count2+"\n" + "3\t"+count3+"\n" + "4\t"+count4+"\n" +
    "5\t"+count5+"\n" + "6\t"+count6+"\n" + "7\t"+count7+"\n" +
    "8\t"+count8+"\n" + "9\t"+count9+"\n" + "10\t"+count10+"\n" +
    "11\t"+count11+"\n" + "12\t"+count12+"\n" + "13\t"+count13+"\n" +
    "14\t"+count14+"\n" + "15\t"+count15+"\n" + "16\t"+count16+"\n" +
    "17\t"+count17+"\n" + "18\t"+count18+"\n" + "19\t"+count19+"\n" +
    "20\t"+count20+"\n" + "21\t"+count21+"\n" + "22\t"+count22+"\n"+
    "23\t"+count23+"\n" + "24\t"+count24+"\n" + "25\t"+count25+"\n";
    area.append(poprage);
    // end string construction and area update...  - MaxxDmg...
    // all int count variable set to 0 for next usage - MaxxDmg...
    count = 0;
    count1 = 0;count2 = 0;count3 = 0;count4 = 0;count5 = 0;
    count6 = 0;count7 = 0;count8 = 0;count9 = 0;count10 = 0;
    count11 = 0;count12 = 0;count13 = 0;count14 = 0;count15 = 0;
    count16 = 0;count17 = 0;count18 = 0;count19 = 0;count20 = 0;
    count21 = 0;count22 = 0;count23 = 0;count24 = 0;count25 = 0;
    // end count variable reset... - MaxxDmg...
    c.add(field);
    area = new JTextArea(10,30);
    area.setEditable(false);
    c.add(area);
    scroll = new JScrollPane(area);
    c.add(scroll);
    setSize(500,500);
    show();
    public void pop (String s){
    // now all this method does is increment the count variables - MaxxDmg...
    // which will eliminate the "making a table" for each "damen word" - MaxxDmg...
    if(s.length() == 1) count1 += 1;
    else if(s.length() == 2) count2 += 1;
    else if(s.length() == 3) count3 += 1;
    else if(s.length() == 4) count4 += 1;
    else if(s.length() == 5) count5 += 1;
    else if(s.length() == 6) count6 += 1;
    else if(s.length() == 7) count7 += 1;
    else if(s.length() == 8) count8 += 1;
    else if(s.length() == 9) count9 += 1;
    else if(s.length() == 10) count10 += 1;
    else if(s.length() == 11) count11 += 1;
    else if(s.length() == 12) count12 += 1;
    else if(s.length() == 13) count13 += 1;
    else if(s.length() == 14) count14 += 1;
    else if(s.length() == 15) count15 += 1;
    else if(s.length() == 16) count16 += 1;
    else if(s.length() == 17) count17 += 1;
    else if(s.length() == 18) count18 += 1;
    else if(s.length() == 19) count19 += 1;
    else if(s.length() == 20) count20 += 1;
    else if(s.length() == 21) count21 += 1;
    else if(s.length() == 22) count22 += 1;
    else if(s.length() == 23) count23 += 1;
    else if(s.length() == 24) count24 += 1;
    else if(s.length() == 25) count25 += 1;
    }// end modified pop() method - MaxxDmg...
    public static void main (String ar[]){
    Application2 a = new Application2();
    a.addWindowListener(
    new WindowAdapter(){
    public void windowClosing( WindowEvent e ){
    System.exit(0);
    }So read the comments, look at the code and compare it to the original. You will see why the original did not give you the results you wanted, while the fixed version will...
    - MaxxDmg...
    - ' He who never sleeps... '

  • Need help getting guest access to work.

    I have searched and Googled and found very little about enabling temporary guest access on an AEBS.
    What I could find said just type in "the PIN number." OK, what PIN number? It appears that the device seeking access is supposed to supply it somehow and then I type it in while using the Airport Utility. I see no such number on the device. I also tried the "first one to try" method and got nowhere.
    In both cases I was using an iPhone that wanted to use my network. Does this work with iPhones?
    Many thanks,
    -dan

    This thread http://discussions.apple.com/thread.jspa?messageID=4088108&#4088108 looked helpful but I can't get guest access to work for my son's guest using a Dell XP laptop (using Dell wireless management) despite allowing timed access. Neither the PIN nor the first attempt option allowed him on the network without giving him our password.
    It's still not clear if or when this will work. At the very least, the documentation is terrible.

  • Need help getting LCD monitor to work with G4 GeForce4 MX

    I have a G4 that I haven't been using and want to get running again. It has a Nvidia GeForce4 MX video card. I had a huge CRT monitor and want to use a ViewSonic VX1935wm which I got a deal on. When I hook the monitor up it says that the resolution is out of range.
    I can boot with my old monitor and change the connection and then get the LCD to work but only at certain resolutions.
    Do I need to get a new video card, or can I get an adaptor? What kind of card should I get if it needs to be replaced? Or what other kind of monitor would be supported by this video card?
    Here is the webpage for this monitor: http://www.viewsonic.com/products/lcddisplays/xseries/vx1935wm/

    thanks for the links.
    switchResX does something, but it doesn't solve the problem. i can now switch to the "optimum" resolution of 1440x900, 60hz. but when i restart the computer, it still won't work! i continue to get the "out of range" message and have to boot with my crt and then switch cables to do anything. also, the fonts in the finder menus look terrible, you can see the jagged lines.
    displayConfigX won't let me test that high of a resolution without registering the product.. needless to say, i don't want to pay money if the results are going to be the same as with SwitchResX.
    I sent an e-mail to ViewSonic support. Is it typical to have these problems? I am getting more and more confused as I learn more about this.

Maybe you are looking for

  • How to annotate events in iCal?

    Hi all, I tried to search for this, but I couldn't find anything.  How can I annotate events in iCal?  For example, for a hotel reservation, I'd like to put in the address, the reservation number, etc.  Is there a place to do this?  Thank you!

  • How do i get firefox to open with the same window size every time, even if the last instance I had open had a different window size because I resized it??

    My firefox opens new windows with a size that equals the current window I have open, or if I have no window open, the last window I closed. I would like to have it open windows the same size every time, regardless of what size the current window is,

  • Is EOIO messaging possible using ABAP Proxy in WAS 620?

    Hello, I am trying to implement an outbound EOIO interface using ABAP Proxy on a SAP R/3 470 running on WAS 620. We have XI 3.0 running on WAS 640. I followed the SAP documentation available at http://help.sap.com/saphelp_nw04/helpdata/en/c9/74246d8a

  • Pages 5.0.1 file won't open

    I've read other posts.  My old docs still open in '09.  I've created new ones in 5.0.1 and have been able to open them.  Now I just created one, saved it to my desktop, tried to open it and I'm told I need to buy the upgrade, 5.0.1, which I'm using! 

  • IPhone 4 shuts down after heavy music/mapping use

    My iPhone 4 keeps shutting down after us for music or maps for some time in motor vehicle; sort suggests it is overheating!!    Sometimes it will not reset/restart using both conytols for quite some time.  I have rrestored the iOS several times witho