|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I would be grateful for some help with a programming query.
Here is a link to the page: http://www.s114085044.websitehome.co...82&RIDUnit=171 To give a full picture: http://www.s114085044.websitehome.co...ster/logon.asp is the main logon page. Manager is the logon and password and 382 is a real department. In the section that says Severity, Likelihood and risk Score. What I would like is the previous risk score to appear in the previous risk score box. I cant work out how this can be achieved. I have created an additional input box and field called midscore in the database which i thought might be an area to hold an interim value but I cant really get my head on the right track. It might be becuase its a hot day - but Im really struggling with and any help will be greatly appreciated. Kind regards emma |
|
||||
|
Assuming I'm reading this correctly, put this in your dothemath() function immediately before you do the calculation:
Code:
document.managerDetail.previousriskscore.value = document.managerDetail.answer.value Code:
<td align="left">
<input name="previousriskscore" type="hidden" id="previousriskscore" value="0">
<span class="pagetext" id="prscore">0</span>
</td>
Code:
var answer = document.managerDetail.answer.value;
document.getElementById("prscore").innerHTML = answer;
[/code]
__________________
Toronto Web Design | Search Engine Friendly, Standards-Compliant Layouts | Walk on my Path (my blog) |
|
|||
|
Hi thanks for your reply.
Unfortunately that doesnt seem to work. If i put the line of code in the doMath function before the calculation, i loose the calculation and the score doesnt show up. I have also tried to add the lines of code to produce the ouput to screen but these are now showing up. I apolgoise I am also a little unsure of what do do with the final piece of code. which function shoul this be added to? Im not very good at javascript unfortunately :( Thank you anyway for your help so far and would be really grateful if you could explain it a little more. with kind regards emma |
|
|||
|
Can anyone else shed any light on this please?
kind regards emma |
|
|||
|
I still havent been able to resolve this issue. Can someone please help me with this?
Thanking you in advance. kind regards emma |
|
|||
|
I still havent been able to resolve this issue. Can someone please help me with this?
Thanking you in advance. kind regards emma |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |