Javascript Calculations

When I put the following code and run it in a browser it works without issue
var monthstart = '05';
var monthend = '06';
var daystart = '1';
var dayend = '25';
var monthweeks = new Array('4.43','4','4.43','4.3','4.43','4.3','4.43','4.43','4.3','4.43','4.3','4.43');
var monthdays = new Array(31, 28,31,30,31,30,31,31,30,31,30,31);
var numberofdays = 0;
var x = parseFloat(monthend) - 1;
var y = parseFloat(monthstart) - 1;
totalmonths = parseFloat(monthend) - parseFloat(monthstart);
startdays = monthdays[y] - daystart + 1;
enddays = parseFloat(dayend);
alert(totalmonths);
if (totalmonths == 0){
    numberofdays = enddays - daystart + 1;
if (totalmonths >0){
    for(var i in monthdays){
        if (i >= y && i < x){
            numberofdays = monthdays[i] + numberofdays;
    numberofdays = numberofdays + parseFloat(dayend);
if(totalmonths < 0){
   //not coded yet
alert("TOTAL DAYS " + numberofdays);
But when I put the same code into my form (Livecycle Designer 8.0) it leaves a blank field.  The startdate and end date fields are date/time types.  For some reason when i just send x to be displayed by the form field it displays a number similar to 100.0074mm instead of 5.
var monthstart = Page1.startdate.rawValue.substr(5,2);
var monthend = Page1.enddate.rawValue.substr(5,2);
var daystart = Page1.startdate.rawValue.substr(8,2);
var dayend = Page1.enddate.rawValue.substr(8,2);
var monthweeks = new Array('4.43','4','4.43','4.3','4.43','4.3','4.43','4.43','4.3','4.43','4.3','4.43');
var monthdays = new Array(31, 28,31,30,31,30,31,31,30,31,30,31);
var numberofdays = 0;
var x = parseFloat(monthend) - 1;
var y = parseFloat(monthstart) - 1;
totalmonths = parseFloat(monthend) - parseFloat(monthstart);
startdays = monthdays[y] - daystart + 1;
enddays = parseFloat(dayend);
alert(totalmonths);
if (totalmonths == 0){
     numberofdays = enddays - daystart + 1;
if (totalmonths >0){
     for(var i in monthdays){
         if (i >= y && i < x){
             numberofdays = monthdays[i] + numberofdays;
     numberofdays = numberofdays + parseFloat(dayend);
if(totalmonths < 0){
    //not coded yet
days = numberofdays; //days is name of field on form
Any insight will be greatly appriciated

Two things .....
1 - x and y are reserved words in XFA and are used for the coordinate positions for objects hence you cannot use them as var names. I changed them to x1 and y1 and it worked.
2 - to display a message you would use app.alert with the same parameters not just alert
You can see any javascript errors in the javascript console (ctrl-J) using Acrobat.
Paul

Similar Messages

  • Javascript Calculator no longer works in FF. Other browsers OK.

    I have a javascript calculator that has suddenly stopped working in FF. I have upgraded from 3.5.8 to 3.6.3 but no changes. IE, Safari, Chrome and Opera all work fine.
    Calculator can be found at http://www.hydrastop.be/hprodCalc.html

    I see that the answer that I posted yesterday got lost by restoring a forum backup, so I'll repost my answer.
    I see that you have already applied the change that I had suggested.
    You need to use document.getElementById.
    See https://developer.mozilla.org/en/DOM/document.getElementById
    <code>function doMath() {
    var one = eval(document.theForm.elements[0].value);
    var two = eval(document.theForm.elements[1].value);
    var m2 = Math.round(one * two);
    var m3 = Math.round(one * two);
    var maxhstopqty = Math.round(m2 / 5);
    var minhstopqty = Math.round(m2 / 8);
    var minhblockqty = Math.round(m2 / 5);
    var maxhblockqty = Math.round(m2 / 3);
    document.getElementById('squareMeters').innerHTML = m2;
    document.getElementById('squareMeters2').innerHTML = m3;
    document.getElementById('minhstopReq').innerHTML = minhstopqty;
    document.getElementById('maxhstopReq').innerHTML = maxhstopqty;
    document.getElementById('minhblockReq').innerHTML = minhblockqty;
    document.getElementById('maxhblockReq').innerHTML = maxhblockqty;
    </code>

  • Updateable report with javascript calculation

    Hi all,
    I have an updateable report where the user fills in one column. I then need a simple multiplication based on the user filled in column and another column to populate into the final column.
    I have managed to do this using the following javascript in the page header
    <script language="JavaScript" type="text/javascript">
    <!--
    function calcit(pThis)
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    html_GetElement('f03_'+vRow).value = html_GetElement('f02_'+vRow).value * html_GetElement('f01_'+vRow).value;
    //-->
    </script>Column f01 is a value in a table based on the SQL to create the report (AQLSCORE)
    Column f02 is what the user fills in (AQLERRORS)
    Column f03 is where the calculation is populated (AQLTOTAL)
    With AQLERRORS element attribute = onchange="calcit(this);"
    The problem I am having with the above is that it only works when f03 is a text field (i.e. the user can change the value) I would like the column to be non-editable (the user should not be able to change this field). If I make the column Display as text (saves state) the calculation returns a NaN error.
    When I change the calculation from a * to a + the value returned is 1undefined showing that the value from f01 is undefined
    Demo app
    http://apex.oracle.com/pls/apex/f?p=15328
    username: demo
    password: demo
    There are 2 pages one where the calculation is working but with AQLSCORE as a text field and another where it is returning NaN but with AQLSCORE as Display as text (Saves state)
    Any ideas how I can perform the calculation and protect the AQLSCORE column from the user
    Kind regards,
    Alex
    Edited by: user10942729 on 30-Jul-2010 08:12

    Thank you for your response.
    I have corrected the code as you suggested however it still causes the same error.
    I have very limited knowledge of java and html (probably not a good start I realise) but it seems that the javascript cannot see(??) the value in the AQLScore (f01) column when it is Display as Text(saves state)
    If I change the calculation to just make the value = the AQLScore (f01) without the parseInt syntax 'undefined' is returned. With the parseInt 'NaN' is returned.
    I will keep looking for an answer
    Cheers,
    Alex

  • Help with Javascript/Calculations

    Hello,
    Have a building use policy for school.
    Need help with checkboxes and default values.  I can get javascript/math to work when I click check box.
    Someone wants to rent a room they check the rentRoom checkbox.  Then the enter how many rooms 1,2,3 etc..  The value for the rentRoom checkbox is $25.
    I can get it when the checkbox for rentRoom is selected the rentRoom.Total computes correctly.  However, what I want is when the form opens up a default value of $0.00 to be in there.  I also want if someone goes back and unchecks the rentRoom checkbox the value goes back to $0.00 not just blank.   Right now I am getting the error the value entered does not match the value of the field.  That is if I put the default value in options.  Basically, I can't seem to figure out the javascript code to get this to work.
    Am I asking for too much, can someone guide me to javascript to help me out.
    I have tried if/then statements and switch statements.  I just can't figure out how to get it to for lack of better a word - toggle back and forth.
    If this is not possible please tell me.  If it is too complicated tell me.  I am not using livecycle for this as we had a word document and I just used the find form fields.  I am also using Adobe Acrobat 8 Professional.
    Thanks

    Hello,
    Thanks that looks good.  I am still missing something but the calc doesn't work when I put in my variables.  I will work with it more but nothing happens.
    The one thing is I have the default value of the checkbox as 15 so don't know if that messes it up.
    Right now I get the default value of $0.00 all the time.  When I click on the check box on/off it doesn't do the calcs.
    sorry, any more input, what am i missing??
    I also changed the syntax error that was posted on your origianl post.  You had == 'Off" I changed that to 'Off'

  • Javascript calculation with APEX_ITEM.TEXT question

    Here is my code:
    select APEX_ITEM.TEXT(10,conversion_factor,10,null,null,'conv'||rownum) "Convert", APEX_ITEM.CHECKBOX(1,null,'CHECKED') "Unlocked", APEX_ITEM.DISPLAY_AND_SAVE(2,spec_name) "Name", APEX_ITEM.CHECKBOX(3,null,'CHECKED') "N/A", APEX_ITEM.CHECKBOX(4,null,'UNCHECKED') "Unknown", CASE NVL(secondary_value, 'x')
    WHEN 'x' THEN (APEX_ITEM.TEXT(5,null,35,null,'onChange=$x("PrimaryUnit'||rownum||'").value=$x(("conv'||rownum||'").value)*this.value;','PrimaryUnit'||rownum))
    ELSE APEX_ITEM.TEXT(6,primary_value,35,null,'PrimaryUnit') END "Primary Unit",
    CASE NVL(primary_symbol, 'x')
    WHEN 'x' THEN ' '
    ELSE APEX_ITEM.DISPLAY_AND_SAVE(7,primary_symbol) END "Primary Symbol",
    CASE NVL(primary_symbol, 'x')
    WHEN 'x' THEN ('<center>Edit</center>')
    ELSE APEX_ITEM.TEXT(8,secondary_value,20,null,'onChange=$x("PrimaryUnit'||rownum||'").value=$x(("conv'||rownum||'").value)*this.value;','SecondaryUnit'||rownum) END "Secondary Unit",
    CASE NVL(secondary_symbol, 'x')
    WHEN 'x' THEN ' '
    ELSE APEX_ITEM.DISPLAY_AND_SAVE(9,secondary_symbol) END "Secondary Symbol", conversion_factor
    from prd_model_specs_maint_vw
    where equip_id = :P201_EQUIP_ID
    and spec_group_name = :P240_ID
    The scenario is this: I have a field (PrimaryUnit + rownum). I would like to have a user put a number in this field and the javascript should take that value and take the conversion_factor and calculate what the new value is a place it in the second field (SecondaryUnit + rownum). I am currently getting a result of 0 every time. The javascript is an onChange call. This query is a bit messy, so let me know if you need more explanation. Thanks.
    Jon

    I like that solution. I will give that a shot. I did get the conversion to work, but it is messier than Andy's option. Here's is how the query looks now for anyone's reference:
    select APEX_ITEM.TEXT(10,conversion_factor,10,null,null,'conv'||rownum) "Convert", APEX_ITEM.CHECKBOX(1,null,'CHECKED') "Unlocked", APEX_ITEM.DISPLAY_AND_SAVE(2,spec_name) "Name", APEX_ITEM.CHECKBOX(3,null,'CHECKED') "N/A", APEX_ITEM.CHECKBOX(4,null,'UNCHECKED') "Unknown", CASE NVL(secondary_value, 'x')
    WHEN 'x' THEN (APEX_ITEM.TEXT(5,null,35,null,'onChange=$x("SecondaryUnit'||rownum||'").value='||conversion_factor||'*this.value;','PrimaryUnit'||rownum))
    ELSE APEX_ITEM.TEXT(6,primary_value,35,null,'PrimaryUnit') END "Primary Unit",
    CASE NVL(primary_symbol, 'x')
    WHEN 'x' THEN ' '
    ELSE APEX_ITEM.DISPLAY_AND_SAVE(7,primary_symbol) END "Primary Symbol",
    CASE NVL(primary_symbol, 'x')
    WHEN 'x' THEN ('<center>Edit</center>')
    ELSE APEX_ITEM.TEXT(8,secondary_value,10,null,'onChange=$x("PrimaryUnit'||rownum||'").value=this.value/'||conversion_factor||';','SecondaryUnit'||rownum) END "Secondary Unit",
    CASE NVL(secondary_symbol, 'x')
    WHEN 'x' THEN ' '
    ELSE APEX_ITEM.DISPLAY_AND_SAVE(9,secondary_symbol) END "Secondary Symbol", conversion_factor
    from prd_model_specs_maint_vw
    where equip_id = :P201_EQUIP_ID
    and spec_group_name = :P240_ID
    The change that made it work is this:
    onChange=$x("SecondaryUnit'||rownum||'").value='||conversion_factor||'*this.value;
    The '||conversion_factor||'*this.value is different and now works. Thanks,
    Jon

  • Updated Acrobat and now Javascript calculations not working in new forms.

    I had created forms for my work that allowed me to calculate back dates from a given date to instruct the form users when components of a project were due. Below is the script I used- I am NOT a programmer and this was taken from another forum. It has worked successfully for 2 years in both Acrobat 9 & 10 and in various forms I have made.
    var strStart = this.getField("0VendorArtApproved-2wk").value;
    if(strStart.length)
      var dateStart = util.scand("mmm d, yyyy",strStart);
      var oneDay = 24 * 60 * 60 * 1000;
      var dueMillis = dateStart.getTime() - 21 * oneDay;
      var dueDate = new Date(dueMillis);
      event.value = util.printd("mmm d, yyyy",dueDate);
    else
      event.value = "NA";
    "0VendorArtApproved-2wk" is the field the previous date was taken from- this and the amount of days "- 21" changes from field to field. This form has 3 levels that it calulates dates from- which starts with a single initial date entered into a text box by the user. This allowed the user to see when different elements of a project were due. Sorry if this seems basic to all the Javascript masters but I am really very clueless on prgramming speak and only know what I have read from forums.
    The last version of the form that worked successfully was in Oct 13', I went to create a new form and copied these formula boxes to a new form and now half of them do no work.
    I have rechecked my formulas and formatting and cannot find and issue. They are exactly the same. One works and one does not. The only thing I can see different from the 2 forms is that I am certain there were 1 or 2 updates to the Acrobat software itself that could possibly have caused an issue.
    So I have 2 documents- 1 created in October 13' that works and one created today Jan 14' that does not work. They have the same formulas.
    Anyone aware of changes to Acrobat or errors in my formula that could have caused this? I am in version 10.1.9

    Applied this fix. There was an error in the NEW document. I redid the formulas in the NEW document and that did not work. Still had the same problem. 
    SO I went back and redid the formulas in the fields in the OLD document to the revision I needed and that worked. All I was trying to do was tweak the number of days between one element and the next in this area and there were a bunch of other revisions to the form so I figured it was easier to start fresh.  I will just make all the revisions to the OLD document- which will be a lot of work, but at least my formulas are working. Not an ideal fix but something must have been glitchy in the new document and I now have a workable form.
    I believe some kind of odd interaction happened when I copy and pasted the fields from document to another.
    Thank you so much for your help! I am days away from maternity leave so I had to get this figured out fast!

  • Help with PDF Javascript calculation involving checkboxes

    Hello Everyone,
    I have a PDF Form, and need help with a calculation.
    For the sake of simplicity, Lets say I have 5 fields. FSA1 and FSA2 are checkboxes. TotalClaimed1 and TotalClaimed2 are text fields which allow only a numerical input.
    The last box, FSA_Total, should add the value from TotalClaimed1 if FSA1 is checked, and it should also add the value from TotalClaimed2 if FSA2 is checked.
    The code is malfunctioning, however. Something is causing it to add to the total every time the box is checked. Its almost like the checking off of the box is what causes the addition.
    It seems like the code is being read as "When the box is checked, add the value to the total", so each time the box gets checked, it adds to the total again.
    and it should be "IF the box is checked, add the value to the total" so if there is a value in the field, and the box is checked, that value is passed on to the total; and if the box is not checked, the value is ignored.
    Can anyone spot what might be causing this? Code is below.
    var claim1 = parseInt(this.getField('TotalClaimed1').value),
        claim2 = parseInt(this.getField('TotalClaimed2').value),
        fsabox = parseInt(this.getField('FSA_Total').value);
    if (this.getField('FSA1').value == 'Yes') {
        fsabox += claim1;
    if (this.getField('FSA2').value == 'Yes') {
        fsabox += claim2;
    event.value = fsabox;
    Thanks
    Thisguy1234

    This is a custom calculation script for FSA_Total, correct? The code is working correctly, it's just not what you want. Assuming this is a custom calculation script in the FSA_Total field, it should be something like:
    var sum = 0;
    var claim1 = parseInt(getField('TotalClaimed1').value, 10),
        claim2 = parseInt(getField('TotalClaimed2').value, 10),
    // Add field values if corresponding check boxes are selected
    if (getField('FSA1').value !== "Off") {
        sum += claim1;
    if (getField('FSA2').value !== "Off") {
        sum += claim2;
    // Set this field value
    event.value = sum;
    Why are you using parseInt, exactly?

  • Help with simple Javascript calculation please

    Hello, I've created a form for my company that contains measurements in meters for shipping.  I need to have the total of the measurement appear in the cube/M3 field.  For example, 6.17*3.02*3.35 returns NaN - it should return 62.42.  My fields are called Measure1Row and CubeM31Row.  This field will also be calculated as a total which I had no problem setting up. Under simplified field notation I entered = Measure1Row and it didn't work.  I also tried Measure1Row * 1.  Can someone please help me out?  Thanks so much!

    Hi George,
    I want the product of this measurement 6.17*3.02*3.35 (in meters) to appear in theCubeM31Row.  There are only 2 fields that are affected by this calculation - Measurement and Cube/M3.  The form fields are Qty, Commodity, Measurements, lbs, kgs and Cube/M31Row.  The measurement appears in one field - the other fields contain calculations that match and produce the correct answer.  Does that help?  I'm stumped.

  • Javascript calculations not resolving properly

    Hi,
    I am currently making a PDF that makes labels for products based on what is entered on the first page.
    I have been running it ok for a while and just printing off tests, now out of no where after no changes some of the calculations are not resolving.
    For example I have a row of coloured tick boxes to show what colour the product is, on the label it is typed out twice once in an abbreviation for a product code then in full for the description.
    I have noticed that now some of the colours won't register with the label until you check the next one and sometimes it will be delayed by 1.
    I have come across this problem before and was unable to fix it, I have tried chaining the calculation sequence but to no avail.
    Is there anything else I can do to fix this?
    Thanks,
    Bruce

    Hi,
    Sorry for the late reply.
    I had ago at this when I saw it but I seem to be getting the wrong output from it and I am not sure as to why this is.
    I am using the colours as I have found that only the colours seem to not work properly.
    if(this.getField("Colour").value=='MB'){
    event.four = "MEDICAL BLUE"
    } else if (this.getField("Colour").value=='LB'){
    event.four = "LIGHT BLUE"
    } else if (this.getField("Colour").value=='CR'){
    event.four = "CREAM"
    } else if (this.getField("Colour").value=='GR'){
    event.four = "GREY"
    } else if (this.getField("Colour").value=='MG'){
    event.four = "MEDICAL GREEN"
    } else if (this.getField("Colour").value=='LI'){
    event.four = "LILAC"
    } else {
    event.four = "?"
    I seem to only get the abbreviated text as a result and not what I defined and reason why this is?
    I am using radio buttons for the colour if this makes it any different?
    Thanks,
    Bruce

  • If, then, javascript calculation on pdf form

    I have a form with a grid which lists credit cards transaction amounts, with a drop down box for "type of credit" (visa, mastercard, discover).  The bottom of the form has 3 different total lines; one for each of the credit card types.  I would like to know how I get the amounts entered on the grid above to be included onto the correct total line, depending on what type of credit card was chosen from the dropdown on that row.  Since I'm not versed in java script, I'm having difficulty figuring out how to accomplish this type of calculation

    I would recommend that you post this question over in the Acrobat Forms area as the folks there can help you best.

  • If statement in Custom Calculation Script

    I have 16 fields and if even one of them ="1" I have to list it in another field.  I do not want to count or sum.  If one of those fields has a 1 in it I just want the other field to display Y and if none have a 1 I want that field to display N.
    Please help.
    Thank you in advance~mjc

    You need to write a compound logical statement to evaluate all of the values and that statement needs to evaluate to true or false.
    Do you know how to write JavaScript?
    Do you know how to enter JavaScript calculations into a form field?
    For custom calculation of the text field I could write something like:
    // define an array of the field names to check
    var aNames = new Array("Text1", "Text2", "Text3", "Text4",
    "Text5", "Text6", "Text7", "Text8",
    "Text9", "Text10", "Text11", "Text12",
    "Text13", "Text14", "Text15", "Text16");
    // define a logical variable that is true if any field has a value of 1 - default is false or no field has a value of 1
    var bMatch = false;
    // value for text field
    var TextValue = 0;
    // logical value of field being equal to 1 test
    var FieldIs1 = false;
    // loop through all the fields and test the fields value
    for(i = 0; i < aNames.length; i++) {
    // logically OR the result of field i value equal to true with bMatch
    // get the value of field
    TextValue = this.getField( aNames[i] ).value;
    // test the value of the field
    FieldIs1 = Number(TextValue) == 1
    // logically OR the 2 values
    bMatch = FieldIs1 | bMatch;
    } // end field processing
    // set the field value
    if(bMatch == true) {
    event.value = "Y";
    } else {
    event.value = "N";
    You will need to change the field names to match your fields. You can add more field name or remove field names as needed and the script will adjust for the number of field names.

  • Simple calculations not working in acrobat 9

    I have text form fields made in Acrobat 9 from a previously made pdf, where I need a simple calculation, but I cannot get it to work.
    The form is not for submission, only for personal tracking, so I don't even need validation.
    FieldA (a number they enter) x a number I have entered in the calculation = FieldB
    FieldB x FieldC (a number they enter) = FieldD In FieldB I have a simple javascript Calculation in the form field: FieldA * .115, which should automatically calculate answer into FieldB, when tabbed.
    In FieldD I have a Calculation in the form field: FieldB * FieldC, which should automatically calculate answer into FieldD. All fields are set as numbers.
    I have left the Trigger Action as Mouse Up.
    I don't need to validate, as this is personal use, and is not being submitted.
    I have all fields in the correct tab order.
    I have reader enabled the form. When I open the form in Reader, I can enter the numbers, but no calculations are being performed. It reads 0 in FieldB and FieldD. Any assistance would be greatly appreciated.

    Hello Everyone,
    I use the following VBS code, but to tell the truth, I don't know if it works or not. The main idea was to enable commenting from Adobe Reader. But after execution code, saving document and reopening it in Reader, commenting is still 'Not Allowed'. Is showAnnotToolsWhenNoCollab really capable to allow this and there is only error in my code? Or is the functionality different and this way can never be used for what I want?
    There is another issue that application is not closed on Exit, but is still shown.
    scriptPath = "C:\Acrobat\"
    Set gApp = CreateObject("AcroExch.App")  
    Set pdDoc = CreateObject("AcroExch.PDDoc")
    sampleFilePath = scriptPath & "AR_test_orig.pdf"
    pdDoc.Open sampleFilePath
    pdDoc.OpenAVDoc "myFile"
    gApp.Show
    Set formApp = CreateObject("AFormAut.App")
    'formApp.Fields.ExecuteThisJavascript "app.alert(""hello"");"
    formApp.Fields.ExecuteThisJavascript "Collab.showAnnotToolsWhenNoCollab = true;"
    Set formApp = Nothing
    pdDoc.Save 1, scriptPath & "AR_test.pdf"
    'pdDoc.Close
    gApp.CloseAllDocs
    gApp.Exit
    Set pdDoc = Nothing
    Set gApp = Nothing
    Thanks for any ideas.
    Jan
    PS: I use Acrobat 9.0 Pro

  • JavaScript for English to Spanish?

    I have a document that consists of 10 forms. The first page is in English and contains fields that our workers complete. These fields consist of names, phone numbers, dates, etc. What is inputted on this first page then populates to corresponding fields in the rest of the document that happens to be in Spanish. These documents are for our Spanish speaking clients.
    My question is, on the first page the worker inputs the date as this 05/01/15. It is formatted to mm/dd/yy and the field name is AssessmentDate. One of the forms is a letter, in Spanish, that references the AssessmentDate field from the first page. I have named this new field SPAssessDate. I would like to have the date from the English field, AssessmentDate, formatted in the new field, SPAssessDate, as 01 de Mayo de 2015. Is this possible?
    Thank you, Jamie

    Yes, but you will need to write some custom scripting to get the exact format you are looking for.
    Custom JavaScript calculation for SPAssessDate field:
    var oField = this.getField("AssessmentDate");
    if(oField == null) app.alert("Error accessing AssessmentDate field", 1, 0);
    oDateObject = util.scand("mm/dd/yy", oField.valueAsString);
    if(oDate == null) app.alert("Error convegting date to date object", 1, 0);
    event.value = "";
    if(oDate != null) {
    event.value = util.printd("date(es){DD ' de ' MMMM ' de'  YYYY}", oDateObject, true);

  • Can iWeb act as a calculator?

    I would like to try iWeb, can it do this: a page where the user would enter in three numbers, a calculation would be performed, and the result displayed on the page.

    Try this JavaScript calculator
    http://www.javascriptkit.com/script/cut18.shtml
    Don't know whether that is what you want - if so just put it in an html snippet.

  • Can't Copy From New Google Calculator Applet

    When I enter a mathematical expression into Googles search, it now brings up a javascript calculator that shows the result.
    For example, when I search for "2+3" the calculator appears above the search results, showing "5" in the calculation window.
    Unfortunately, while I the calculator appears to perform the indicated arithmatic, I'm unable to select the result to copy it from the calculator and paste it into the document I'm editing.
    The cursor changes to the I-bar when it's over the result field, but the text cannot be selected.
    It works fine in Chrome.
    Upgrading Firefox to 14.0.1 and Java to 7.0.50.255 didn't help.

    That is caused by using -moz-user-select: none; instead of -moz-user-select: -moz-none;<br />
    So Google needs to fix this for Firefox.
    <pre><nowiki>.cwmd { -moz-user-select: none; }
    </nowiki></pre>
    *https://developer.mozilla.org/en/CSS/-moz-user-select
    <pre><nowiki>-moz-none Non-standard
    The text of the element and sub-elements cannot be selected, but selection can be enabled on sub-elements using -moz-user-select:text .</nowiki></pre>
    Add code to the userContent.css file.
    *http://kb.mozillazine.org/userContent.css
    The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    <pre><nowiki>
    @-moz-document domain(www.google.com){
    .cwmd { -moz-user-select: -moz-none!important; }
    }</nowiki></pre>

Maybe you are looking for

  • There was an error opening this document. This file is already open or in use by another application

    I cannot open any PDF documents. I receive one of two error messages: "There was an error opening this document. This file is already open or in use by another application." "This file is in use. Enter a new name or close the file that's open in anot

  • Set up a Windows formatted Drive as an Airport Extreme USB drive

    I have a USB hard drive that was formatted as a Windows NTFS drive.  The drive does not have data that I want to keep.  I assume I have to format it as a MAC drive to use it as a Airport Extreme USB drive.  What is the best way to set it up?  Should

  • Surface Pro 3 PXE Boot Error

    Hi there, I am using MDT 2013 on a WDS 2008 R2 and everytime i tried to image the tablet via PXE boot through the Surface Pro 3 ethernet adapter, i get this error: Wizard Error: A connection to the deployment (my deployment share) could not be made.

  • Adobe Reader XI or Adobe Acrobat XI not compatible?

    I came to the conclusion the upgrades they incorporated for the both when you are using Windows 7 home premium is not compatible.  I have given up trying to upload, download, etc...to try and print a document from pdf.  I will definitely be using ano

  • How can I merge many short sound files into 1 file?

    Hello I have a bunch of 1 or 2 second long mp3 files that I'd like to merge together to make just 1 file. Is there a way to do it in iTunes? I know you can merge tracks when importing Audio CDs but I'm not sure how to do it with files already on the