This is a migrated thread and some comments may be shown as answers.

Not able to set focus in textbox

1 Answer 67 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Gaurav
Top achievements
Rank 1
Gaurav asked on 18 Oct 2007, 01:47 PM

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?

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 22 Oct 2007, 11:15 AM
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
Tags
WebParts for SharePoint
Asked by
Gaurav
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or