One solution would be to attach your click event handler later, using an anonymous function instead of an inline onClick attribute.
$('<input type="button" value="Reservation" />').appendTo('.routelist').click(function(){ Dajaxice.maps.reservation('reservation_callBack'); }); On Wed, Apr 14, 2010 at 10:02 AM, Alexis Selves <petr.pej...@gmail.com>wrote: > Hi everyone, > I am trying to use dajax with jquery. I am dynamicaly making forms > with Jquery and each contains button with dajax reference. > $(".routelist").append("<input type='button' value='Reservation' > onClick='Dajaxice.maps.reservation('reservation_callBack')'"> > with this i get syntax error. > I am trying this: > $(".routelist").append("<input type='button' value='Reservation' > onClick='Dajaxice.maps.reservation(reservation_callBack)'"> > no ' ' in Dajaxice.maps.reservation(reservation_callBack). This works, > but I can't add any variables to send to server. > > Please help me. > > Thanks everyone for reading. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.