1. #221
    Ext User
    Join Date
    Feb 2009
    Posts
    47
    Vote Rating
    0
    sarathy is on a distinguished road

      0  

    Default IE6 and IE7

    IE6 and IE7


    Hi Doug,

    Thank you for building and supporting the basex. I am finding the

    Code:
    Ext.lib.Ajax.on('status:302', sessionTimeoutHandler)
    very useful to centrailize session time out handling logic. I am using ext-basex2_2.zip with ext/JS 2.2.1 and noticing that the function is not getting triggered in IE6 and IE7. It works just fine in FF3. Is this a known problem or am I missing something?

  2. #222
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default


    Quote Originally Posted by sarathy View Post
    Hi Doug,

    Thank you for building and supporting the basex. I am finding the

    Code:
    Ext.lib.Ajax.on('status:302', sessionTimeoutHandler)
    very useful to centrailize session time out handling logic. I am using ext-basex2_2.zip with ext/JS 2.2.1 and noticing that the function is not getting triggered in IE6 and IE7. It works just fine in FF3. Is this a known problem or am I missing something?
    It is likely that IE is handling the 302 redirect internally and you never see the 302 reponse in your ajax request.

    EDIT: Not sure much of this applies to your usage, but:

    An HTTP redirection, whether executed by the Web browser or XMLHttpRequest, can be executed only if the redirection follows the same origin policy. If a redirection to another domain is attempted with XMLHttpRequest, the results vary. For example, Microsoft Internet Explorer returns a status code of 0 and no further data. Mozilla-based browsers return the status code 302 and the redirected URL.


    Although using HTTP redirection can be effective, it can also be problematic from an Ajax perspective. When using the XMLHttpRequest object and calling a URL that generates a redirection, the redirected URL will be loaded automatically. This is bad because the script needs to know what the redirected URL is, but the XMLHttpRequest object doesn’t give that URL.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  3. #223
    Ext User
    Join Date
    Feb 2009
    Posts
    47
    Vote Rating
    0
    sarathy is on a distinguished road

      0  

    Default


    Hi Doug,

    All my redirects within the same domain. Basically the server sends a redirect to login page when it detects session timeout. Ext/JS based AJAX handling need to detect this condition and let the redirect be effective.

    As you suspect, I think IE is not allowing the 302 to bubble up to the ext layer. Since catching 302 is not working, I have devised crude way of looking in the response text for eye catchers to detect if a redirect has occurred.

    Thanks for your prompt help.
    Regards,
    -sarathy

  4. #224
    Ext User
    Join Date
    Sep 2008
    Posts
    3
    Vote Rating
    0
    tasman is on a distinguished road

      0  

    Default Ext 3.0 rc1

    Ext 3.0 rc1


    Hello

    I tried use basex with ext 3 and found the error:

    this.headers is undefined
    line 546: var cType = this.headers['Content-Type'] || null;


    the same script with Ext 2.1 works well

    very thanks!

  5. #225
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default


    Quote Originally Posted by tasman View Post
    Hello

    I tried use basex with ext 3 and found the error:

    this.headers is undefined
    line 546: var cType = this.headers['Content-Type'] || null;


    the same script with Ext 2.1 works well

    very thanks!
    @tasman -- Try the latest from google.code: SVN.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  6. #226
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default


    I grabbed the latest SVN code but I am still getting this error:
    Code:
    this.defaultHeaders is undefined
    on line 845.

    There appear to be several other issues with the new Ext 3.0 library that impact your extension.
    * function initHeader is undefined - line 846
    * function setHeader is undefined - line 852
    * function handleReadyState is undefined - line 857

    Are you aware of these?

  7. #227
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default


    Quote Originally Posted by zombeerose View Post
    I grabbed the latest SVN code but I am still getting this error:
    Code:
    this.defaultHeaders is undefined
    on line 845.

    There appear to be several other issues with the new Ext 3.0 library that impact your extension.
    * function initHeader is undefined - line 846
    * function setHeader is undefined - line 852
    * function handleReadyState is undefined - line 857

    Are you aware of these?
    Yes, since 3.0 is essentially a re-write, most of those functions are now private.

    I be giving ext-basex a thorough review shortly..
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  8. #228
    Ext User
    Join Date
    Sep 2008
    Posts
    3
    Vote Rating
    0
    tasman is on a distinguished road

      0  

    Default


    Quote Originally Posted by hendricd View Post
    @tasman -- Try the latest from google.code: SVN.
    Hello!

    the error gone!

    but there are another one:

    this.initHeader is not a function

    line 692: this.initHeader('Content-Type',cType,false);

    thanks!

  9. #229
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Thumbs up


    Quote Originally Posted by zombeerose View Post
    I grabbed the latest SVN code but I am still getting this error:
    Code:
    this.defaultHeaders is undefined
    on line 845.

    There appear to be several other issues with the new Ext 3.0 library that impact your extension.
    * function initHeader is undefined - line 846
    * function setHeader is undefined - line 852
    * function handleReadyState is undefined - line 857

    Are you aware of these?
    Quote Originally Posted by tasman View Post
    Hello!

    the error gone!

    but there are another one:

    this.initHeader is not a function

    line 692: this.initHeader('Content-Type',cType,false);

    thanks!
    OK, gang. Try the latest v3.3 from SVN again. I [think] its all covered now.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  10. #230
    Ext User
    Join Date
    Sep 2008
    Posts
    3
    Vote Rating
    0
    tasman is on a distinguished road

      0  

    Default


    Ok! now all works!

    very thanks!!!!

Thread Participants: 82

  1. galdaka (1 Post)
  2. Digital God (3 Posts)
  3. prophet (1 Post)
  4. alayasf (2 Posts)
  5. tof (1 Post)
  6. stever (3 Posts)
  7. mystix (4 Posts)
  8. fangzhouxing (6 Posts)
  9. ludoo (1 Post)
  10. KRavEN (4 Posts)
  11. DigitalSkyline (3 Posts)
  12. daemach (1 Post)
  13. violinista (1 Post)
  14. mlarese (1 Post)
  15. walker_cn (4 Posts)
  16. stevebla (4 Posts)
  17. Chris in Cambridge (1 Post)
  18. mjlecomte (2 Posts)
  19. ZooKeeper (10 Posts)
  20. brookd (1 Post)
  21. fermo111 (6 Posts)
  22. kevinwu8 (1 Post)
  23. Spirit (3 Posts)
  24. jerrybrown5 (4 Posts)
  25. lvanderree (8 Posts)
  26. Makor (4 Posts)
  27. yanick (1 Post)
  28. wm003 (10 Posts)
  29. radio1 (3 Posts)
  30. jphillips (2 Posts)
  31. markpele (2 Posts)
  32. Romantik (1 Post)
  33. Sander_S (4 Posts)
  34. maximumcoder (2 Posts)
  35. NotChris (6 Posts)
  36. ritchrs (2 Posts)
  37. sksoft (2 Posts)
  38. jvanantwerp (2 Posts)
  39. jfa (2 Posts)
  40. BlueCamel (1 Post)
  41. ClemsonJeeper (3 Posts)
  42. sp797 (1 Post)
  43. mahesh122 (2 Posts)
  44. zombeerose (12 Posts)
  45. jlowe (2 Posts)
  46. bt_bruno (2 Posts)
  47. pompom (4 Posts)
  48. Eric24 (18 Posts)
  49. baumschule (3 Posts)
  50. coderobo (3 Posts)
  51. krause (1 Post)
  52. mubenchi (1 Post)
  53. mrkadakia (3 Posts)
  54. tomim (4 Posts)
  55. canxss (2 Posts)
  56. tasman (3 Posts)
  57. mrsunshine (4 Posts)
  58. Trinad (2 Posts)
  59. jasonb885 (2 Posts)
  60. wki01 (5 Posts)
  61. mschwartz (2 Posts)
  62. sarathy (2 Posts)
  63. jdurante (1 Post)
  64. TomChiverton (1 Post)
  65. sumit.madan (2 Posts)
  66. Riemi (4 Posts)
  67. Henrik Rutzou (3 Posts)
  68. hairinwind (1 Post)
  69. gzlizp (1 Post)
  70. yuanqixun (2 Posts)
  71. larryaubstore (2 Posts)
  72. wupeng (2 Posts)
  73. blueram (1 Post)
  74. ronivcp (1 Post)
  75. t00bs (2 Posts)
  76. hyponym (4 Posts)
  77. mg2468 (3 Posts)
  78. scaddenp (1 Post)
  79. faith wins (3 Posts)
  80. aratcliffe (8 Posts)
  81. jhashe (3 Posts)
  82. jaufgang (1 Post)

Tags for this Thread