Re: Reload Page Command

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 05/15/04


Date: Sat, 15 May 2004 07:09:33 GMT

Hi Alan,

Thanks for the response. As for the #1 and #2 in your further description,
I don't think they're possible. You means you want to refresh the iframe
page only when the async call finish? Then, I wonder how you make the async
call ,at clientside or at serverside? If at serverside, since the web based
application is request/response mode, we can't get the async call 's call
back and the only way is to constantly refresh the page(post back to
server) to query the serverside state info, do you think so?

As for the
===========================
(a) calling a "submit" of the iFrame on the Progress page, or

(b) passing a submit command through to the Refresh page from the Progress
page completion handlers?
===========================
you mentioned, do you mean using javascript to post back the iframe page ?
If so, this is ok, we can referece the iframe element in the Progress page
via
var frm = document.getElementById(iframeId);

Then call
frm.document.forms[0].submit(); to submit the iframe page(refresh page).

In fact, this is the general javascript skills. Here are some web resources
on manipulating iframe in javascript

http://developer.netscape.com/support/faqs/champions/javascript.html#4
http://www.quirksmode.org/js/iframe.html
http://www.xs4all.nl/~ppk/js/iframe.html

###################

In addition, I'm not sure whether you've ever trying calling webservice via
DHTML javascript in web page? This is also a means to call serverside
webservice in clientside script so as to prevent page be postedback to
server. Here is the reference in MSDN:

#Accessing Web Services From DHTML
http://msdn.microsoft.com/library/en-us/dndude/html/dude01222001.asp?frame=t
rue

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/webservic
e/overview.asp

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx



Relevant Pages

  • Re: Reload Page Command
    ... Thanks again very much for your examples and the references. ... You means you want to refresh the iframe ... If at serverside, since the web ... this is the general javascript skills. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: WebPart that will automatically refresh ever 2 mins
    ... IFrame. ... add some javascript in the page to refresh the ... > I have a simple webpart that I want to keep as fresh as possable. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Refresh iframe
    ... How do I refresh an iframe via JavaScript from the parent page? ...
    (comp.lang.javascript)
  • Javascript, Internet Explorer und WYSIWYG
    ... Zur Erhöhung des Eingabekomforts dachte ich mir, so die ein oder andere Funktion mittels Javascript und IFrame als Editor einzubauen. ... "Bei IE verliert der iframe den focus, wenn man auf "das Falsche" klickt. ... Wie kann der "verlorene" Focus die Hauptursache sein, dass ich im IFrame keine Farbe (nur beim Internet Explorer) setzen kann? ...
    (de.comp.lang.javascript)
  • RE: [sb] RE: [Full-Disclosure] Internet explorer 6 execution of arbitrary code (An analysis of the 1
    ... Before sp1 you could simply load any local file into an iframe, ... It's nothing like the refresh issue 2) ...
    (Full-Disclosure)