1. #11
    Ext User
    Join Date
    Oct 2007
    Posts
    16
    Vote Rating
    0
    radio1 is on a distinguished road

      0  

    Default


    Wow -- thanks VERY MUCH from me also hendricd -- your code makes session timeouts a breeze to handle.

    In my application, I simply included "ext-basex-min.js" as described above, and then added a single call to Ext.lib.Ajax.onStatus(...) also as described above. This works very great for handling session timeouts reported by my server-side code.

    However, please note the following bug and (hopefully sound) fix I implemented. My code is far too large to post here, but I'll describe the problem as best I can.

    My application contains a GridPanel populated by a JsonStore. User clicks on other elements on the screen trigger the JsonStore (and therefore the GridPanel) to reload with applicable data from the server. It's very possible for a user to trigger the reloading of the JsonStore before a previous load was completed. This worked fine without the "ext-basex-min.js" in my app, but including that file (without even calling anything in it) caused IE6 & 7 to trigger a JavaScript error in this situation. Firefox still worked fine though.

    My fix involves moving a single line of code into an existing try/catch block as indicated in these snippets.

    Old:
    Code:
        createResponseObject:function(o, callbackArg){
            var obj = {};
            var headerObj = {},headerStr='';
    
            try{  //to catch bad encoding problems here
                obj.responseText = o.conn.responseText;
            }catch(e){obj.responseText ='';}
    
            obj.responseXML = o.conn.responseXML;
    
            try{
                headerStr = o.conn.getAllResponseHeaders()||'';
            } catch(ex){}
    New:
    Code:
        createResponseObject:function(o, callbackArg){
            var obj = {};
            var headerObj = {},headerStr='';
    
            try{  //to catch bad encoding problems here
                obj.responseText = o.conn.responseText;
            }catch(e){obj.responseText ='';}
    
            try{
                obj.responseXML = o.conn.responseXML;
                headerStr = o.conn.getAllResponseHeaders()||'';
            } catch(ex){}
    This seems to meet the need in my app, but maybe there's a better fix?
    Questions and comments are very welcome!

    Thanks again,
    -radio1

  2. #12
    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


    @radio1 -- Thanks for the feedback!

    Could you tell me what the exception raised by IE was?

    Further, could you post the handler used to call the store.load? Was it called asynchronously?

    Was: Ext.lib.Ajax.forceActiveX == true ??


    Thanks.
    "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. #13
    Ext User
    Join Date
    Oct 2007
    Posts
    16
    Vote Rating
    0
    radio1 is on a distinguished road

      0  

    Default


    Quote Originally Posted by hendricd View Post
    @radio1 -- Thanks for the feedback!

    Could you tell me what the exception raised by IE was?

    Further, could you post the handler used to call the store.load? Was it called asynchronously?

    Was: Ext.lib.Ajax.forceActiveX == true ??

    Thanks.
    The message in IE is the usual "Problems with this Web page might prevent it from being displayed properly....." popup with the following details:

    Line: 236
    Char: 9
    Error: Unspecified error.
    Code: 0
    URL: 'myurl'

    Note that I isolated the cause of the problem to simply including either "ext-basex.js" (or "ext-basex-min.js") via a <script> tag in my source HTML file (even without actually calling Ext.lib.Ajax.onStatus(...) or referencing any other code in your extension), so Ext.lib.Ajax.forceActiveX was untouched.

    As for my JsonStore-related code, my code only ever calls JsonStore.reload() (not .load()). Yup, the calls are asynchronous, and the problem occurred when a second ajax request was sent by the JsonStore while a previous request was still outstanding (the first response was not yet fully received).

    For posterity, here's a simplified version of my JsonStore instantiation code -- simplified only by shortening the values assigned to the config options (those are all of the config options I use). I also do some screen-only cosmetic stuff in the event handlers shown (no ajax stuff).
    Code:
    jsonDs = new Ext.data.JsonStore({
    	url:'myurl',
    	baseParams: {cmd:'get'},
    	root:'items',
    	fields:[...aBunchOfFields...]
    });
    jsonDs.setDefaultSort(...);
    jsonDs.on("beforeload", onStoreLoading, this);
    jsonDs.on("datachanged", onStoreChanged, this);
    Thanks much again -- please let me know if I can be of any further help. Questions and comments are always welcome.
    -radio1

  4. #14
    Ext User
    Join Date
    Oct 2007
    Posts
    16
    Vote Rating
    0
    radio1 is on a distinguished road

      0  

    Default


    A supplementary note to my above post -- I tried a couple more tests with your original version of "ext-basex.js". Explicitly setting Ext.lib.Ajax.forceActiveX to either true or false has no impact on the problem I described -- it still occurs in both cases. Note however that in my real application, I do not change its default value.

    -radio1

  5. #15
    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


    Thanks, I'll keep pondering...
    "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. #16
    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 Second Release adds dynamic javascript load/exec...

    Second Release adds dynamic javascript load/exec...


    See first post for latest updates.
    "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.


  7. #17
    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 ext-basex/ux.ModuleManager Rc2 posted.

    ext-basex/ux.ModuleManager Rc2 posted.


    This release adds internal module caching, styleSheet helpers, and callback support.

    Note: A progressive Ext loader sample (dependency-aware) is just about finished; will advise when packaged.
    "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. #18
    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 ext-basex Updated 2.2

    ext-basex Updated 2.2


    The update corrects a problem reported with the current ext-base adapter implementation.
    When passing postable content (jsonData, xmlData), the Content-Type headers were either duplicated (more than one sent) and/or the default post header value ('application/x-www-form-urlencoded') was being sent in all cases. This update corrects that behaviour when ext-basex is used.

    It is now possible to use traditional Observable syntax for setting global httpStatus handlers:
    Code:
    Ext.lib.Ajax.on({
          'status:403' : permissionHandler ,
          'status:500' : criticalHandler 
    });
    "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.


  9. #19
    Ext User yanick's Avatar
    Join Date
    Oct 2007
    Location
    Slovakia
    Posts
    6
    Vote Rating
    0
    yanick is on a distinguished road

      0  

    Default 404 in linux

    404 in linux


    Hi,
    this line(ext-basex.js, line 840):
    Code:
    fullModule=(module.indexOf(".")!==-1?module:module+".js").toLowerCase()
    don't work in OS, which has case sensitive file system(linux for example), it's probably bug.

  10. #20
    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


    @yanick -- indeed that would be. Fix posted shortly.

    Good eye.
    "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.


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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi