tdreyno/iphone-style-checkboxes — Issue #59: Dynamically generated content
Author: pickledgator
Created: 2012-02-17 03:45:39+00:00
State: open

I'm trying to use these check boxes on a dynamically generated page and it's having trouble figuring out the widths of the div containers. I think this may be a common jquery problem, but I'm stumped trying to figure out how to get this to work correctly!

From what I can tell, the problem is occurring in optionallyResize() since onLabelWidth and offLabelWidth are 0, which makes newWidth 15 (the marginal size).

My page ideally has a form which allows you to enter a number, then based on that number a new form is generated dynamically with information from a mysql query. I'm trying to get your checkboxes to generate when the form is populated and this is where I'm running into the width problems.

Any help is appreciated!