Home » Developer & Programmer » Application Express, ORDS & MOD_PLSQL » how to show pop up window on button click (Apex 3.2, XP, Oracle Database XE)
how to show pop up window on button click [message #401738] Wed, 06 May 2009 05:11 Go to next message
OraVision
Messages: 17
Registered: March 2008
Junior Member
how can i show a pop up window (not pop up LOV) on button click
Re: how to show pop up window on button click [message #401740 is a reply to message #401738] Wed, 06 May 2009 05:41 Go to previous messageGo to next message
dr.s.raghunathan
Messages: 540
Registered: February 2008
Senior Member
create another region. you make a conditional display using button value. On region hide, change the button value
Re: how to show pop up window on button click [message #401741 is a reply to message #401740] Wed, 06 May 2009 05:46 Go to previous messageGo to next message
OraVision
Messages: 17
Registered: March 2008
Junior Member
thank you, this is a good technique that thought b4. But can you pls tell me how can i set the region position(x position y position), width and height when i conditionally open that region.

pls help me.


Thank you.



Re: how to show pop up window on button click [message #402416 is a reply to message #401738] Sun, 10 May 2009 02:29 Go to previous messageGo to next message
dbhossain
Messages: 155
Registered: August 2007
Location: Dhaka
Senior Member

just do the following:


 1. go to property of your desired button that will invoke the 
    pop up window


 2. go to "Optional URL Redirect" section of button property




3. set the following setting:


Target is a : URL


URL Target : javascript:popupURL('f?p=&APP_ID.:52:&SESSION.:::::')


**** here "52" is the page id that you want to show as pop up window.. change it to your desired page id.

** if you want to customize the pop up window width and height
then change the javascript code only
as below:

javascript:popUp2('f?p=&APP_ID.:52:&SESSION.:::::',200,200)


Rememer "popUP2" is case sensitive you must type this word as it is











[Updated on: Sun, 10 May 2009 02:38]

Report message to a moderator

Re: how to show pop up window on button click [message #403132 is a reply to message #401741] Wed, 13 May 2009 21:49 Go to previous message
dbhossain
Messages: 155
Registered: August 2007
Location: Dhaka
Senior Member


More update on "PopUp window when button click":


javascript:html_PopUp('f?p=&APP_ID.:52:&SESSION.','_blank','scrollbars=0,left=200,menubar=0,resizable=0,width=500,height=100,toolbar=0,location=0,directories=0')


Note: The page that will be opened as popUP window change it page template to "pop up".

go to: Page Property >Template > Pop Up

in the above code '0' returns 'false' and '1' returns 'true' 




Previous Topic: object browser - selecting bigger font
Next Topic: Why SOA or APEX
Goto Forum:
  


Current Time: Fri Mar 29 04:04:31 CDT 2024