Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse events? #8

Open
HallofFamer opened this issue Sep 30, 2013 · 3 comments
Open

Mouse events? #8

HallofFamer opened this issue Sep 30, 2013 · 3 comments

Comments

@HallofFamer
Copy link
Contributor

Hi there, I wonder if mouse events like onmouseover, onmousedown are already possible with CJAX. If not, do you have plans to add them within 1-2 years? I wonder how easy/difficult it is to create a javascript event though, I can give a try myself if it is not so complicated. Thx.

@ajaxboy
Copy link
Owner

ajaxboy commented Oct 3, 2013

It is not that complicated, I'll get back to you on this one, though perhaps it can also be accomplished with a plugin,you should experiment with that if you'd like in the mean time.

@HallofFamer
Copy link
Contributor Author

I did a bit of research on mouse events by looking at how the other events are defined in Cjax, and yes it does not seem to be too complex. Still, it seems that there is one major differences for mouse events compared with other events. Mouse events typically pass arguments into the function assigned to on mouse events(at least you pass a variable called this to mouse events like onMouseOver(this)), while others like click, focus and keyboard events normally invoke functions without argument. Not sure whether this makes implementation of mouse events tricky...

@ajaxboy
Copy link
Owner

ajaxboy commented Oct 23, 2013

A little more research is needed. Generally, you can pass arguments in Cjax and are converted into JavaScript arguments automatically. I'd have to look into it deeper. I won't know until I look into it deeper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants