2 solutions:

* Put all the javascript directly in the binding

i.e.

<binding name="options"
value="literal:{afterUpdateElement:function(){alert('hi!')} }"/>

but that's not too practical or reusable

* Fix scoping (that's your problem here)
Try
<binding name="options" 
value="literal:{afterUpdateElement:window.updateVenue.update}"/>
or
<binding name="options" 
value="literal:{afterUpdateElement:document.updateVenue.update}"/>
 



Warner Onstine wrote:
> I'm having trouble using the options stuff, here's the javascript
> error I received when attempting to use it:
> Error: this.options.afterUpdateElement is not a function
> Source File: 
> http://localhost:8180/eventscalendar/app?digest=1c2cda41010a5c0a96485ac13a16355c&path=%2Fnet%2Fsf%2Ftacos%2Fajax%2Fcomponents%2Fcontrols.js&service=asset
> Line: 250
>
> Here's the line it's referring to:
> tacos.createAjaxAutocompleter("venueAutoCompletercomplete",
> "venueAutoCompleter",
> "http://localhost:8180/eventscalendar/app?component=venueAutoCompleter&page=NewEvent&rand=899029502&service=ajaxdirect&session=T&sp=SvenueAutoCompleter&updatedirect=false&updateid=venueAutoCompleter";,
> "auto_complete", 0.2,
>         {afterUpdateElement:updateVenue.update}, {});
>
>
> Here's the declaration of it in my .page file:
>
>               <binding name="options"
> value="literal:{afterUpdateElement:updateVenue.update}"/>
>
> Thanks for all the help so far, I think I'm getting closer!
>
> -warner
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Tacos-devel mailing list
> Tacos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tacos-devel
>
>   


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
Tacos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to