Have a look at MochiKit.Signal instead of using the onclick handler
yourself. It will give you cleaner code.

In the example below, I think the problem is that "alert..." is a
string, not a function. Try setting it like this instead:

..., onclick: function() { alert('aaa'); }, ...

/Per

On Dec 24, 2007 11:48 AM, shailendra gupta <[EMAIL PROTECTED]> wrote:
>
> hi
>    i am working with swapdom function here two radio button are
> swapping each other.Here i want to call update1 function with
> parameter list is userID, listID,name,etc .when i called onclick
> function with the argument list it not respond when i used alert
> function, alert massage come in alert box .
> Tell me the correct way with above argument list so my function give
> some response .
>
>  var div1 =
> SPAN({},INPUT({'type':'radio' 
> ,'name':'timeval','value':'start','onclick':'alert("aaaaa")'}))
>          swapDOM(data['rad1id'], div1)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to