iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
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

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-2005, 06:50 AM
WebProWorld Pro
 
Join Date: Jun 2004
Location: Weymouth, UK
Posts: 125
EmmaGale RepRank 0
Default Programming query

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
Reply With Quote
  #2 (permalink)  
Old 06-24-2005, 10:52 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 1
Default

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
Now this won't show up anywhere on the screen because your form field previousriskscore is hidden. But...if you want it to, it's not all that hard. Just do this:
Code:
   <td align="left">
            <input name="previousriskscore" type="hidden" id="previousriskscore" value="0">
            <span class="pagetext" id="prscore">0</span>
</td>
And then, in that same function:
Code:
var answer = document.managerDetail.answer.value;
document.getElementById("prscore").innerHTML = answer;
That should get you where you want to go.
[/code]
Reply With Quote
  #3 (permalink)  
Old 06-24-2005, 12:26 PM
WebProWorld Pro
 
Join Date: Jun 2004
Location: Weymouth, UK
Posts: 125
EmmaGale RepRank 0
Default

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
Reply With Quote
  #4 (permalink)  
Old 06-28-2005, 10:53 AM
WebProWorld Pro
 
Join Date: Jun 2004
Location: Weymouth, UK
Posts: 125
EmmaGale RepRank 0
Default Any other ideas?

Can anyone else shed any light on this please?

kind regards
emma
Reply With Quote
  #5 (permalink)  
Old 07-04-2005, 12:21 PM
WebProWorld Pro
 
Join Date: Jun 2004
Location: Weymouth, UK
Posts: 125
EmmaGale RepRank 0
Default

I still havent been able to resolve this issue. Can someone please help me with this?

Thanking you in advance.

kind regards
emma
Reply With Quote
  #6 (permalink)  
Old 07-04-2005, 12:22 PM
WebProWorld Pro
 
Join Date: Jun 2004
Location: Weymouth, UK
Posts: 125
EmmaGale RepRank 0
Default

I still havent been able to resolve this issue. Can someone please help me with this?

Thanking you in advance.

kind regards
emma
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:22 PM.



Search Engine Optimization by vBSEO 3.3.0