开发者

autogenerate jquery code

开发者 https://www.devze.com 2022-12-15 04:28 出处:网络
We all use and like that to handle click event for button we can just click it and write a handler with server code in C# or vb.net.

We all use and like that to handle click event for button we can just click it and write a handler with server code in C# or vb.net.

But if we want to handle client event, javascript comes for help. And I wonder, how can we add designer ability to generate client handlers with javascript or some popular library like jquery.

So how I see it in perfect world, I'm selecting the button in designer, go to it's properties, then choose events like hover, enter or click and have a handler function in which I can write my code to handle it.

So the question is - how can it be done, to make this ability to autogenerate this empty function and make sure it will handle the exact event I need? I know how to handle this events in javascript, but this wa开发者_JAVA百科y seems more intuitive to me.


Microsoft's Glimmer writes jQuery. They also have a nice demo video on their frontpage. Glimmer is free, by the way.

0

精彩评论

暂无评论...
验证码 换一张
取 消