Re: Pass data from html to views.

2012-05-15 Thread voss
Hi Am, thank you so much for the explanation. It is very helpful! And thank you for the idea of using ajax for my problem. I used dajax and it is working nicely! On Tuesday, May 15, 2012 6:37:12 AM UTC-5, doniyor wrote: > > ajax is not that different from dajax.. actually almost same logic.. b

Re: Pass data from html to views.

2012-05-15 Thread doniyor
ajax is not that different from dajax.. actually almost same logic.. but look, i try to explain how it should work.. your index.html click me and your ajaxfunction in the head of this index.html is this. function ajaxfunction(){ wanted_value = $("input[name='wanted_value']").val(); $.ajax({

Re: Pass data from html to views.

2012-05-14 Thread voss
Hi Am, this sounds like a good idea, and I think it may work in my case (with dajax). Thank you! I have a question, though. I know that with dajax, the data is passed to the ajax views in ajax.py, and the result is then sent back to the same html page. But how exactly does your method work? (I

Re: Pass data from html to views.

2012-05-14 Thread voss
Thanks, Nik. The list is actually a result of dnd and dojo.cookie. For some reason, creating hidden input nodes does not work in this case. On Friday, May 11, 2012 5:31:49 PM UTC-5, Nikolas Stevenson-Molnar wrote: > > How about creating hidden input nodes inside a form for each li node you > c

Re: Pass data from html to views.

2012-05-11 Thread doniyor
just after your for loop, you can call ajax function which takes the values of your newly created lists and submits this further to your view. you dont need to load the whole page and the data will silently go to your view. Am Freitag, 11. Mai 2012 23:37:08 UTC+2 schrieb voss: > > Hello, > >

Re: Pass data from html to views.

2012-05-11 Thread Nikolas Stevenson-Molnar
How about creating hidden input nodes inside a form for each li node you create? For example, add after your dojo.create: dojo.create("input", {name: "values[]", type: "hidden", value: array[i]}, dojo.byId("myForm")); _Nik On 5/11/2012 2:37 PM, voss wrote: > Hello, > > I have a list that is crea