Page 1 of 1

Error rendering checkbox within html widget within a list

Posted: Wed May 13, 2015 6:43 pm
by Miguel Navarro7469744

In order to get around styling issues I am using the list widget and inserted an HTML Widget. Within the HTML widget I have created a checkbox. When the page is rendering the following issue is reported at the console:

Error: cannot call methods on checkboxradio prior to initialization; attempted to call method 'refresh' {stack: (...), message: "cannot call methods on checkboxradio prior to initialization; attempted to call method 'refresh'"}

Image

Everything works fine, but to get around this issue I programmatically add the checkbox through the pageShow event.


Error rendering checkbox within html widget within a list

Posted: Thu May 14, 2015 2:26 am
by Yurii Orishchuk

Hi Miguel,

I tried the same and all works correctly.

See details:

  1. Checkbox withing HTML(div) withing list-item.
    Details: http://prntscr.com/74z5ek/direct

  2. Result:
    Details: http://prntscr.com/74z5ml/direct

    So currently your problem is not clear. I guess the culprit of this problem could be in implementation. Please try what i show in my screen shot on other page to test it.

    Regards.


Error rendering checkbox within html widget within a list

Posted: Thu May 14, 2015 3:06 am
by Miguel Navarro7469744

The difference with mine is that I enter raw html checkbox within the html div. I do this so that I can have a native element sans jqm enhancements.


Error rendering checkbox within html widget within a list

Posted: Fri May 15, 2015 3:18 am
by Yurii Orishchuk

Hi Miguel,

Please show us details(how we can reproduce it in our app) about your implementation.

Thanks.