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!

jQuery Load Issue and Oracle ApEx v4.1

Tony FatourosMar 5 2012 — edited Mar 5 2012
Hi,

Really hoping someone can assist with the use of jQuery .load(oracle apex url) query but 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 now 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.

I really need to somehow get this going but am unsure what the best approach is and basically, whether it’s actually possible to do.

Any help would be greatly appreciated.

Thanks.
T.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2012
Added on Mar 5 2012
0 comments
250 views