Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7706975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:14:39+00:00 2026-06-01T00:14:39+00:00

I wish to use a jQuery .load(oracle apex url) query. I have a main

  • 0

I wish to use a jQuery .load(oracle apex url) query. I have a main page that I have setup to hold a fixed banner with a navigation menu to show/hide a menu.

Within this main page template, I also have some jQuery code to fire when a menu item is selected, which basically loads into the “main-content” div described below any page within this Oracle ApEx application, i.e.:

$("#main-content").load(actualPageURL);

Within this main page, I also have a “Content” region that I have created, with the following HTML setup:

<div id="page-wrap">
  <div id="main-content">
  </div>
</div>

So with the above, what I am basically trying to achieve is a means of no longer using an iframe like I previously did, but make use of jQuery’s .load() function.

Now everything works fine if I’m clicking away from the main page’s menu but when one of the menu items goes to a page that has a form and the user presses the “Create” button which currently uses a default “Redirect to page 20” Action when button clicked, I am no longer within the bounds of my main master page and so lose all functionality that I would like to maintain.

So from this, I have now lost my fixed banner at the top as well as the means to access my menu.

I basically need to ensure that any redirects or any other branching between pages in my Oracle ApEx app are all filtered/processed via my <div id="main-content"> and always using the jQuery $("#main-content").load(actualPageURL) function.

Again, I somehow need to make sure that every page within my Oracle ApEx app is passed through the main-content div.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:14:40+00:00Added an answer on June 1, 2026 at 12:14 am

    I think you’ll need to catch 2 things: the standard redirects are put out in html as ‘javascript:redirect()’. This redirect function is defined in apex_4_1.js, simply override it:

    function redirect(where){
       alert("im overriding the original redirect! It would've brought me to "+where);
    };
    

    The branches are more annoying. The best i can think of right now would be to use the apex event “apexbeforepagesubmit” which is fired when a page is submitted through apex buttons.
    You can define a dynamic action on this, it can be found under framework events, or bind an event yourself:

    $(document).bind("apexbeforepagesubmit", function(event, pRequest){
       alert("before submit:"+pRequest);
    });
    

    Obviously you’ll need to do some parsing here since the redirect url won’t be available (and i don’t think you’ll be able to get it since it is a server side redirect). Some standard buttons i can think of would be the record navigation ones (previous, next). But also Apply Changes, which does an after processing branch to the same page, with the success message. Maybe you can try to change the Target Type from Page in this Application to URL? You could for example call a javascript function then. Or maybe you want a redirect to page 1?

    Why this whole setup though? If you want a fixed bar and a menu, why not have a custom page template and some css magix? It seems unnecessary.

    Expanding on the comments:

    I’ve set up a very small sample -> http://apex.oracle.com/pls/apex/f?p=26186:1
    The application is based on Theme 24. The new themes are a lot better in my opinion thanks to the reduced use of tables for layouting.
    All i did was:

    • Shared Components > Templates: I took a copy of the standard
      one-level-tabs page with no sidebars. I then put some divs with an ID
      around region positions 3 and 4, which are in the html header and in
      the body. Also included some javascript in the footer (you can of
      course put your javascript in a seperate file and include it)
    • Shared Components > CSS file: i uploaded a css file to provide some
      styling for my divs
    • Page 0: here i created 2 regions in positions 3 and 4, and set their condition to not display on the login page. Regions on page 0 are displayed in each page for that application by default.
    • Page 1: for the page template i of course selected my custom template. No further editing is necessary, my template takes care of all the work. So the flashy styly floating menu on the left and the top bar all come standard. It’s crude and all, but all it took was some simle editing, css, and a pinch of javascript: you should be comfortable with that.

    Now each page i will create will take that same look. A branch from page 1 to another page will of course do a redirect, but because the regions in page 0 show on each page they will all look the same anyway => templated. This seems to be a lot more in line with what you want, and a lot less work than the whole ajax route.

    What i did to create this is simple: first i edited my template (after copying an existing one for ease) and put two region positions in a div, and gave the divs an id.
    I then created a page, and assigned it my new template. I created two regions for each position. Then i started mucking around, creating some more divs and elements i’d need. I added style tags in the page header and put the js there aswell. As i went along, i edited my template to include what was necessary (some divs, a class,…). Finally i moved the css to a file, and included it in the template. Same for the js. I copied the regions over to page zero and deleted them from page 1. Template done. Feel free to take a look at it, create a new page, etc. It’s just a small demo, of course. Don’t shoot me for style 😉

    • Apex.oracle.com -> login
    • workspace: tompetrusbe
    • credentials: apex_demo/demo
    • application: 26186. Fixed menu and top bar
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page to be PHP included anywhere at wish, and that page
I have a large amount of data I wish to use with Jquery DataTable
I'm new to JQuery, but wish to use it in a site that I'm
I wish to use xml and xsl to generate controls on an asp.net page.
I have two stored procedures I wish to use in my stored procedure, but
When you have parent-child tables and you wish to use a DetailsView to edit
I am trying to use jQuery AJAX. What my requirement is, i wish to
I have a mobile webapp that I am developing using jquery mobile. I am
I wish to use the jQuery.post class to return (not alert) the response within
I am trying to use jQuery to calculate the window height then apply that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.