BorisMoore/jsviews — Issue #43: More a practice question than an issue
Author: benjamindulau
Created: 2012-03-09 11:41:37+00:00
State: open

That's not a issue, but i can't find a place to ask (maybe an IRC channel, forum, or else ?)

I used first jsRender to create a simple uploader UI widget.

The goal is to get the same features as the Google+ upload widget.
Especially this feature :

1/ When a file is added for upload, an element with a progress bar is appended
2/ When a file upload is done, the current element is replaced by another one, the final uploaded file (2 different templates)

My tests with jsRender were successful, so i told myself, maybe you can add to this more dynamism by using jsViews (i mean by letting jsViews automatically update the dom when data is updated).

The thing is i can't in that case, because i have to different templates (one while upload is in progress, and one after it's done) that can be appended to the same container element.

We can't link two data structures to the same element. Maybe that's logic by nature, but still, i have to ask, can i have the behaviour i expect with jsViews ?

Thanks.
Benjamin.