Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Ch.4 Pg 151, Checkbox Example, 4-21
BusterBluth
post Aug 26 2009, 04:56 AM
Post #1


New Member
*

Group: Members
Posts: 2
Joined: 26-August 09
Member No.: 19,892



The book says that each time a checkbox's value is changed, the page will post back and the text will refresh w/ the new time.

This didn't happen when I ran the example. The time refreshes after the initial postback, but not upon subsequent changes. Would putting this code in the Page_Load event be more appropriate?

Since the server is creating Javascript to handle the clicks, it makes sense to me why the client would handle the changes without posting back to the server. Is that in fact what is happening?
Go to the top of the page
 
+Quote Post
BusterBluth
post Aug 26 2009, 05:42 AM
Post #2


New Member
*

Group: Members
Posts: 2
Joined: 26-August 09
Member No.: 19,892



Quick correction: The date/time label refreshes after the 1st 2 clicks of any control, but not after the 3rd change of any control.

I noticed the same behavior w/ example 4-21 as well.
Go to the top of the page
 
+Quote Post
Angela Brooks
post Jan 31 2010, 10:49 PM
Post #3


New Member
*

Group: Members
Posts: 2
Joined: 31-January 10
Member No.: 22,198



QUOTE (BusterBluth @ Aug 26 2009, 05:42 AM) *
Quick correction: The date/time label refreshes after the 1st 2 clicks of any control, but not after the 3rd change of any control.

I noticed the same behavior w/ example 4-21 as well.


Example 4-21 works on the same structure defined in chapter 4.


--------------------
I work in an alcohol rehab. Can anyone here help me in managing a site on drug and alcohol rehab ? Then P.M me!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 9th February 2010 - 06:53 PM