How can I fix this behavior JavaScript/Ajax 'funny '?

Hi all!

I have this kind of funny problem or, well, strange results...
The problem is almost solved tho, but it's just this strange behavior that I can't solve.

You can see what I mean here:
http://Apex.Oracle.com/pls/Apex/f?p=9949:101:1370355978553401
Username: visitor
Password: visitor

Connect first, and then change the URL to access the 24 page (or just click on 'Web platform', then from the submenu, click on 'meals and the models', and then in the custom menu on the left click on 'Show models'.

If you are finished, click one of the links in the report.
You will see that all of a sudden, the whole page seems to be shown within another region (region named "Menu2", under the normal menu region).
It's like... A page in a page. Pageception (creation... Pageception... Get it?).

Now, all this is happening WITHOUT refreshing. Yes, I want it to be dynamic. My question is:
How can I change my code in such a way that it does NOT display the entire page 24 inside this region menu2? I want to display a popup, not a page in a page...

My code to do so is my Page attributes. In the JavaScript tab, I have the following code for the popup, and inside, you will find the code for these values in the elements of the page as well:
$( function(){
  $('#ModalForm').dialog(
   {
     modal: true,
     autoOpen: false,
     width: 500,
     height: 350,
     buttons:{ Calculate: function(){calculateTotal();},
               Close: function(){closeForm();}         
   }
  });
});

function openForm(pFoodTemplateId, pMealTypeId)
{
var getone = new htmldb_Get('shiny',&APP_ID., null, 24); // initialize get 
getone.add('P24_TEMPLATEID', pFoodTemplateId);
getone.add('P24_MEALID', pMealTypeId);
gReturn = getone.get();
getone = null;

$('#ModalForm').dialog('open');
}

function closeForm()
{ $('#ModalForm').dialog('close');}

$(document).ready(function() 
    {$('a.temppop').click(function() {openForm();});
});
"Brilliant" is the name of the ID in my region 'menu2 '.

In which case I'm not clear (which I guess, since I'm in a rush):
I have 2 page elements that get the value of foodtemplateid and mealtypeid of the selected line. The URL of the link column in my report is:
javascript: openForm(#FOODTEMPLATEID#, #MEALTYPEID#); 
So, in a nutshell, item: P24_TEMPLATEID Gets the value of the foodtemplateid that corresponds to the selected line and article: P24_MEALID Gets the value of the mealtypeid that corresponds to the selected line.

Thank you for your time. I really appreciate it.


Apex version: 4.1.1.00.23

Hello

I would create the application on the application MODEL of source process

HTP.PRN('OK');

And change the JavaScript

var getone = new htmldb_Get(null,&APP_ID.,"APPLICATION_PROCESS=DUMMY",&APP_PAGE_ID.); // initialize get

Kind regards
Jari

-----
My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai

Tags: Database

Similar Questions

  • Yahoo seems to load with no style, but loads correctly in a private window. How can I fix this behavior? FF20.0.1

    Since FF20, yahoo.com and yahoo mail come appearing as if she does not use any style page. The logon fails. However, when I use a new private window, all is well for this web site (even if no link didn't get marked as visited - as expected).

    I would have maybe some preference switched or such? A search on the web these last shows no similar problems...

    Thank you.

    The instructions above have solved the problem. I finally had to disable Mozilla Labs: prospector - subject: trackers 2.

    I forgot this experience. Now it's over and the sites are restored.

    Thank you!

  • In Entourage, all the incoming mails are doubled. How can I fix this?

    In Entourage, all the incoming mails are doubled. How can I fix this?

    Entourage is not an Apple product and there are very few users Entourage here. I do part, but never encountered the problem you describe. You the best chance for a quick resolution is to post your question forums Office: Mac from Microsoft here:

    Office for Mac

    Everyone he's a Mac user AND a user desktop, something you can't say about Apple forums. You will get the quickest help there and I think you'll find contributors more useful.

    When you post here, do not forget to include your Office version and your version of Mac OS x.

  • The Messenger app will be not updated. Stuck on "Waiting."... "and the logo in grey. How can I fix this or return to the previous edition that worked?

    I received a prompt on my Ipod touch 5th generation yesterday, that there is a new update of the Messenger application. So I tried to update, however, the app is now stuck on the phase "Waiting."... "and the logo has been disabled. I still get notifications of new messages from the app, but I can't open. I tried to remove and then reinstall the application but the application did not and the app store think that I always opened it. How can I fix this or return to the previous edition that worked?

    Thank you in advance!

    Hello cfossum,

    Looks like you have problems with a third party on your iPod touch app, since the Messages belongs to iOS and you would receive separate not quickly update.

    The resources below will provide some troubleshooting steps for the problem you are having with the Messenger application.

    If an application you have installed unexpectedly closes, unresponsive, or does not open

    Take care.

  • When I click on an image or map that is Kijiji real estate pages, open Firefox all crunched on the right side of the page. How can I fix this?

    When I click on an image or map that is Kijiji real estate pages, open Firefox all crunched on the right side of the page. How can I fix this?
    For example, I discovered an apartment ad that has various attached photos. It said click on the images to see an enlarged version. FF opens the page however the majority of the page is white and the image seems to be pushed on the right side of the page and watch as if it were bundled up against the right side shows is not the whole picture.
    What can I do to fix this?

    Thanks Cor - el,
    Just set the police minimum votes to zero, did the trick. However, I also appreciate other suggestions that I'm following now. Non-strabisme already installed. A little more difficult to find this file user.js. It any suggestions?
    Thanks again for your great help.
    See you soon,.
    Robert

  • Lately on the Web, pdf files are not correctly; What is the problem and how can I fix this so I don't have to use IE?

    I am a teacher and often need to open the PDF files of academic electronic databases of journal articles. In the last two or three weeks, when I try to do it using Firefox, only the first page of the pdf display and the rest are empty. In addition, a bar appears in the upper part with the message "this pdf file cannot be displayed properly." So I had to switch to Internet Explorer to open files and do my research. What happens and how can I fix this problem so that you can open PDFs from the Web in Firefox and ask them to work correctly?

    Hello, firefox 19 introduced its own Viewer integrated pdf - if you want to switch it to the plugin you used before displaying a PDF file just go to the firefox options > applications and scroll down and set the default action for the portable document (pdf) format.

    How to disable the built-in PDF Viewer and use another Viewer

  • iMac asks me to enter a password to open any AND ALL PDF regardless of whether they are protected content or not - how can I fix this annoying problem?

    iMac asks me to enter a password to open any AND ALL PDF regardless of whether they are protected content or not - how can I fix this annoying problem?

    If you always use the Mavericks as your profile States, I ran repair permissions in disk utility.

    If you run El Capitan, I run first aid in disk utility and update your profile.

  • I keep trying to change my cookies setting, but as soon as I close out, he return to the previous settings. How can I fix this so that making the changes will stay?

    I followed the instructions to change my settings of cookies, but whenever I click on OK and close out he returns to previous setting recall the story. How can I fix this so that the parameters iI choose will stay?

    That's ok.

    Firefox shows that the 'use the settings customized for history' if at least a history and cookie setting is not the default to make you aware that the changes have been made.

    If all the history settings are the defaults, the custom settings are hidden and see you "conservation rules: (never) don't forget history."

    "Never remember history" means that private browsing is active and "Always use private browsing mode" Gets a check mark.

    The default cookie settings mean that all cookies are enabled.

    Have you checked exceptions to make sure you aren't blocking cookies?

  • Some junk mail I receive should NOT go to spam.  How can I fix this?

    I have an iMAC.  Some mail goes in junk mail, which should not be undesirable.  How can I fix this?

    control-click or right-click on the message and select Mark as "not junk".

  • I can't open my pictures folder. Error message says I don't have permission! I ran disk utility and found no errors. How this could have happened and how can I fix this problem? I'm the only user.

    Suddenly, I can longer open my pictures folder. I tried to move a picture to the folder to see what is happening and received an error message saying I was not allowed to display the contents of the folder and if I move the picture here, I won't be able to see. I ran disk utility and found no permissions error.

    How this could have happened and how can I fix this problem? I'm the only user. No one else has ever physical access to my computer. However, I sign up for Skyhub a few weeks ago and copied the contents of my Macbook it. Since then, a "Remote disk" icon on my hard drive. This would be part of the problem?

    Select it, choose get the information on the file menu, open the section sharing and permissions and give you access.

    (141083)

  • For some reason any I to open a new tab. How can I fix this please?

    For some reason any I to open a new tab. How can I fix this please?

    You are welcome.

    If please, return to the forum and click on the button 'Resolved' next to the answer that solved your problem. Thank you.

  • When I access my facebook account, it freezes. Then, I get the "not responding" error messages How can I fix this?

    When I access my facebook account, it freezes.  Then, I get the "not responding" error messages  How can I fix this?

    What version of the operating system is running on your computer? Windows Version 5.1

    What browser do you use? Windows Live - Windows Internet Explorer 7

    ·          When the issue started?

    ·          Only happens when you connect to Facebook?

    As best I can answer: error signature when facebook freezes

    szAppName: iexplore.exe szAppVer:8.0.6001.18372 szMacName:hugapp szModVer: 0.0.0. offset: 00000
    He started several days ago and Yes Facebook is the only program that freezes.

    I think 5.1 means that you're running XP, but what Home or Pro version?
    You specify using IE7, but I think that the error message refers to IE 8. You have it improved recently?

    How many times you run a program that cleans ALL accumulated cookies? Not only the option in Windows XP which doesn't seem to work for them all. Try Ccleaner.com, it's free and works well!
    Just need to have all your browser windows closed when you run part of the cleaner. Restart and try to sign Fb.
    If surfing a lot, is recommended to clean/remove cookies on a DAILY basis.

  • "How can I fix this error of update > > WindowsUpdate_80070645" "WindowsUpdate_dt000"

    "How can I fix this error of update > WindowsUpdate_80070645" "WindowsUpdate_dt000"

    Hi Wesfay,

    1. what version of windows is installed on your computer?

    2. the updates fail with errors?

    If you are running windows Vista, you can try to reset windows update components. Open the link below and click theFIXIT .
    http://support.Microsoft.com/kb/971058

    If you run windows 7 try to run the windows update troubleshooter.

    Open the Windows Update troubleshooting tool by clicking theStart button, then Control Panel. In the search box, typeTroubleshooting, and then click Troubleshooting. Undersystem and security, click fix problems with Windows Update. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Update-Troubleshooter

    In addition to the steps above I suggest you follow the suggestion provided by Sortiarius in the thread below link that addresses the same error code.
    http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/a3a127a3-2dc5-42B9-8cd7-87e750a5a442

    I hope this helps.

    Bindu S - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I play an online game called Last Chaos, and whenever I try to run the launcher I get a message on the screen that shows the error code 626. How can I fix this so I can play my game?

    I play an online game called Last Chaos, and whenever I try to run the launcher I get a message on the screen that shows the error code 626. How can I fix this so I can play my game?

    Hi Kerrkid90,

    Welcome to the Microsoft Answers Community Forum site!

    To launch the browser, I want to suggest you to log on as an administrator in 1. Download the game

    2. run the setup.exe file

    3. right-click on it and run as administrator.

    If it fails, suggest to run the Windows Installer Cleanup utility by visiting the following link:

    http://support.Microsoft.com/kb/290301

    In the case if the above methods fail, you can also contact last chaos community to help you fix this problem:

    http://forums.aeriagames.com/?f=6

    I hope this helps!

    Thank you best regards &,.

    Calogero - Microsoft technical support.
    Visit our Microsoft answers feedback Forum
    http://social.answers.Microsoft.com/forums/en-us/answersfeedback/threads/ and tell us what you think

  • How can I fix this error msg? your default printer must support a minimum resolution of 300 x 300 to use the shape tool. I am trying to save in PDF format.

    How can I fix this error msg? your default printer must support a minimum resolution of 300 x 300 to use the shape tool. I am trying to save in PDF format.

    When you have what you want to save the selected PDF file, make sure that you press properties, and set the resolution in the settings.  PDF files themselves have quality settings, (print quality, Web quality etc) then make sure that you have the right to a game if you plan to use the "print" function to save in PDF format.

Maybe you are looking for