I think you need a bit of R&D here. The general advice I've seen is to
get it working without javascript and then find a js solution.
I feel it is difficult. Back at the server you only have the data the
browser sends you. If I understand what you are saying, your problem is
to write some java
Bump**
On Aug 25, 12:49 pm, raj wrote:
> Actually, I think I'm figuring it out. Just a quick question though.
> Is it possible to pass javascript values through the form attrs
> attribute? For example:
>
> class forms(forms.Form):
> name = forms.TextInput(attrs={'size': 10, 'value': ' js=firs
Actually, I think I'm figuring it out. Just a quick question though.
Is it possible to pass javascript values through the form attrs
attribute? For example:
class forms(forms.Form):
name = forms.TextInput(attrs={'size': 10, 'value': ''',})
On Aug 25, 12:13 pm, raj wrote:
> Let me be a bit m
Let me be a bit more clear.
Lets take, for example, the linkedin javascript api. Now, when you log
into your linkedin account through my website, the website can access
certain parts of your profile using javascript. Now, when the user
first logs in, I want to be able store some information about t
On Thursday, 25 August 2011 06:10:38 UTC+1, raj wrote:
>
> I'm trying to set a default form value in the template, and not in the
> forms.py file (because I'm trying to make the default value dynamic
> depending on something that javascript will return).
> So To test it, I have the following lin
I'm trying to set a default form value in the template, and not in the
forms.py file (because I'm trying to make the default value dynamic
depending on something that javascript will return).
So To test it, I have the following line in my template:
{{ form.first_name|default:"Enter Your first name
6 matches
Mail list logo