Re: [Zope3-Users] z3c.formjs - global js-variables and form-content in scripts

2008-09-18 Thread garz
you wrote: > > Again I'm not sure if you are talking about server or client. From > the server perspective, if you have > > @jsfunction.function('z3c') > def myFunc(self): > return u"alert('the fields in this form are %s');" % [w.id for w in > self.widgets.values()] > > then calling the fun

Re: [Zope3-Users] z3c.formjs - global js-variables and form-content in scripts

2008-09-18 Thread Marius Gedminas
On Wed, Sep 17, 2008 at 11:26:28PM -0700, Paul Carduner wrote: > On Wed, Sep 17, 2008 at 4:48 PM, garz <[EMAIL PROTECTED]> wrote: > > my goal is to write a general sequence-form, that can display a sequence > > consisting of an arbitrary widget. it should provide delete-buttons for > > every elemen

Re: [Zope3-Users] z3c.formjs - global js-variables and form-content in scripts

2008-09-17 Thread Paul Carduner
On Wed, Sep 17, 2008 at 4:48 PM, garz <[EMAIL PROTECTED]> wrote: > > hi, > > i'm working with z3c.formjs and there are three questions that arose. > > 1.) defining global variables > i'd like to define some global variables that i can refer to in the > functions that i want to define with the jsfun

[Zope3-Users] z3c.formjs - global js-variables and form-content in scripts

2008-09-17 Thread garz
hi, i'm working with z3c.formjs and there are three questions that arose. 1.) defining global variables i'd like to define some global variables that i can refer to in the functions that i want to define with the jsfunction-package. for example a global counter that counts something. is there an