[CLOSED] IE9 Refresh window content

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] IE9 Refresh window content

    Hi,

    I'm using the current directmethod in my desktop page which refreshes the content of a specific window:

    [DirectMethod]
        public void refreshWindow(String dw)
        {
            Ext.Net.Utilities.ControlUtils.FindControl<DesktopWindow>(this, dw).LoadContent();
        }
    I call the method from javascript in my desktop like this:

     function refreshWindow(cWindow) {
                Ext.net.DirectMethods.refreshWindow(cWindow);
      }
    This javascript function on the desktop is called from several other windows like this:

    ResourceManager1.AddScript("top.refreshWindow('winInvoerReservering');");
    (desktop page is always the top frame which contains the refreshwindow javascript function)

    This code worked always cross browser, but in IE9 it won't.

    I use this code for example when adding a new person --> from the window where I added the new person I'm able to refresh the window (which is another window) which contains a grid with all persons.

    Any idea what's wrong in IE9 ? The problem lies in the Direct Method, because when debugging I can see that the direct method is called

    Martin
    Last edited by Daniil; May 31, 2011 at 10:39 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please clarify how exactly does it not work in IE9?

    Try to call .ClearContent() before .LoadContent().
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,
    Please clarify how exactly does it not work in IE9?
    Well..nothing that special. I pressume you can use this function in a test desktop:

     /// <summary>
        /// Refresh Window
        /// </summary>
        /// <param name="dw">DesktopWindow</param>
        [DirectMethod]
        public void refreshWindow(String dw)
        {
            DesktopWindow Desktopw = (Ext.Net.DesktopWindow) Ext.Net.Utilities.ControlUtils.FindControl<DesktopWindow>(this, dw);
            Desktopw.ClearContent();
            Desktopw.LoadContent();
        }
    I just launch this javascript function:

    function refreshWindow() {
               Ext.net.DirectMethods.refreshWindow('desktopwindowID');
     }
    The window aspx page isn't reloaded in IE9 .. in all other browsers it is...

    Martin
  4. #4
    Hi,

    May be IE9 caches the page, try to set NoCache=true for AutoLoad config
    If it is not helped then please post simple test sample
  5. #5
    Quote Originally Posted by Vladimir View Post
    Hi,

    May be IE9 caches the page, try to set NoCache=true for AutoLoad config
    If it is not helped then please post simple test sample
    No-cache did the trick Vlad. Thanks..

    Mark as solved !

    Martin
  6. #6
    I was wrong..

    It seemed that I was still in google chrome and not working with ie9.

    When debugging the webapplication with f12 (ie9) I'm receiving the error:
    SCRIPT5009: 'Ext' is undefined
    when refreshing the window

    Its driving me nuts because a small test project with the same code worked flawless in IE9. Just my large project doesn't.
    Something to with the speed of ie9 ..?

    Just a wild guess

    Martin
    Last edited by Daniil; May 16, 2011 at 3:38 PM. Reason: Removed <font> tags
  7. #7
    Hi,

    Do you have public access to your application?
  8. #8
    Quote Originally Posted by Vladimir View Post
    Hi,

    Do you have public access to your application?
    Frontend no problem. I will send you the details by mail...

    Martin
  9. #9
    Hi,

    If you have an ability then please switch online version to use debug version of scripts (scriptMode="Debug" in the web.config or for ResourceManager)
  10. #10
    Quote Originally Posted by Vladimir View Post
    Hi,

    If you have an ability then please switch online version to use debug version of scripts (scriptMode="Debug" in the web.config or for ResourceManager)
    Changed the scriptmode in the important pages.

    How can I change it application wide in the web.config ?

    martin
Page 1 of 2 12 LastLast

Similar Threads

  1. Refresh content page only
    By macmilanfly in forum 1.x Help
    Replies: 0
    Last Post: Jul 19, 2012, 6:36 AM
  2. [CLOSED] Refresh content minimized destopwindow
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 12, 2012, 3:12 PM
  3. Replies: 22
    Last Post: May 04, 2012, 11:49 AM
  4. Refresh ext:Panel content
    By reiben in forum 1.x Help
    Replies: 3
    Last Post: Mar 29, 2011, 5:01 PM
  5. Replies: 0
    Last Post: Jul 28, 2009, 3:53 PM

Posting Permissions