Re: Catching reload error



On Feb 2, 4:02 am, "Duncan McNiven" <NO_SPAM_dun...@xxxxxxxxxxx>
wrote:
RoLo wrote:
XMLHttpRequest can load the static HTML if its from the same origin.
https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript

OK, Good.

You could use the same data received by the XMLHttpRequest and change
the old one... without reloading..

OK. I do have full control over the data, so I can do whatever is
needed to get this working. It is disappointing (and surprising to me)
that IE cannot catch a failure in location.reload, but such is life I
guess.

Thanks a lot for the example code. I have tried it, and encountered a
couple of problems in the makeRequest routine. I can code around both
of them, but I'll note them here anyway. The test:

      if (window.XMLHttpRequest) { // Mozilla, Safari, ...

returns true when I run in IE. I expected it to be false. I can make
other tests to identify the browser, but this is odd.

You don't need to identify the browser, just remove the inaccurate
comment(s).


The other minor change is that I get an httpRequest.status of 0. I

Yes, local file.

found that is OK, in that I get 0 instead of 200 because I am dealing
with a file. If I test for 0 instead of 200 I can get the
httpRequest.responseText OK.

Anyway, thanks a lot for the help. I can now move forward from here.
I'll now take a look at implementing the replacement of the old data
with the new data.


Don't use that Ajax example verbatim as it will leak in IE. I wonder
how many times it has been copied and pasted over the years?
According to the comments, it predates IE7. No idea what the
overrideMimeType call is about either (use of that method is a hack.)

Also, I thought IE7's "native" version of XHR had an issue with local
file requests. If so, you will need to swap the order of the feature
tests (look for the ActiveX version first.)
.



Relevant Pages

  • Re: Access 2010 Web Form - tab order
    ... and the fact that we have control layouts to move controls together as a group are actually two distinct issues. ... I think for existing applications and most things I have, I do prefer simple design mode, but some of these new features can really help and terms of productivity. ... They could've perhaps built something that took an existing access form and then had some some type of special ActiveX or client program you install on your browser that renders that form. ... Keep in mind if the form you specify in the browse two command does not have to be part of the current navigation control set. ...
    (comp.databases.ms-access)
  • Re: Access 2010 Web Form - tab order
    ... You can use the goto control command in the after update event to modify what control will be next for those cases where you want to change this. ... That system means if you resize a column, then the Headings, the footings, and detail sections all automatically resize and move for you all at the same time. ... you never get to use + view them in a browser. ... The problem here is if you execute an open form command inside of a browser, it would launch a whole new browser session and separate form. ...
    (comp.databases.ms-access)
  • Re: The MSComm Error 8021 with desc.: "Application-defined or object-defined error"
    ... Since you appear not to be positive that the comm control is causing the ... The browser was unable to retrieve a list of servers from the ... simultaneously to two or more subnets using multiple network cards). ... After you have determined the failed protocol endpoint, ...
    (microsoft.public.vb.winapi.networks)
  • Re: The MSComm Error 8021 with desc.: "Application-defined or object-defined error"
    ... Since you appear not to be positive that the comm control is causing the ... The browser was unable to retrieve a list of servers from the ... simultaneously to two or more subnets using multiple network cards). ... After you have determined the failed protocol endpoint, ...
    (microsoft.public.vb.enterprise)
  • Re: The MSComm Error 8021 with desc.: "Application-defined or object-defined error"
    ... Since you appear not to be positive that the comm control is causing the ... The browser was unable to retrieve a list of servers from the ... simultaneously to two or more subnets using multiple network cards). ... After you have determined the failed protocol endpoint, ...
    (microsoft.public.vb.general.discussion)