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

Socket will be disconnected by HTML A tag click event with IE10 browser #1252

Closed
manbusky opened this issue Jun 7, 2013 · 2 comments
Closed

Comments

@manbusky
Copy link

manbusky commented Jun 7, 2013

This is my code;

<a href="javascript:void(0);" class="handle" title="白板">白板</a>

and I band a click event with jQuery to this A tag,
$("a").click(function() {
         //do somethink
})

the the socket will be disconnected after the click event, and I cann't emit any data then.
This problem just occured in IE10,
How can I resolve this problem?

@manbusky
Copy link
Author

manbusky commented Jun 7, 2013

This is my code;
&lta href="javascript:void(0);" class="handle" title="白板"&gt白板&lt/a&gt

@manbusky
Copy link
Author

manbusky commented Jun 8, 2013

I resolved this problem, just add 'return false;' at the last line in the click event.

$("a").click(function() {
//do somethink
//done

     return false;

})

then socket will not be disconnected after the click event!

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

1 participant