Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Oracle Application Express (APEX): Creating an APEX Button to Call JavaScript

Oracle Tips by Burleson Consulting

Creating an APEX Button to Call JavaScript

Now you have setup the code in your application page so that other page items can make calls to the functions defined in the JavaScript.  Let’s add the call to the JavaScript code to the Submit button we created earlier.

In previous chapters we covered the creation of a button and how to set properties to branch to another page, set the HTML Request, clear page cache, and set item values.  In those sections the button performed the Submit by default, but in this section we are going to override the default submit behavior of a button and cause it to call our JavaScript.  This is accomplished by editing the button attributes for the Submit button and setting the target URL to the code shown here 

SEE CODE DEPOT FOR FULL SCRIPTS

<a href="javascript:validateLogin('P4_USERNAME','P4_PASSWORD');">

 

Figure X.3 – Calling JavaScript from a Button.

Even though you are setting the target to URL you are not entering a traditional looking URL.  Instead you are entering a call to the JavaScript.

M         Your page items will likely have different names than mine so make the necessary changes before saving your changes.

Edit the attributes of the Submit button and enter the text from above in the URL Target text area as shown in Figure X.3.  When the Submit button is clicked it will execute the JavaScript.


APEX support:

For APEX development support just call to gat an Oracle Certified professional for all APEX development projects.

APEX book and code samples:

Easy Oracle HTML-DB Application Express
Create Dynamic HTML with Oracle

Includes online APEX code depot

Buy it now for 30% off - Only $27.95
 

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational