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!

Combining onchange and onBlur

Bruce ClarkFeb 25 2010 — edited Feb 25 2010
Hi:

Have a unusual siuation I need help to resolve.

On an item (test field) I am using onBlur to call a javascript function to convert a value to currency.

I also have onchange=doSubmit to submit the page when the value changes.

Independantly they work great, however, when the onchange fires is takes away the currecy formatting.

For example

You enter 4 and tab out it displays as $ 4.00 - which is what I want.
Now, you change the value to 5 - the page submits (this is also what I want)
But, when the page reloads, the value is 5 and I need $ 5.00

How can I do this. I have both onchange and onBlur in my HTML Form Element Attribute.

Thanks for any help.

Bruce
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2010
Added on Feb 25 2010
4 comments
1,715 views