Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table problems!

Status
Not open for further replies.

mdeal

Technical User
Joined
Aug 30, 2002
Messages
9
Location
US
Hey there!

I know this is a simple question, but I'm new to javascript and could use a hand. I'm writing this for a service organization I'm a member of to help report receipts for fundraising efforts. What I've got is a prompt that asks for receipts for each day of the week, then loads them to a table. Right now the prompts are run at the page's open. My problem is I need to allow the person inputting to go back and edit the receipts in case of a mistake. Any help would be really appreciated. Thanks.

Mike
 
can you post the code for how yo're doing the initial entries, then we can work off of that A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
is this kind of what you are trying to do. this is a real basic example
<html>

<head>
<script>
function getName() {
var name1 = prompt (&quot;What name for textbox 1?&quot;,&quot;&quot;)
frm.nm1.value = name1;
var name2 = prompt (&quot;What name for textbox 2?&quot;,&quot;&quot;)
frm.nm2.value = name2;
}
function changeName() {
var name1 = prompt (&quot;What name do you want to change textbox 1 to?&quot;,&quot;&quot;)
frm.nm1.value = name1;
}
</script>

</head>
<body onLoad=&quot;getName()&quot;>
<form name=&quot;frm&quot;>
<table>
<tr>
<td>
<input type=&quot;text&quot; name=&quot;nm1&quot; style=&quot;border:none;&quot;>
</td>
<td>
<input type=&quot;text&quot; name=&quot;nm2&quot; style=&quot;border:none;&quot;>
</td>
</tr>
<tr>
<td>
<input type=&quot;button&quot; value=&quot;change name&quot; onClick=&quot;changeName()&quot;>
</td>
</tr>
</table>
</form>
</body>
</html> A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top