Mit Oracle Application Express entwickelt man Webapplikationen die im Browser aufgerufen und ausgeführt werden. Das Entwickeln im Browser erfordert andere, für den klassischen Oracle Entwickler oft neue, Techniken und Tools. Nahezu alle modernen Browser besitzen integrierte Development Tools, die es uns möglich machen das Verhalten und Styling einer APEX Applikation im Browser zu untersuchen und zu beeinflussen. In meiner Präsentation werde ich die verschieden Tools und ihren Einsatz mit Oracle Application Express vorstellen, mit Tipps und Tricks für sowohl den beginnenden als auch den fortgeschrittenen Entwickler.
(DOAG 2014 Development - Community-Konferenz für Entwickler)
6. What are Browser Developer Tools?
• Built in to the browser
• Usually reached with:
– F12 on Windows
– ⌘, ⌥ and "i" on Mac
– Right Click > Inspect Element
• No more alert()
13. Tips & Tricks
Use the console in any panel
In Chrome and Opera, press the Esc key. In IE11, the keyboard
shortcut is Ctrl + '. Safari has a small console prompt available
below the main panel by default.
View available CSS properties
Chrome, IE11, Opera 15 and Safari: view the available CSS
properties on an attribute by pressing Ctrl and Space when the
CSS attribute field is blank.
14. Tips & Tricks
Reference the current or previously selected
DOM element
If you have an element currently selected in your DOM, you can
use the reference $0 to call it within your code.
Reference the current or previously selected
DOM element
Retrieve elements you have previously highlighted
by using $1 - $4. In Firebug, use $n(2) - $n(5).
15. Tips & Tricks
Chrome's Workspace
Allows you to make changes from the developer tools and
automatically update your source files.
In Sources menu and right-click on one of your CSS or JavaScript
files. Select Map to Network Resource and from the file list that
appears and choose the file that matches your selection. You can
now make changes to your CSS and JavaScript from within the
developer tools and your files will automatically update.
16. Compare Developer Tools*
• Chrome Developer Tools have the best feature
set and the most frequent updates.
• Firefox Developer Tools are catching up;
no real need for FireBug anymore.
• Opera (21) Dev Tools = Chrome Dev Tools
• I don’t like Safari Developer Tools, I’m using
FireBug Lite extension.
• Internet Explorer 11 has great Developer
Tools, IE9/10 were poor.
* my personal opinion