MSIE vs. Firefox and asynchronous AJAX...is MSIE really NOT doing async?

Apex v4.1
MSIE v8.0 and Windows XP
Firefox v6.0.2
Background
Sorry it's a lot but I figure giving all this context would help avoid tangental questions that could derail from my real question(s).
I have a master-detail page where I have such business and functional requirements to do a lot of various validations, checking, disabling/enabling, etc. in the detail region. Given that detail regions in master-detail pages are nothing more than tabular forms that are filtered by the master record's PK and that tabular forms have limited validation and nonexistent calculation ability via declarative calculation processes, my detail region is immensely javascript heavy. In addition, I have the functional requirement that the user see all detail lines on the same page, so I cannot limit the page to 10-15 lines per page anyway.
When the page loads, I need to do a number of functional things to the detail region before the page control is turned over to the user, such as:
1. Disable certain columns that are saved as database columns but never touched by the user.
2. Disable certain columns that the user does not have authorization to modify (but tabular forms have no "readonly" attribute for columns like page items do)
3. Disable certain fields on a row (but not on all rows) based on business rules (e.g.: if PART_NO on a row is null, PART_SERIAL_NO on that row only needs to be disabled (as the user shouldn't be able to enter it).
4. Etc., etc...you get the idea. There are just a lot of things that cannot be declaratively done to a tabular form column and also things that cannot be done on a row-by-row basis, hence the javascript.
When the page loads, I also have to do two cosmetic things to the rows and these can be done after the control is turned over to the user since they are cosmetic only and do not affect their ability to be disabled out of a row-field combo, etc.:
1. For one column that is a popup key LOV, override the displayed value with a different value than Apex generates from the LOV definition. In other words, the LOV definition is "a || b" for the display value and "c" for the return value, but on the main page the users want "a" for the display value that they see.
2. For all records, evaluate several fields on a record and as a result, highlight certain other fields in red, yellow, or black via the background color.
Everything is actually working in both MSIE and Firefox and I'm happy about that. However, the stuff I'm doing in the second group (the popup key LOV display field and the coloring of the background of fields) is only working nicely and quickly in Firefox but is super slow in MSIE. My worst-case scenario in testing is my master-detail has 281 detail rows and in Firefox it takes about 20-25 seconds to paint the page, give control to the user, and then finish doing the asynchronous AJAX stuff after that (which sems to also go quickly). In MSIE, my page rendering time ranges from 1 minute 30 seconds with the AJAX async stuff commented out and not even running to over five minutes (!) with the AJAX stuff left in and running. The difference of 4+ minutes also implies to me that the AJAX stuff is not running asynchronously (or if it is, something else is getting in the way of the effective purpose of it being asynchronous).
Right or wrong, how I built my page is that since a lot of the Javascript code is to act on the detail region onlly, I defined the javascript in the region and not in the page just so that when the detail region isn't displayed (usually when a new master is being created), we don't even display or render any of the javascript.
When the detail region does show, the Javascript that goes along with it to do all the work to the detail region rows/columns also runs.
Example...this is in the region footer of the detail region:
<script type="text/javascript">
//Always when region loads
//Initialize special processing on the fields on the lines that can't be done
//elsewhere.
if (window.addEventListener) // W3C standard
  addLoadEvent(InitDetailItems());
else if (window.attachEvent) // Internet Explorer
  addLoadEvent(InitDetailItems);
if (window.addEventListener)
  window.addEventListener('load', postLoad, false);
else
  window.attachEvent('onload', postLoad);
</script>When the detail region loads, I append a call to the onload event of the page so that the function InitDetailItems is called (addLoadEvent is just another wrapper that detects if the page even has an InitDetailItems function and if it does, it then adds a call to InitDetailItems to fire in addition to any other on-load processing). I did it this way as a matter of style such that if a developer added any onload at the page header that this would just be appended to it. This call to addLoadEvent and InitDetailItems all runs javascript to prepare the detail region non-async (the user must wait for it to finish processing before they should get control of the browser).
Then, the call to also add on a call to postLoad is where the cosmetic async stuff is supposed to happen. I am not a javascript expert by no means but from what I can gather:
1. "window.addEventListener('load', postLoad, false);" works for most non-IE browsers, adds a call to postLoad on the event 'load', and "false" means that it is done non-binding (async).
2. There is no "addEventListener" in MSIE, so it uses "window.attachEvent" to add the call to postLoad to the onload event. This is non-async with no async option, but....keep reading...
PostLoad itself looks like this:
function postLoad()
{ //Stuff do to after this region loads but can be done in an async fashion
  //because they're only cosmetic things.
  setAllMaintDescr(gMaintItemIdCol,gMaintItemIdCol + "_DISPLAY");
  checkAndColorFields();
}setAllMaintDescr is the function that sets my popup key LOV values by querying the database and returning and setting the values in this field accordingly.
checkAndColorFields is the function that passes some fields' values to a PL/SQL packaged function, it computes a color of black, red, yellow, or none and the javascript sets some field background colors accordingly. This logic resides in a PL/SQL package because we have a BI report that is a near copy of this page and needs to call the same logic.
Both setAllMaintDescr and checkAndColorFields call htmldb_Get and get.GetAsync when the database work is done, so even though in MSIE the call to postLoad is not async, the functions themselves call async code that should theoretically be executing in an async manner.
The Real Question(s)
So...bottom line is that in Firefox, the page always takes about 20-25 seconds to load with or without setAllMaintDescr and checkAndColorFields commented/uncommented. This leads me to believe that my code in InitDetailItems (all non-async) is consistently taking 20-25 seconds to execute and postLoad processing is truly async since the page is returned to user control in the same amount of time.
But in MSIE, without setAllMaintDescr and without checkAndColorFields, page load already is a slower 1 minute 35 seconds. With setAllMaintDescr and checkAndColorFields, it swells to well over 5 minutes whereas these async calls to htmldb_Get I would think should not increase much if at all over the initial 1:30 load time.
Any tricks with MSIE? Any settings in the browser I need to know about? Is it truly ignoring my get.Get_Async calls and treating them as get.get()?
Or is MSIE just truly that much of a turd as a browser? Ugh.
Sorry for the long narrative but wanted to answer as many questions about my page first.

^^^ Long post.
Cliff's notes for those I may have lost:
Page dynamically adds two Javascript functions to the onload event.
Each Javascript function calls some PL/SQL but it's all done using get.GetAsync.
Firefox returns control of the page to the end user relatively quickly and consistently regardless of what functions are commented out/uncommented.
MSIE is much slower and takes more time as I uncomment the async Javascript functions.
Why does MSIE seem as if it's behaving non-asynchronously?

Similar Messages

  • Firefox and Internet explorer both show server not found

    Internet explorer and fire fox both show server not found on all websites even though I have good full bar internet connection and also it's not the Internet because I can access my emails thanks
    '''moderator fixed the title of this thread''

    Hi,
    Could you explain the issue with Firefox Desktop or Mobile?
    In the Question you mentioned "Internet Explorer" and in the Thread product you mention "Firefox Android"
    If its Firefox Android, try the below steps
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    The Firefox cache temporarily stores images, scripts, and other parts of websites while you are browsing. <br>
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies, do the following:
    #Tap the menu icon located at the top right corner. This is the icon with 3 bars. On older Android devices you'll have to press the hardware menu key and then tap More.
    #Tap '''Settings'''.
    #After that, you will be taken to the settings screen. In the settings screen, look under the section '''''Privacy & Security''''' and select '''Clear private data'''.
    #You will then be taken to a list of what can be cleared. Select the following 2 for deletion:
    #*Cookies & active logins
    #*Cache
    #After those have been selected, tap the '''Clear data''' button to actually clear the cache and cookies.
    Did this help you with your problems? Please let us know!

  • I keep updating Firefox on my Mac OSx 10.6.8 and each time I think that I've updated I click on Firefox and it still says I do not have the updated version. I've rebooted and tried again to no avail. What I'm I doing wrong?

    I've gone to the link and downloaded the up to date Firefox. Drag Icon into Applications and then to dock but it still remains a message that I'm not working with the most up to date version

    You may see that erroneous update message below the Google search box on www.google.com/firefox which is the old Firefox default home page. It appears that page is no longer being maintained by Google. You appear to have the latest Firefox version.
    '''If you want the Google search page as your home page,''' change your home page to '''''about:home''''' (a new, updated version of the old Google/Firefox home page is now built-in to Firefox).
    *See --> http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    Also see --> https://support.mozilla.com/en-US/kb/Finding+your+Firefox+version<br />
    You can also see your version on the ''Help > Troubleshooting Information'' display
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.org/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.org/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *'''''Shockwave Flash''''' (Adobe Flash or Flash): [https://support.mozilla.org/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.org/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • I just downloaded the new firefox and now my worldwinner site will not play the audio because of a missing file?

    It will not let me play the bejeweled 2 game with sound the new version of firefox disabled my sound?? Please help?????

    Not sure whether for instance you initially had a Yahoo optimised version of Firefox, and have now overwritten it with an official Mozilla version. Although the Mozilla version should NOT add unwanted features, but the Yahoo version may well do.
    If you merely need to find the Yahoo emails page quickly just add it as a bookmark or as a bookmark on the Bookmarks toolbar and make sure that is visible.
    Clicking the star icon on the location bar whilst looking at your emails will bookmark the page.
    * [[How to use bookmarks to save and organize your favorite websites]]
    * [[Bookmarks Toolbar - Display your favorite websites at the top of the Firefox window]]
    I do not use Yahoo myself,and am not sure what add-ons are available. You could search yourself using
    * FirefoxButton -> add-ons
    ** see [[Find and install add-ons to add features to Firefox]]
    ** examples [https://addons.mozilla.org/en-us/firefox/addon/yahoo-toolbar/ yahoo toolbar] & [https://addons.mozilla.org/en-us/firefox/addon/yahoo-mail-notifier/ mail notifier]
    * also look at Yahoo's own information such as http://help.yahoo.com/tutorials/toolbar/cl3/c3_ff_toolbar1.html

  • When using Firefox and Bing, auto search suggestions will not populate even though all options for it are enabled.

    If I try to perform a search using Firefox as my browser, and Bing as my search engine, auto suggestions will not populate. I can use other search engines with Firefox and they work, and I can use Bing in other browsers and it works.

    If you have security software (antivirus, firewall etc.) installed, you can try deleting all existing instances of Firefox and its related processes/files in all the different configuration modules/areas of the security software like process monitoring, sub/spawned process control, virtualization, HIPS etc., in addition to the security software's main configuration panel. Instead create new fully allowed/trusted rules for Firefox + its related processes in all the different modules/panels - a genuine/original Firefox installer as well as all the installed EXEs (Application) and DLLs (Application extension) are digitally signed by Mozilla Corporation (right-click > Properties > Digital Signatures). Even otherwise, some security software may also ask again when Firefox and/or its sub processes are started, and you may be able to allow/trust at that time. Please see [https://support.mozilla.org/en-US/kb/Firewalls this].
    [http://kb.mozillazine.org/Firewalls AV/Firewalls Configuration]
    If security software issues can be ruled out, you can also reset Firefox and check.
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • This isn't a question but rather a warning to anyone using the new OS for iphone 4.  The imessage uses up your data plan like crazy.  I called Apple about it and they said no it's not doing it.  I called AT

    The new OS is burning through my data plan like crazy and here's why.  Imessage uses your data plan and not your texting plan.  So every time you send a text message to someone with an iphone it uses imessage and it uses your data, not your text plan.  I couldn't figure out why I was burning through so much of my data plan so quickly.  I called Apple and they said, no it's not the data plan doing it.  I called AT&T and they said, yes, the imessage uses data instead of your texting plan if you are texting to another iphone.  Also, the new OS runs your apps all the time, even when you aren't using them.  So if you are not near wifi your apps are running and burning your data plan.  The AT&T guy took me through the steps to turn off the apps.  You can still use them but they won't be running constantly.  Seriously Apple, you should let people know this.  It does say it in the fine print on the website "data rates may apply" under imessage but most people will never read this.  So my data plan started on October 10th and it's already at 175 megabytes and I only have a 200 megabyte plan.  I've never used more than 50 to 75 megabytes in a month.  Apple get it together and be honest with people and tell them.  Quit denying the problem.  Most people have probably not even discovered this yet.  Wait till you get your bill.

    kimmie92592 wrote:
    It's not really common knowledge because I've talked to several people today and none of them knew about it.  Also, when I called Apple they said no the new OS is not using data.  Totally wrong answer.  You'd think they'd know about it and at least tell people.  The people who are going to be hit by this are people like me with the 200mb plans.  I just think it's best to spread the word so people can know what's happening.  I still don't know how I went through so much data in such a short period of time.  It's not happening anymore though, not since I fixed everything up last night. 
    If you are using a free wifi connection, there are no data charges with iMessage.  But in an area where you did NOT have a wifi connection, of course it used 3G and of course you got charged for it (or had it count against your plan limits).
    I'll ask again - without a wifi connection, just what did you think was happening?  How did you think your iPhone was able to magically send a message WITHOUT using any data connection?  A little bit of rational thought would have made you realize that there was no way, over a 3G connection (which is a service provided by your cellular service provider, NOT Apple), that you can send or receive ANYTHING without your service provider's plan picking it up.
    Nothing abut iMessage has ever hinted that it can, in any way, bypass your service provider when NOT using a wifi connection.

  • Drawing artifacts in Firefox and Thunderbird after installing MSI AMD R6850 graphics card

    After installing new graphics card (MSI R6850 CYCLONE 1GD5 PE/OC), latest drivers on WinXP 32bit, I'm experiencing frequent drawing artifacts with Mozilla Firefox 8.0 and Mozilla Thunderbird 8.0. The problem represents itself either as horizontal black stripes or scattered color checker pattern. It happens especially when switching from other application to Firefox or Thunderbird or when swiching from child window (like Download Manager) to Firefox. It affects either whole application or just some rectangular region (clearly region which was redrawn due to application switching). Next repaint (like switch between Firefox tabs) usually fixes the problem. It is just visual issue, behavior is not affected. The problem never happened to any other application till now. Any ideas? Anyone experienced same problem? Thanks in advance.
    Zbynek
    P.S. Here are the screenshots for both problems:
    http://astrofoto.euweb.cz/tmp/black_stripes.jpg
    http://astrofoto.euweb.cz/tmp/color_boxes.jpg

    Try to disable hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver that fixes these problems.

  • Why does my cursor keep disappearing on Firefox (and nothing else) when it's not being moved?

    If I'm not moving the cursor it disappears entirely, which is highly annoying. It only does this on Firefox, nothing else. It went through a permanently flickering period before this, too.

    Thanks for the advice, AmazingBeast - I think that probably would have worked. I isolated the problem eventually to a particular web page I'd been using a lot and had kept open. Once I closed it everything was fine again, although it means whenever I want to look at that page I have to put up with the Disappearing Cursor!

  • Up until 2/28 I used Firefox and AOL for email but have not received any new email since that date and now use Safari.

    Prior to 2/28, I was having intermittent problems sending emails which would then go into 'waiting to be sent' but eventually, they would go thru. Never experienced total mail delivery capability until 2/28.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • After I close Firefox and reopen, my app tabs are not found. Is this correct?

    Firefox doesn't save my app tabs. Is this normal or is there a setting that I am missing.

    The loss of my app tabs still happens even though I have my settings set up under Options > Privacy to "Firefox will... Remember history." I have not selected the option for Firefox to clear my history. I have not selected private browsing mode.
    The problem is this: when I close my app tab(s), or when I use my app tab(s) to browse to another page, my app tab actually does disappear or change, and it does not come back when I subsequently close and reopen Firefox.
    This is not the behavior I was expecting for a "permanent" app tab that is "pinned" somewhere. I was told on the features page: "Take sites you always keep open—like Web mail—off your tab bar and give them a permanent home in your browser." To me, permanent means permanent until I actually delete it, like a bookmark on my toolbar. If something is pinned, it should stay pinned down.
    I guess I have to use the bookmark toolbar to get the behavior I want. These app tabs are just temporary skinny tabs.

  • Changed my password in Hotmail, now I cannot open emails. I removed Firefox and then reinstalled it but has not helped.

    When searching the website, I decided to restore my system to my last backup, which was one month ago, so that I could go back to my old password. It worked in Internet Explorer but not in Mozilla Firefox. I cannot do anything in Hotmail. I also used CC Cleaner, Spybottom Search, and Malware Anti-Malware. I also can use Windows Live Essentials 2011.

    What happens if you tap the home button from that page? 
    I think you must have push turned on for your mail, and that is the first thing it is trying to do.  But from anyscreen, any time, if you hit the home button, it should return you to the home screen.  From there, go to settings and do the work on the mail section.

  • Just updated to the latest Firefox and now my MSN email will not function. I can see the titles as normal but cannot open individual emails

    Just updated Firefox. Now I cannot open msn emails. Email titles appear as normal but will not open.

    Hello ebarrow
    If there is an issue with update or permissions the better, quickest and safest way is to download and install firefox:
    1. Download with your safari a copy of the latest firefox from http://www.mozilla.org/en-US/firefox/all.html
    2. '''''Trash''''' the current Firefox application to do a clean install.
    3. Install the version that you have downloaded.
    Do not select to remove your personal data, your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks or other personal data.
    see also: [https://support.mozilla.org/en-US/kb/install-firefox-mac?redirectlocale=en-US&redirectslug=Installing+Firefox+on+Mac Installing Firefox on Mac]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • My search feature has been Hijacked. Everytime I try to click on a relivant search it goes to a totally unrelated site. I removed firefox and reinstalled it but it did not work. This does not happen in IE. Please help, I do not want to use IE. Michael

    My Browser search has been Hijacked, How do I get rid of this. It does not do this in IE. Please help cause I do not want to use IE unless I have to.
    I have tried different anti virus programs but its still here.
    Michael

    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • I use MacIntosh, system 10.5.8. But I keep getting pop-ups . I have tried to install Firefox and it responds saying it is not compatible with my systems architecture. What should I do to stop the pop-up?

    I use G4 MacIntosh, System 10.5.8. I keep getting pop-ups asking me to upgrade my version of Firefox. But when I try to install I get the message that Firefox cannot operate with my computers architecture. How can I stop the pop-ups?

    I believe Firefox 4 is Intel only. That means it will not install on a PPC Mac. You can get TenFourFox, which is made for PPCs.
    http://www.floodgap.com/software/tenfourfox/

  • Should I believe the advice on internet sites to speed up Firefox and if so, why are these not included in Firefox in the first place? Do you recommend any of these, or have any of your own?

    I have already asked my question on the previous page!
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

    No. Many of those tweaks provide little, if any benefit, while others can get you banned from some websites for having too many connections to their website.

Maybe you are looking for

  • Custom pushbutton in ME21N should display a popup window with item details

    Hello,, The requirement is to 1. Add a custom pushbutton in ME21N screen at header level. 2. The user will select some PO line items and will click on this push button.     This inturn should trigger a popup window with item details only for those se

  • I want to take my ipad to hospital, but its only a 16gb can i use an airport to watch more itunes content?

    Ive gota 16gb ipad 3 with wifi and cell, but I cant justify data at $10 a gig for watching tv and movies while im in VA hospital. Can I use an airport with a drive attached to store more of my movies or am I relegated to using a laptop and syncing ev

  • Cs2 won't print

    Just bought a new iMac, OS 10.6.4.  My printer is an HP Deskjet 990cse.   When I try to print from Photoshop CS2, I get a message that says "could not print because of a program error."  Apple Store migrated my data and program files.  Thinking there

  • Set location of component in a container

    I'm looking for a way to exactly specify the location for a component in a container. For example let's say i have some JPanel and i want to add a JButton to it at coordinates x=100, y=50. Is this even possible? All the lay out managers seem to preve

  • Sneaking Behind the JDBC ConnectionPools

    Hi, this is Kinan - This case happend with me: - the (application2) on (server2) got a remote (weblogic.jdbc.common.internal.RmiDataSource) instance which defined in the (server1) - When the (application2) tries to get a connection from this DataSour