Sorry if I've missed something obvious, but this seems like it should be very simple. I just want to have an image button that executes some javascript when I click it.
Absolutely nothing happens when I click the button. If I make the image a "background" image and add some text then it works, but only if I click on the text. As you can see the button is quite large and the user should be able to click anywhere on the button, not just on the text. Also, I really don't want text (the image already has the text on it).
function
FBLogin(sender, args) {
FB.login(fb_loggedin, { perms:
'email,publish_stream,offline_access'
});
}
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
Text
=
"Login"
Height
=
"55px"
Width
=
"225px"
AutoPostBack
=
"false"
OnClientClicked
=
"FBLogin"
>
<
Image
ImageUrl
=
"~/Images/fb_btn.png"
/>
</
telerik:RadButton
>
Absolutely nothing happens when I click the button. If I make the image a "background" image and add some text then it works, but only if I click on the text. As you can see the button is quite large and the user should be able to click anywhere on the button, not just on the text. Also, I really don't want text (the image already has the text on it).