Jump to content

DwnWrdSprl11

Members
  • Content Count

    7
  • Joined

  • Last visited

Community Reputation

0 Neutral

About DwnWrdSprl11

  • Rank
    Newbie
  1. Fixed the quote, but it's still not calculating 😰 <!DOCTYPE html> <html> <head> <style> table { font-family: Arial Narrow, Arial Narrow; border-collapse: collapse; width: 100%; } td, th { border: 1px solid #dddddd; text-align: left; padding: 5px; } tr:nth-child(even) { background-color: #dddddd; } </style> </head> <body> <table style="width:100%"> <tr> <th></th> <th>Interval 1</th> <tr> <td>Ending Depth (TVD)</td> <th><input type="number" id="Interval-1-End
  2. Ok, i had looked at another approach.. may be even more complex.. but seriously.. i have no idea what i am doing wrong. the best thing to help me is to show me what the full code should look like. I am a super beginner... Just looking at 1 calculation: <!DOCTYPE html> <html> <head> <style> table { font-family: Arial Narrow, Arial Narrow; border-collapse: collapse; width: 100%; } td, th { border: 1px solid #dddddd; text-align: left; padding: 5px; } tr:nth-child(even) { background-color: #dddddd; } </style> </head> <body> <
  3. So, it's still not working.. what do I have wrong here? I type in numbers in the cells and it doesn't populate the hydrostatic. <!DOCTYPE html> <html> <head> <style> table { font-family: Arial Narrow, Arial Narrow; border-collapse: collapse; width: 100%; } td, th { border: 1px solid #dddddd; text-align: left; padding: 5px; } tr:nth-child(even) { background-color: #dddddd; } </style> </head> <body> <table style="width:100%"> <tr> <th></th> <th>Interval 1</th> <th>Interval 2</th
  4. Let's simplify this.. let's only look at one calculation. I need the entire row calculated. the calculation is "Ending Depth TVD" * "Interval End MW (lb/gal)" * 0.052 so in interval 1, lets say End Depth TVD is entered in as 10,000, then Interval End MW is entered in as 12.0... the (cell) for interval 1 on Interval TD Hydrostatic Pressure (psi) should show 6,240 How do i get that to run? <!DOCTYPE html> <html> <head> <style> table { font-family: Arial Narrow, Arial Narrow; border-collapse: collapse; width: 100%; } td, th { bo
  5. I have a table I've built that is going to have a lot of user input. From the input there are going to be numerous calculations to be found. So I have the table set up, but I don't know how to write the code to get the calculations to work... something like Excel. 1. Row "Interval TD Hydrostatic Pressure (psi) is calculated (in respective column) by: "Ending Depth (TVD)" * "End Mud Weight (lb/gal) * 0.052 2. Row "Interval Footage (ft)" is calculated (in respective column) by: "Ending Depth (MD)" - "Starting Depth (MD)" 3. Row "Expected Hours to Drill" is calculated (in respect
  6. so, like this to fix it? I will look into the event. Considering I've got hundreds of calculations to do, is there not a better way to do this? I'm taking a book I wrote in excel and trying to make an actual program out of it. <tr> <td>Interval TD Hydrostaic Pressure (psi)</td> <th> id="Interval-1-Hydrostatic" <script> var a = "Interval-1-EndTVD" var b = "Interval-1-EndMW" var c = 0.052 var z = document.getElementByID(a).value * document.getElementByID(b).value * c; document.getElementByI
  7. I am a super beginner, never did any of this before. I am trying to get the following two rows to calculate using ID and GetElementByID ... I would like Interval 1 Hydrostatic Pressure to calculate by referring to two other cells within the same column Formula is: Interval 1 Ending Depth TVD * Interval 1 Ending MW * 0.052 Your help is appreciated! <!DOCTYPE html> <html> <head> <style> table { font-family: Arial Narrow, Arial Narrow; border-collapse: collapse; width: 100%; } td, th { border: 1px solid #dddddd; text-align:
×
×
  • Create New...