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!

calling a javascript when a button is clicked

760111Mar 26 2010 — edited Mar 26 2010
Hi All,

hey i created a textbox1 and added a html form attribute as style=" Display:none" ..
and

in javascript

function f1()
{
$x_show('P1_text1');
}


i m calling this javascript when a textbox2 is clicked ( actually i have to call it when a button is clicked but after making a button i didnot find any option to add onclick attribute to it ).
..

so now when i m clicking a textbox2 my textbox1 is visible ....


this is ok ...
but my requirement is on button click ...
so i thought of creating a plsql block and writting javascript in it and calling it on when the button is clicked...

--------plsql block ------

declare
begin
HTP.p('<javascript.........................');
end;

but .... when i cross checked it ... button only supports just plsql block ... it doesnot support HTP.p(' ....');

function ...



now is there any way to call my javascript when a button is clicked.

Regards ,
Nandini thakur

Edited by: user9157847 on Mar 25, 2010 11:44 PM

Edited by: user9157847 on Mar 25, 2010 11:45 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 23 2010
Added on Mar 26 2010
4 comments
4,574 views