Thanks a ton @Yardanico and @bung, this solved a lot of trouble. I also looked 
at the nim forum source but didn't understand why they were using the 
dom.document api instead of karax's own vdom, but as @Yardanico pointed I was 
thinking I'm manipulating the dom.

Altought it's still not perfectly clear why there exists karax vdom at all if 
that is something the user shouldn't generally touch. (I'm trying to figure out 
some use cases for it...) Hell I don't even know what draw me to using it in 
the first place! :D

So @bung what you're saying is that I should use some state variable and update 
that via registering a procedure for input fields oninput event? And use this 
state variable change creating the things? So basically I should make the state 
variable as subject of the observer pattern? Do you have a link to some source 
code or example that would clear what you're saying? I liked the tradional way, 
it seems much more simple. Of course then I have alot const id's which I don't 
like...

Thank you guys/gals!

Ps. when I solve this I'm going to post my final solution.

Reply via email to