Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to call both onchange,onfocus events from HTML Form Element Attributes?

931454May 11 2012 — edited May 11 2012
Hi All,
It would be greatly appriciated if some one can help me doing this.

I have two drop down lists DEPARTMENTS,EMPLOYEES.
When chosen department name from DEPARTMENTS, it calls an application process which populates the list employees in EMPLOYEES list.

When I choose an employee from EMPLOYEE list I have various fileds which will be populated with the employee details such as hiredate, job, sal.

It all works fine but I noticed a little problem.

When the EMPLOYEES list is populated by the application process when a department name is selected, it does not fire the onchange Javascript fucntion and hence all employee fields are blank.

To overcome this, I want to explicitly set the focus to EMPLOYEES and call the onfoucs function, but how can i call both onfocus AND onchange from EMPLOYEES field HTML Form Element Attributes? It seems only one is working the second is ignored when seperated with colon.

Please help.

Thankyou.
Raj.

Edited by: Rajesh Murarishetti on 11-May-2012 04:45

Edited by: Rajesh Murarishetti on 11-May-2012 04:50
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2012
Added on May 11 2012
9 comments
321 views