Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Passing value
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Passing value

 Post Reply Post Reply
Author
ngaisteve1 View Drop Down
Groupie
Groupie
Avatar

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Topic: Passing value
    Posted: 04 July 2003 at 1:43am

I have this page displaying some details of a profile from a database. Eg, name, quantity requested. Then, this same page I have this field called quantity issued. Instead of keying in the same figure same most of the time in this field, I thought about having a checkbox, which once user click, the value of quantity issued will be same with quantity requested. The problem is I don't really know how this value from recordset to be converted to client-side value. Code is something like below:

function checkChoice(whichbox)
{
with (whichbox.form)
{
if (whichbox.checked == true)
{
document.myform.qty_issued_fr.value = document.myform.qty_requested_fr.value;
}
else
{
document.myform.qty_issued_fr.value="";
document.myform.qty_issued_fr.focus();
}
}
}

<tr>
<td>Quantity requested:</td>
<td><input type=text name=qty_requested_fr size=9 value="<%=strQtyRequested%>" readonly></td>
</tr>
<tr>
<td>Quantity issued:</td>
<td><input type=text name=qty_issued_fr size=9><input type=checkbox name=chksame onclick="checkChoice(this);"> same as above
</td>
</tr>

http://www.htmlforums.com/attachment.php?s=&postid=166394

Thanks.



Edited by ngaisteve1
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.