bamber2 — 2012-11-17T10:48:03-05:00 — #1
The code on page 270 does not work as intended. Its puts the attribute 'checked' in all radio buttons. Surely what is required is to put the said attribute in only one radio button and clear it from the rest.
I can't get closeDialog() to work.
For both examples I have not, so far, been unable to discover why the given error code is in error.
bamber2 — 2012-11-21T09:58:29-05:00 — #2
I found that I can get 18_simple.modal.dialog to work by substituting the function' live 'for the three occurrences of 'on' in the closeDialog() function
cpradio — 2012-11-21T10:40:29-05:00 — #3
Just wanted to point this out, as I'm not sure which version of jQuery the book was written for, but as of 1.7 jQuery deprecated the live() event for the use of on()
As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers. Users of older versions of jQuery should use .delegate() in preference to .live().
bamber2 — 2012-11-22T08:49:26-05:00 — #4
I know this but how to make it work with 'on. I am using the second edition.Anyway thank you for the interest.
cpradio — 2012-11-22T09:03:52-05:00 — #5
I've recently got a copy of the book, hopefully I can take a look at it this weekend to see if I can't help you figure it out.