Hi,

It should be '/update_tags/a' like when you use

.....?id={{ variable }}

thanks,

Shay

On Dec 14, 11:51 pm, Andy Freeman <ana...@earthlink.net> wrote:
> If mark == 'a', do you expect '/update_tags' + mark to be '/
> update_tagsa' or '/update_tags/a'?
>
> Which one do you think will match ('/update_tags', UpdateTags)?
>
> And, once you get a form that matches, how are you planning to extract
> the original value of mark?
>
> On Dec 14, 3:13 am,ShayBen Dov <shay.ben...@gmail.com> wrote:
>
>
>
> > '/update_tags' + mark
>
> > mark is name of the parameter I want to transfer to the following
> > class:
>
> > class UpdateTags(BaseRequestHandler):
>
> > and I wish to process it according to the app requirements.
>
> >Shay
>
> > On Dec 14, 11:26 am, djidjadji <djidja...@gmail.com> wrote:
>
> > > >javascript:updateTags(mark)
>
> > > what is mark in this function call?
>
> > > > '/update_tags' + mark
>
> > > this url will not be matched by
>
> > > > ('/update_tags', UpdateTags),
>
> > > Add some logging statements to see if you get inside the handler and
> > > what the value of certain variables is.
>
> > > 2008/12/13ShayBen Dov <shay.ben...@gmail.com>:
>
> > > > Hi,
>
> > > > I'm trying to develop a tagging application. What I'm missing is the
> > > > wrap-around of all the components involved.
>
> > > > The principle is:
>
> > > > The calling link:
> > > > <span class="item"><a href="javascript:updateTags(mark)"><b>{{mark}}</
> > > > b></a></span>
>
> > > > The JS function:
>
> > > > function updateTags(mark){
>
> > > >   new Ajax.Updater('tagging_area', '/update_tags' + mark, {
> > > >     method: 'get'
>
> > > >   });
>
> > > > }
>
> > > > the url mapping in my py program:
>
> > > > ('/update_tags', UpdateTags),
>
> > > > the class in the py program
>
> > > > class UpdateTags(BaseRequestHandler):
> > > > def get(self):
> > > >  mark = self.request.get('id')
> > > > ......
> > > >  self.response.headers['Content-Type'] = 'text/plain'
> > > >  self.response.out.write("this is new tag__" + mark)
>
> > > > I hope I'm doing it right.
> > > > Please let me know if I'm on the right track to implement it
> > > > correctly.
>
> > > > Thanks,
>
> > > >ShayBen Dov- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to