DataZombies / jQTouch

jQT extensions jqt.activityIndicator, jqt.bars (with numeric badges), jqt.checkGroup & jqt.segmentedControl.Get updates via Twitter http://twitter.com/HeadDZombie. If you find this fork useful please make a donation via PayPal (http://tinyurl.com/2fpmx27). See below for demo links.
MIT License
159 stars 34 forks source link

jqt.checkGroup doesn't work with ajax-loaded input tags #2

Closed giuliano closed 13 years ago

giuliano commented 13 years ago

the checkGroup ext as it is doesn't work if forms widget are ajax-loaded. There is some workaround or parameter/settings to initialize to have them work?

DataZombies commented 13 years ago

Please try the "jqt.checkGroup css test." commit. I separated the styles from the JavaScript.

giuliano commented 13 years ago

Still no luck. As you can see here: http://ppmobile.giusi.org/pp-iphone/static/ (click immobiliare, then Ville e Appartamenti Then the right top button Filtra) with an ajax loaded form page the script isn't "activated" for the inputs. Maybe what is missing is the use of the jquery live() function ?

DataZombies commented 13 years ago

The jqt.checkGroup/themes/apple/theme.css file is not included in index.html.

giuliano commented 13 years ago

Hi, how you can see from the screenshot here ( http://giusi.org/checkgruop.png) also with the styles included the js for the checkgroup is not activated.

DataZombies commented 13 years ago

I've added initCG(). Please add this to the end of the "load filtri" code.