Not able to set focus in textbox

2 posts, 0 answers
  1. Gaurav
    Gaurav avatar
    1 posts
    Member since:
    Oct 2007

    Posted 18 Oct 2007 Link to this post

    I am using RADEditor for MOSS. I created function to set focus in textbox and assigned

    RadEditor.OnClientLoad = "JavaScript function name";

    my code to set focus is in JavaScript function.

    My problem is that javascript function executes fine in IE6, but it doesn't set focus in textbox. Same code works fine in Firefox.

    Can anybody please help me?

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 22 Oct 2007 Link to this post

    Hello Gaurav,

    Can you please make sure that your Javascript function works as expected when called from external button? Just put a html button on your page and call your function in its onclick event:
    <button onclick="myFunction(); return false;">Test</button>

    If the Javascript function works correctly when called from a button, but doesn't work when called on OnClientLoad, please provide more details about your setup:
    1. The Javascript function itself
    2. The declaration of the element to which you want to set focus and where it is on your page.

     


    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

Back to Top