Curtis
Many thanks again for your response.
As you say, I could restructure my observableList such that each section included an array of questions/comments and render using that.
In fact that's exactly how my earlier jQuery/handleBars (non canjs) version worked. I wll probably try this just to satisfy myself that the live binding then works.
The practical issue, however, is that I will then have shed loads of changes to make elsewhere as the observableList is a major foundation of the rest of the app. Not ideal.
At the moment I can sidestep the live binding problem by manually re-rendering as and when necessary, which is actually not often, a MUCH smaller change than adjusting the structure of the observableList and dealing with that's knock on effects.
In the meantime I'll digest your code example to make sure that I have understood all the issues.
At the moment I don't grock the difference between push(newSection) to the observableList (works) and push(newQuestion/newComment) which fails. The former triggers the live binding into life, the latter doesn't but in both cases canjs 'knows' that the observableList has changed.
Regards
Ron Yuen
Many thanks again for your response.
As you say, I could restructure my observableList such that each section included an array of questions/comments and render using that.
In fact that's exactly how my earlier jQuery/handleBars (non canjs) version worked. I wll probably try this just to satisfy myself that the live binding then works.
The practical issue, however, is that I will then have shed loads of changes to make elsewhere as the observableList is a major foundation of the rest of the app. Not ideal.
At the moment I can sidestep the live binding problem by manually re-rendering as and when necessary, which is actually not often, a MUCH smaller change than adjusting the structure of the observableList and dealing with that's knock on effects.
In the meantime I'll digest your code example to make sure that I have understood all the issues.
At the moment I don't grock the difference between push(newSection) to the observableList (works) and push(newQuestion/newComment) which fails. The former triggers the live binding into life, the latter doesn't but in both cases canjs 'knows' that the observableList has changed.
Regards
Ron Yuen