Sven Richter kirjoitti:
> Ok, i think i understand the problem now.
> So i have to hardcode the url in my javascript function?
> That was what i wanted to circumvent.
No you don't have to.
There is two ways, either you just use base URL like {% url url_name %}
and send parameters as POST (or
Ok, thank you very much, thats how i am gonna do it.
I just didnt think about the fact that django is being done on
the server side and the script on the client side.
Greetings
Sven
On Sun, Aug 9, 2009 at 8:20 PM, Daniel Roseman wrote:
>
> On Aug 9, 4:59 pm, Sven Richter
On Aug 9, 4:59 pm, Sven Richter wrote:
> I am looking for a rating function AJAX style.
> So what i am trying to do is the following:
>
> Click on a link register a Jquery function to call on that click with:
> $('a#vote_pos').click(rate_it);
> and then in rate_it call
Ok, i think i understand the problem now.
So i have to hardcode the url in my javascript function?
That was what i wanted to circumvent.
Sven
On Sun, Aug 9, 2009 at 5:57 PM, Daniel Roseman wrote:
>
> On Aug 9, 4:43 pm, Sven Richter wrote:
> > Hi
I am looking for a rating function AJAX style.
So what i am trying to do is the following:
Click on a link wrote:
>
> On Sun, Aug 9, 2009 at 5:43 PM, Sven Richter
> wrote:
> > Hi all,
> >
> > i wanted to know if it is possible to pass a Javascript variable to
> > the url
On Aug 9, 4:43 pm, Sven Richter wrote:
> Hi all,
>
> i wanted to know if it is possible to pass a Javascript variable to
> the url template tag?
>
> Like:
>
> ...
>
On Sun, Aug 9, 2009 at 5:43 PM, Sven Richter wrote:
> Hi all,
>
> i wanted to know if it is possible to pass a Javascript variable to
> the url template tag?
>
> Like:
>
> ...
>
7 matches
Mail list logo