Re: Strangeness afoot
Subject : Re: Strangeness afoot
From: Lachlan Deck <email@hidden >
Date: Fri, 26 Oct 2007 10:30:28 +1000
Delivered-to: email@hidden
Delivered-to: email@hidden
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; bh=4GuGJzBN+qYPQU0+hSk0sO7hTBp4ff+IkQe8D7Z+YmU=; b=XrerSozHztFVX9l5Zd87xD8+EVlPXnV22dqEQqdTMX2D5Mi2qTCgSNA3y1AVY9iu8o6QNexU7XMZ7x8/CWGtH9H2z1yfHRt7JN7SnP1surlR9JpdMPPRF83/+RsWc9aWJODWa+Tcnh8XBkepw5yZ1+mw0/YH1STb+kBOEDiu2rU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=Rd7NJBdH4OMxHdSsVyRGKkrCNzVn64DIMw0q5KMALPxESvaZD9IJ7zMrDHncStMookN+83A7fMvAzRpuCgdjyQj/HWRrvISJUWgIORqrhJaDsd0NIRflQZWqxOpXdN8aX0Mdf2QbWgevBxVhG+Rw/KWxSsXHm8ltkrR0g7LdMBg=
On 26/10/2007, at 9:35 AM, Kevin Windham wrote:
After finally figuring out my goofy mistake earlier I made some
progress. I have a functioning solution now, but I am puzzled by
some strange behavior I am seeing although I am sure there is a
perfectly reasonable explanation for it. I just can't see it.
I have the following method that creates a name for a checkbox.
tableIndex is bound to the repetition of the table row that
contains the checkboxes.
lastTableIndex is a variable I use to help keep track of when the
column index needs to be reset
colIndex is the column index that I am using for naming purposes.
<...>
<td width="175" align="left" class="black10"
style="padding:3px 0px 3px 2px;">Dog 2</td>
<td align="center"></td>
<td align="center"><input type="checkbox" name="r1c1"
value="0.37.10.18.1.5.0"></td>
<td align="center"><input type="checkbox" name="r1c3"
value="0.37.10.18.1.7.0"> </td>
<td align="center"><input type="checkbox" name="r1c5"
value="0.37.10.18.1.9.0"></td>
<td align="center"></td>
</tr>
Notice how the columns count by two? Anyone have any idea why that
might be?
Yes, you are incrementing a variable that is already being
incremented by WORepetition. So it's doubly incremented per item.
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.