That's very kind of u all,
I made the code go well now:)
ps: I just found ffx is so good to help dev ^o^
On 4/21/06, Bob Ippolito <[EMAIL PROTECTED]> wrote:
>
>
> On Apr 20, 2006, at 1:34 AM, Henotii wrote:
>
> >
> > I just follow the doc of mochikit, and use A({"href":"#"}, "test") to
> > add element successful.
> > But it seems can't work with A({"onclick":"test_func()"}, "test").
> > The output html just like this <a>test</a>, and without the "onclick".
> >
> > Is there something wrong? And how can I add attr like "onclick" when
> > using MochiKit. The mochikit's doc is not very clear in this.
>
> It should work if you use::
>
> A({"onclick": test_func}, "test")
>
> -bob
>
>
> >
>
--
Wenjie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---