Can't get any events to work (client or server)

3 posts, 0 answers
  1. Scott R
    Scott R avatar
    63 posts
    Member since:
    Jun 2008

    Posted 03 Dec 2010 Link to this post

    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.

    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" />

    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).
  2. Pero
    Pero avatar
    1156 posts

    Posted 07 Dec 2010 Link to this post

    Hello Scott,

    I suspect that some JavaScript error is causing the client events to not fire correctly. Could you please enable script debugging in IE or install FireBug in FF to see if JS error is thrown? I tried to reproduce locally, but to no avail. Please find my test project attached to the thread.

    All the best,
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. Scott R
    Scott R avatar
    63 posts
    Member since:
    Jun 2008

    Posted 07 Dec 2010 Link to this post

    Thanks for the reply and for checking into this, Pero. I ended up just using a regular ImageButton and everything works fine.
Back to Top