Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Move this topic
Forum :
Getting Started
Using jQuery
Using jQuery Plugins
Using jQuery UI
Developing jQuery Core
Developing jQuery Plugins
Developing jQuery UI
QUnit and Testing
About the jQuery Forum
jQuery Conferences
jQuery Mobile
Developing jQuery Mobile
Sub forum :
Move this topic
Cancel
Using jQuery UI
vorticity..
Why does this simple bind event work in firefox and not in IE?
in
Using jQuery UI
•
13 years ago
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--Import jQuery and ui helpers-->
<script type="text/javascript" src="../jQuery_v1_8/js/jquery-1.4.2.min.js"></script>
<link type="text/css" href= "../jQuery_v1_8/css/custom-theme/jquery-ui-1.8rc3.custom.css" rel="stylesheet" />
<script type="text/javascript" src= "../jQuery_v1_8/development-bundle/ui/jquery-ui-1.8rc3.custom.js"></script>
<script type="text/javascript" src= "../jQuery_v1_8/development-bundle/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src= "../jQuery_v1_8/development-bundle/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src= "../jQuery_v1_8/development-bundle/ui/jquery.ui.slider.js"></script>
<script type="text/javascript" src= "../jQuery_v1_8/development-bundle/ui/jquery.ui.button.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#radiodiv").buttonset();
$('#radio1').bind("click", function() {
alert('Hello');
});
$('#radio2').bind("click", function(e, ui) {
alert('HelloI2');
});
});
</script>
</head>
<body>
<div class="radbut">
<form>
<div id="radiodiv">
<input type="radio" id="radio1" name="radio" checked="checked" /><label for="radio1">WaveHeight</label>
<input type="radio" id="radio2" name= "radio" /><label for="radio2">Current</label>
<input type="radio" id="radio3" name= "radio" /><label for="radio3">WaveHeightDir</label>
</div>
</form>
</div><!-- End demo -->
</body>
</html>
1
Replies(6)
kzme_mat
Re: Why does this simple bind event work in firefox and not in IE?
13 years ago
I tested in Chrome and IE 8, both are working.
If the problem persists, try declaring without arguments for the callback function on radio#2, like so:
$('#radio2').bind("click", function() {
alert('HelloI2');
});
vorticity..
Re: Re: Why does this simple bind event work in firefox and not in IE?
13 years ago
I am testing in IE 7 and that didn't fix it though I appreciate the suggestion :-(.
Leave a comment on kzme_mat's reply
vorticity..
Re: Why does this simple bind event work in firefox and not in IE?
13 years ago
I think it's a bug with the button...when I comment the buttonset out it works fine.
$(document).ready(function(){
// $("#radiodiv").buttonset();
$("#radio1").bind({
click: function(){
alert('hi');
}
});
});
Leave a comment on vorticitywolfe's reply
fontzter
Re: Why does this simple bind event work in firefox and not in IE?
13 years ago
This works for me in IE6, even with the buttonset.
Try here:
http://jsbin.com/umifo
vorticity..
Re: Re: Why does this simple bind event work in firefox and not in IE?
13 years ago
Thanks for that link, that is a pretty cool site:
I tried this package and it works fine for me:
http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js
though the packaged version in 1.8rc3 doesn't:
./development-bundle/ui/jquery-ui-1.8rc3.custom.js
I'll try downloading it again to see if that changes anything...
Leave a comment on fontzter's reply
vorticity..
Re: Why does this simple bind event work in firefox and not in IE?
13 years ago
Yup, re-downloading the package worked! hmm wonder what went wrong earlier...Thanks for checking my sanity!
Leave a comment on vorticitywolfe's reply
Change topic type
Topic Type :
Discussions
Questions
Ideas
Problems
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to vorticitywolfe's question
Top
Reply
{"z3300635":[14737000000796143,14737000000796221,14737000000799395,14737000000799510,14737000000799514],"z3089593":[14737000000801413],"z3318749":[14737000000796209]}
Statistics
6
Replies
10812
Views
0
Followers
Tags
Cancel
jquery ui button
buttonset
ie
button
bind
jquery ui buttonset
firefox
Actions
Permalink