[Twisted-Python] woven dynamic table cell updating (w/ LivePage)
Justin Johnson
justinjohnson at fastmail.fm
Fri Oct 10 14:18:45 MDT 2003
Another question related to this.
Each cell in the table gets its image name from dict[task][step], where
task corresponds to a row and step corresponds to a column. So if
dict[task][status] = 'S', then I send the javascript to the browser to
change the img src to be "/images/S.gif" for that cell.
Is there any way to add an event handler or some such thing to the model
(that being the dict) so that everytime a new status is entered, the
javascript gets sent to the browser and the correct image is displayed?
I saw the notify method, but didn't see any examples of it in action.
Thanks.
-Justin
On Fri, 10 Oct 2003 10:29:08 -0600, "Justin Johnson"
<justinjohnson at fastmail.fm> said:
> Great! It works now. Thank you much.
>
> On Fri, 10 Oct 2003 12:19:10 -0400, "Donovan Preston"
> <dp at twistedmatrix.com> said:
> >
> > On Oct 10, 2003, at 12:08 PM, Justin Johnson wrote:
> >
> > > Do I have to do something goofy to reference things with javascript
> > > when
> > > it is sent using LivePage?
> >
> > 'document' in the context of a clientToServer event is the IFrame in
> > which the event was sent to the server. So I believe the correct way to
> > reference things would be through parent.document.
> >
> > dp
> >
> >
> > _______________________________________________
> > Twisted-Python mailing list
> > Twisted-Python at twistedmatrix.com
> > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
More information about the Twisted-Python
mailing list