Re: Trying to get data from template to view...

2009-02-16 Thread arbi
In fact I may have answered a bit quick. Your solution is great, BUT in my case, I have an additional pb : my js function calls a "call-back" function. I show you : function js_function(address){ geocoder.getLocations(address, js_function_call_back); // "getLocations" is a Google Maps API fun

Re: Trying to get data from template to view...

2009-02-16 Thread arbi
Thx nivhab, that's great :) On 15 fév, 20:56, nivhab wrote: > If you'd likeJavaScriptto calculate values before you submit the > form then do the following: > > 1. Add a "onSubmit" attribute on your "form" tag which calls a JS > function like: > > > 2. In the implementation of that function cal

Re: Trying to get data from template to view...

2009-02-15 Thread nivhab
If you'd like JavaScript to calculate values before you submit the form then do the following: 1. Add a "onSubmit" attribute on your "form" tag which calls a JS function like: 2. In the implementation of that function calculate whatever you need and plant the result into a hidden input field in

Trying to get data from template to view...

2009-02-15 Thread arbi
Hi all, In fact my pb is : I have a that sends a DATA that the user writes (input), but I would like it to send javascript_function(DATA) instead. How to do it? This is my input. The DATA is a "departure" What shoud I write instead of name or value to return the javascript_function(departure)