Traction region AJAX in firefox/IE problems

Hello

I use Apex 4.2. I followed the example of Carls as described here:

http://Apex.Oracle.com/pls/OTN/f?p=11933:48

and

Partial refreshing of pages in 2.0?


In my case, I call the # 31 on page # 1 page region using the technique described in the example of Carl. The region on the page # 31 is a dynamic region of pl/sql.
The only difference is that I view the content (from page # 31 - bringing the SQL report) in a modal dialog box.

I have a button on my # 1 page that calls the function javascript like:
javascript:dhtml_GetReport();
Here is the code inside the javascript function:
function dhtml_GetReport(){  
    var get = new htmldb_Get(null,&APP_ID.,null,31);  
    get.add('P31_SPRINT',$v('P1_SPRINT'));
    gReturn = get.get(null,'<htmldb:BOX_BODY>','</htmldb:BOX_BODY>');  
    get = null;  
    $x('DRAG').innerHTML = gReturn;  
    $("#DRAG").dialog('open');
}
P31_SPRINT is a part of hidden on page # 31 page.

"DRAG" is the static id of the HTML area on the #1 page. The region uses the model of the 'Modal Region".

As see you in the above code, I call another function to open the dialog box modal as:
$( function() 
{
    $('#DRAG').dialog(
    {
        modal : true,
        autoOpen : false,
        width : 'auto',
        height: 'auto'     
   });
  
    
});
The code works fine, and when I click on the button on page # 1, it opens the modal dialog box and displays the content (from page # 31) as expected. However, I see a strange behavior in firefox and IE.
After that I closed the form of the modal dialog box, clicking on any other buttons or tabs (basically navigate off the page) lance page # 31 in the browser.

However, in Chrome it works perfectly well - navigate off the page appears not all problems.

If I submit my page # 1 by using the following code, it solves the problem that I see with firefox/IE.
$('#DRAG').bind('dialogclose', function(event) {

   javascript:parent.window.location.reload();
  
 });
However, I don't want to do my entire page when the form of the modal dialog box is closed. Please suggest if it is possible to fix this problem without sending the page.

Published by: jaouad khalifi on October 22, 2012 05:10

I would say, do not reinvent the wheel. Use the Skillbuilders Page modal popup plugin. He'll show the whole page in a modal dialog box, with all the features of this page intact. You can control the appearance of your modal page by adjusting the models page and the region. For example, you can easily define a page template which includes without tab and header image and model of region with no specified title. Much easier.

I changed your code for this:

function dhtml_GetReport(pThis){
   var l_Val = $v(pThis);
   var get = new htmldb_Get(null,$v('pFlowId'),null,2);
   get.add('P2_NAME',l_Val)
   gReturn = get.get(null,'','');
   var htmlpiece = $(gReturn).find('#R3847815507010434466');
   $('#DRAG').html(htmlpiece);
   $("#DRAG").dialog('open');
};

I'm not sure that the get.get (...) made with the tags and I need to examine the issue, but I guess that it would look to start and end tags. However, when you do a release of gReturn you can see that it is a complete HTML page fragment, IE everything that in the HTML of this page. The bad!
And of course, who works with the put in the innerHTML, but it is not valid.
That's why I changed it to

   var htmlpiece = $(gReturn).find('#R3847815507010434466');
   $('#DRAG').html(htmlpiece);

Convert gReturn into a jQuery object, locate the tag with this ID (which is the tag section for this region but has no static ID, I just took it from the HTML source). Then, put this track in the html code of #DRAG.
Your page now works as expected.

More tips: use dynamic actions! Use an iframe to save headaches, but if you pick up an iframe, look at the page modal plugin.

Tags: Database

Similar Questions

  • Quality of police after Firefox reset problems

    Since the reset Firefox fonts sometimes show default sizes hurt, but if I zoomed in several levels and then zoom out, the problem usually disappears. Solutions?

    Update: I found that just by clicking on the Office has also the problem disappears.

    You may have disabled use of Firefox graphics acceleration hardware before and simply not turned off again to your new profile.

    You need to restart Firefox for it to take effect, so save any work first (e.g. you compose mail, documents online that you are editing, etc.).

    Orange Firefox button or classic menu Tools > Options > advanced

    In the mini ' General' tab, uncheck the box for "use hardware acceleration when available.

    If you restart Firefox, the problem is solved or all points to be improved?

  • Put in page works with IE and Firefox, different problems with the iPhone and Blackberry

    I created a website using DW CS4 www.hollisterairshow.com . When using my PC WinXp/IE and Firefox without problems occur in the page layout. However, I have a couple of users who have reported problems when you view the web site by using their smartphones.

    An iPhone user said the second line of the section containing the flag / date / flag is not centered, but left-aligned, everything is fine.

    A Blackberry user indicates the second line of the topic is properly aligned, but the menu bar that must appear on the left is missing!

    I don't have an iPhone or Blackberry, is it possible that I can test this using my PC? Does anyone have an idea what could be causing these issues?

    Thank you

    Tony

    I agree with the previous poster here.  I think that the best response to this is to create a separate site for mobile users, which is called case of detection.  It will be thought to create a site that is optimal in both environments.

    Shane

    DomainShane

  • The synchronous call AJAX in Firefox, worked in IE, Chrome, and Safari

    Dear Sirs,

    I need to use the synchronous Ajax call that breaks on openness in synchronous mode.
    The error is NS_ERROR_FAILURE. This code works perfectly in IE, Chrome, and Safari.
    Help, please.
    Regards, Mark

    I've included here some of my code.

    function PostRequest(MyUrl){
    
     var qXML = new XMLHttpRequest();
    
    // some code
    
      qXML.open("POST", MyUrl, false);
      qXML.setRequestHeader('Accept', '*');
      qXML.setRequestHeader('Origin', '*');
      qXML.setRequestHeader('content-type','application/x-www-form-urlencoded');
            try {
             qXML.send(StringToPost);
    
    // some code .....        
    
            } catch(err){
             alert(err + '\n...unavailable.\nYour request will appear in the new window.');
                     }; // post log
    

    .....

    Sorry, this forum is for user of Firefox support, there may be no developers Ajax support here this morning.

    Try announcement Web development / standards evangelism MozillaZine forum. The helpers there are better informed on the problems of development of web page with Firefox.

    http://forums.mozillazine.org/viewforum.php?f=25

    You will need to register and log in to post in this forum.

  • Manually created the tabular forms and Firefox 4 problem

    I have a tabular presentation created with pl/sql dynamic content using the apex_item Toolbox areas. A collection of the apex is used to maintain the State of the tabular data entered. It is an application originally created at the APEX 1.5 and improved over the years to 3.2. Never a problem with the application so far. I've recreated the question on the site of apex.oracle.com here:


    http://Apex.Oracle.com/pls/Apex/f?p=28213

    Run the application in Internet Explorer (I use 8), then run it in Firefox 4. Enter a quantity in the first element, then the next and previous then several times. See the problem? The problem doesn't occur in FF 3.6 or Chrome either. I have not tried Safari as my mac at home and I'm at the office.


    Here's the code for areas of pl/sql and the update of the collection (after submitting). Page 2 is just a selection of the collection report. I spent a day trying to solve this problem. Any help will be appreciated. Redesign without pl/sql dynamic regions is not an option at this time.

    Dave




    Report region 1: (there is no collection)

    declare
    Other1 varchar2 (2000) value default null;
    other_char varchar2 (32000) value default null;


    Start


    HTP.p ("< table border ="1 "width =" 100% "> '");
    HTP.tablerowopen;
    HTP.p ('< th > Description < /th > < th > price < /th > < th > quantity < /th >');
    HTP.tablerowclose;

    for rec in (SELECT id, description, to_char(price,'$9,999.99') price
    FROM foodbev_items by id) loop

    Select apex_item.hidden(1,rec.id) in the double other_char;
    HTP.p (other_char);

    Select apex_item.hidden(3,rec.description) in the double other_char;
    HTP.p (other_char);



    HTP.tablerowopen;
    HTP. TableData (Rec.Description);
    HTP. TableData (Rec.Price, 'right');












    -quantity here
    Select apex_item.text(6,null,5)
    in double other1;
    HTP. (Other1) TableData;




    HTP.p ("< tablerowclose >" ");

    end loop;


    HTP.p ("< /table >" ");


    end;


    Report region 2: (collection exists)


    declare
    Other1 varchar2 (2000) value default null;
    other_char varchar2 (32000) value default null;


    Start



    HTP.p ("< table border ="1 "width =" 100% "> '");
    HTP.tablerowopen;
    HTP.p ('< th > Description < /th > < th > price < /th > < th > quantity < /th >');
    HTP.tablerowclose;

    -collection BREAKFAST_SELECTION
    --
    -1 is item_id, 3 is description 6 is Qty.
    --

    for rec (item_id SELECT a.c001, description, price, a.c006 entered_qty to_char(b.price,'$9,999.99') a.c003
    Htmldb_collections a, foodbev_items b where a.c001 = to_char (b.id) and a.collection_name = 'BREAKFAST_SELECTION"to order by b.id) loop

    Select apex_item.hidden(1,rec.item_id) in the double other_char;
    HTP.p (other_char);



    Select apex_item.hidden(3,rec.description) in the double other_char;
    HTP.p (other_char);





    HTP.tablerowopen;
    HTP. TableData (Rec.Description);
    HTP. TableData (Rec.Price, 'right');













    -quantity here
    Select apex_item.text(6,rec.entered_qty,5,5)
    in double other1;
    HTP. (Other1) TableData;



    HTP.p ("< tablerowclose >" ");

    end loop;


    HTP.p ("< /table >" ");





    end;


    Collection update:

    declare
    la_cks wwv_flow_global.vc_arr2;
    other_char varchar2 (2000) value default null;
    other_char1 varchar2 (2000) value default null;

    Start

    htmldb_collection.create_or_truncate_collection ('BREAKFAST_SELECTION');

    because me in 1... htmldb_application.g_f01. Count
    loop

    --
    -1 item_id, 2 is digital price, 3 is description, 6 Qty
    --
    --
    () htmldb_collection.add_member
    p_collection_name = > 'BREAKFAST_SELECTION ',.
    p_c001 = > htmldb_application.g_f01 (i),
    p_c003 = > htmldb_application.g_f03 (i),
    p_c006 = > htmldb_application.g_f06 (i)
    );



    end loop;


    end;

    don't know if this is the problem or not, but

    ...
    htp.tabledata(other1);
    
    htp.p('');
    
    end loop;
    
    htp.p('');
    ...
    

    should be

    ...
    htp.tabledata(other1);
    
    htp.tablerowclose;
    
    end loop;
    
    htp.p('');
    ..
    

    Thank you

    Janet Tyson

  • Smooth scrolling Firefox 40 problem

    Since I upgraded to Firefox for PC 40, I noticed that the smooth scrolling is not smooth at all. Fact scroll the page, but the text is choppy I scroll down. By "jerky", I mean that it seems that it is refreshing and redraw on the page instead of scrolling.

    Unchecking the options-> advanced-> general-> use of smooth scrolling eliminates the jerks, but now the scroll is not smooth and now is similar to a button "next page".

    Scroll smoothly worked very well in 39 FF.

    I have an eVGA (NVIDIA) GeForce GTX 960 graphic card running v353.62

    Any ideas? I'm NOT having this problem in Edge or Chrome 44, so I guess it's Firefox 40 associated...

    Hi, it's probably because of the current nvidia gforce driver be blacklisted to use hardware acceleration, due to an explosion in firefox crashes, it was originally in windows 10 until this problem is resolved...

  • Downloaded Firefox, had problems, deleted everything, now, nothing works!

    We have downloaded Firefox without having read all the fine print. Am impatient and clicked through everything without having read what was being installed. Once the download and complete installation, we had problems with a lot of other things on our computer and it did not work properly. We deleted everything we thought was installed with the download of Firefox. Now, we can not access the internet via Chrome or IE. We know that our connection is working because the other devices are able to connect. I tried a few things to get this problem fixed, but don't know what else to do. I'm afraid that it has deleted something important when he tried to solve the problem.

    Thank you all. I think I found a problem. I found a restore point that has worked!

  • 38 of Firefox do problem in yahoo to linux ubuntu 14.04

    When I am browsing yahoo mail it shows my Inbox ok. Then I opened an e-mail to read. Now the problem, when I close this read the mail then nothing shows. If I click on Inbox it does not show anything. But if I click on spam it works. Even once when I click on the Inbox folder it does not show anything. So, I have to refresh the site to read the second e-mail. Once again this process. Last day, I tried to respond to an email. So, I tried several times to download a zip file of office but I can't. Then, I sent this mail via google chrome.

    Hello

    Refresh (called "Reset" in older versions of Firefox) can solve a lot of problems in restaurant Firefox as his default factory while saving your bookmarks, history, passwords, cookies, and other essential information.

    Note: When you use this feature, you will lose all the extensions, toolbar customizations, and certain preferences. See article Firefox Refresh - reset modules and parameters for more information.

    Refresh for Firefox:

    1. Open the troubleshooting information page using one of the following methods:

      • Click the menu button

        click Help

        and select troubleshooting information. Should open a new tab containing your troubleshooting information.

      • If you are unable to access the Help menu, type Subject: support in your address bar to bring up the troubleshooting information page.
    2. At the top right of the page, you should see a button that says 'Refresh Firefox' ('reset Firefox' in older versions of Firefox). Click on it.
    3. Firefox closes. Once the update process is complete, Firefox will display a window with the imported information.
    4. Click Finish and reopen Firefox.

    This corrects the problem? Please report to us!

    Thank you.

  • Get a pop up message saying that I have a Firefox security problem

    I started to receive messages pop up saying that my Firefox browser has a problem of serious security and for me to give a phone number.
    !. It is a real message of Mozilla, or is it a phishing message?
    2 should Whtat action I take in the future?

    1. no that is not true. Mozilla has never communicates by telephone.
    Sounds like malware on your PC.
    2. ignore in the future.

    Sometimes a problem with Firefox can be a result of malware installed on your computer, you may not be aware of.

    You can try these free programs to search for malicious software that work with your existing anti-virus software:

    Microsoft Security Essentials is a good permanent antivirus for Windows 7/Vista/XP, if you do not already have one.

    More information can be found in the article troubleshooting Firefox problems caused by malware .

    This solve your problems? Please report to us!

  • cursor flashing; script tries to run in the background; reinstalled Firefox, still problem

    blinking cursor and slow/unusable super search. window opens that a script tries to run, but can not. Completely remove the Firefox and reinstalled. Problem still exists. Another search engine is not serious.

    Hello jfrancis0525, a reinstall won't help in most cases - please try resetting firefox and see if that can solve the problem...

  • Graphics card Radeon laptop on platform Windows 8 crashes when you watch videos in Firefox. Problem does not replicate on other browsers. Is there a solution?

    I have a 4540 of Hp ProBook with a Radeon 7 x chip video integrated of series, platform Windows 8.1. When I watch videos with the browser Firefox video adapter fails and the computer sometimes freezes. If I watch videos with another browser I don't have a problem. I went to HP and have downloaded the latest drivers from AMD but still no will. So far, the only solution is to not use Firefox when watching video clips. In short, I don't know what direction to go, and since the problem seems to be specific with Firefox, I thought I would draw your attention to the problem.

    Some additional info... If I bypass the Radeon chip, i.e. use the alternate Intel video chip, I don't have a problem. It said the native PC with Windows 7 pro with the upgrade software and the key of Windows 8. In any case when 7 was installed there where no problems with the playback of videos in Firefox. Installing Windows 8 was installed a clean place, not an upgrade...

    Thank you

    I forgot a second hardware acceleration setting, which is changed in Flash itself. See this article from Adobe technical support: http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues

  • Firefox has problems after the update

    Each time I update Firefox I end up having problems with it! My current problem (which has also been a problem before and never satisfactorily resolved - I have just learned to live with him) is the complete loss of my home page. Despite the fact that the options display it be correctly set, it now opens the last page I had from my previous session.

    I know you will tell me that everything looks fine, so try to uninstall/reinstall, or play with my preferences file. all the usual panaceas, but I have none of that! This problem happens ALL. UNIQUE. TIME I update FF! This is ridiculous and it has to stop. As this is a common problem with so many users, it's something that should get fixed before all pretty small setting Visual and other such nonsense.

    Another issue that keeps coming up is the saved preferences lack operating system. I'll go for months with the browser darn do not save my preferences and then, boom! All the sudden one day randomly, it will start to do what I want, as fast, y ' All will come out with another update and I'm back to the same old problems!

    Look, I love FF, it's my favorite browser. I really need to make it work as he assumed EVERY time I OPEN IT! Is there a fix that does not require me to erase my hard drive? Seriously, this is getting old waaaaay!

    Hello JaneDoe1651, check if you have problems with safe mode.

    In addition, in the details of your system, it seems that you have a User.js file in your profile folder. The user.js file does not exist by default. If you create the file, forget it, if you have not created, then try to remove the User.js file, to see if the problem goes away (some programs to also create the file).

    Thank you

  • Firefox version problem

    I had the 12 Firefox version and began to get from Gmail and other sites, an error that says that my browser is not supported.
    I've updated for Firefox 13.0.1 and for a few days, I have not had any problems. Today (not sure if related) I installed an update of Flash, and not all sites tells me that my firefox is outdated.

    Hello, your useragent (browser ILO sends to sites it is loading) obviously wrong shows you on the version of firefox 3.0.15. Please refer to the last section of this article to reset the settings of the user agent in firefox: websites say that Firefox is obsolete or incompatible, even if it's the latest version

  • When I go on some websites (such as cricinfo), I am redirected to a page of 123 find. I don't have this problem with IE, and when I re - install firefox, the problem reappears

    If I quit firefox and then restart your computer and access the page, I can go to the web site. Then very quickly, the 123 find program takes over.
    This happens at home, I have all the info here.

    Finally, the problem is solved by running malwarebytes. I've deleted and reinstalled firfox and the problem reappears. This occurred because the Trojan horse was in the plugins folder that was not deleted when firefox has been removed.
    After that the Trojan horse has been deleted by malwarebytes, the problem is not happening yet.

  • Firefox has problems with redirection, cookies are all about, I think that I canceled my warranty.

    When I try to visit some Web sites. Gmail.com and Firefox.com...yet in particular, I get the following error message.

    The page is not redirecting properly

    Firefox has detected that the server redirects the request for this address in a way that will never end.

    • This problem can sometimes be caused by disabling or refusing to accept cookies.

    After try again, it usually works. Sometimes I have to try several times but it works after a while.

    Now, I searched this site and found the solution for this error which will involved tools > options > privacy and ensure that I accept all cookies. I did, cookies all the time.

    I think I played with too many options to my subject: config and it's how I missed this. I tried updating to a newer version of Firefox to see if that would solve the problem and he didn't. So I wonder if there is some setting in my topic: config I could try to change, or if there is a way to put my subject: at default config without losing my addons?

    I look forward to uninstall and reinstall Firefox to fix this, as I have a lot of Add ons and lots of Favorites and try as I can in the past I have always seem to forget to transfer SOMETHING when I reinstalled Firefox.

    Any help would be appreciated.

    Did you change the pref network.http.redirection - limit at 1 on the topic: config page?

    You can right click on a pref and click Reset to set the pref by default (20)

    See http://kb.mozillazine.org/about%3Aconfig

    See also http://kb.mozillazine.org/The_page_is_not_redirecting_properly

    You can try to clear the cookies from this Web site.

Maybe you are looking for

  • Suitable for Satellite A200 (PSOFOA) cd/dvd players

    Hi guys Had a little drama combustion got sorted, but now he s a real pain because it does not recognize more than two layers. I read on the forums that they are driving a real picky when it comes to media he will recognize. So I m get, I m planning

  • BOOTMGR is missing after you mount the new hard drive

    I have an acer 6930g laptop using windows vista. My laptop crashed and left the hard drive corrupt / unreadable, so I set up a hard drive again.When I start it shows message BOOTMGR is missing.on restart alt f10 not work.i have the 2 dvd backup which

  • 'WindowsUpdate_00000641 '.

    'WindowsUpdate_00000641 '.

  • DVD bluray missing in Device Manager

    I installed windows 7 pro from CD-Rom. I have barely use cd CD-Rom so I did not notice that all of a sudden my DVD drive has disappeared in the Device Manager. When you insert a disc, it rotates but does not start. BIOS sees the optical drive. BIOS h

  • Need help to transfer Adobe Acrobat Writer

    I need help transfer writer adobe from my old computer to my new computer.  I own the license.  Adobe won't help me directly... only if I buy a new license. !!!  Any help out there?