Cool, thanks again that did the trick. Looking over the scriptaculous
stuff now looks useful.

-warner

On 11/2/06, andyhot <[EMAIL PROTECTED]> wrote:
> Use
> window.updateVenue.update
>
> Just tried in FF1.5
>
>
> BTW, note that when scriptaculous calls that function,
> it also includes 2 parameters - check their docs, they may be useful
>
>
> Warner Onstine wrote:
> > Ok, I must be missing something I changed my function call to
> > document.updateVenue.update()
> >
> > and I get this error:
> > Error: document.updateVenue has no properties
> > Source File: http://localhost:8180/eventscalendar/app
> > Line: 257
> >
> > Here's the javascript that I created:
> > <script type="text/javascript">
> > var updateVenue = new Object();
> > updateVenue.update = new function() {
> >       var actionUrl = '<span jwcid="@tacos:AjaxDirectLink"
> > listener="listener:updateVenueSelection"
> > updateComponents="ognl:{'venue_street'}"
> >           renderer="ognl:new
> > com.sourcebeat.tap101.events.pages.helpers.RawURLLinkRenderer()"/>';
> >       tacos.defaultLinkAction({targetLink: this, url: actionUrl,
> > processScripts: true})
> >
> > }
> >
> > </script>
> >
> > Thanks again for the help!
> >
> > -warner
> >
> > On 11/2/06, andyhot <[EMAIL PROTECTED]> wrote:
> >
> >> 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
> >>> [email protected]
> >>> 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
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/tacos-devel
> >>
> >>
> >
> > -------------------------------------------------------------------------
> > 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
> > [email protected]
> > 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tacos-devel
>

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to