1. #121
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    hey @hendricd, just found this in the Examples forum:
    jScout - full-featured javascript/css on-demand package loader

    haven't checked it out yet, but since you're working on JIT, thought it might be good to get a heads up on alternatives.

  2. #122
    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 mystix View Post
    hey @hendricd, just found this in the Examples forum:
    jScout - full-featured javascript/css on-demand package loader

    haven't checked it out yet, but since you're working on JIT, thought it might be good to get a heads up on alternatives.
    Yep. Neat stuff. I saw that last week. Should be releasing JIT soon (Building a demo site that uses all it's goodies). Stay tuned.
    "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. #123
    Ext User
    Join Date
    Mar 2008
    Posts
    29
    Vote Rating
    0
    jlowe is on a distinguished road

      0  

    Default json response

    json response


    Hi Doug,

    I'm refactoring our application to handle many of the repetitive tasks closer to (or within) the framework. One of those repetitive tasks is the decoding of the responseText to JSON.

    I'm considering using ext-basex and modifying it (either the code itself or via runtime extension) to handle this task. It seems that adding a responseJson attribute to the response object, and populating it within createResponseObject(), would do the trick.

    Have you considered this enhancement? Does this seem like the appropriate place to handle this?

    On a related note, is your response object available to Ext.Ajax, or do I need to directly use your Ext.lib.Ajax?

    Thanks,
    -Jeff

  4. #124
    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


    @jlowe -- I had considered that earlier but was concerned about the potential response 'analysis' overhead. Thinking about more tho, now that you've brought it up again, it's certainly doable if the response's Content-Type contains '*/json'? Short of that, an expensive attempt would have to be made to determine if the response was JSON.

    On a related note, is your response object available to Ext.Ajax, or do I need to directly use your Ext.lib.Ajax?
    No, all ext-basex enhancements to Ext.lib.Ajax and the responseObject (thus Ext.data.Connection) are transparent, so it would flow throughout the Ext framework.
    "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.


  5. #125
    Ext User
    Join Date
    Mar 2008
    Posts
    29
    Vote Rating
    0
    jlowe is on a distinguished road

      0  

    Default


    Quote Originally Posted by hendricd View Post
    ... it's certainly doable if the response's Content-Type contains '*/json'? Short of that, an expensive attempt would have to be made to determine if the response was JSON.
    I believe that would be consistent with the XHR object, which populates responseXml if the Content-Type specifies XML. No need for further overhead.

  6. #126
    Ext JS Premium Member stever's Avatar
    Join Date
    Mar 2007
    Posts
    1,406
    Vote Rating
    6
    stever will become famous soon enough stever will become famous soon enough

      0  

    Default


    Quote Originally Posted by jlowe View Post
    I believe that would be consistent with the XHR object, which populates responseXml if the Content-Type specifies XML. No need for further overhead.
    Prototype does this, adding responseJSON to the object.

  7. #127
    Sencha User
    Join Date
    Mar 2007
    Posts
    49
    Vote Rating
    0
    Digital God is on a distinguished road

      0  

    Default


    Hi all, i've problem with ModuleManager.
    It works fine, great solution for my app. But i have problem with charset.
    I've russian text in loaded files, and charset is windows-1252 - it is possible to set utf-8?

  8. #128
    Ext User
    Join Date
    Jul 2008
    Posts
    1
    Vote Rating
    0
    mubenchi is on a distinguished road

      0  

    Default sorry,everyone,where is the demo,?

    sorry,everyone,where is the demo,?


    i want to use Ext.lib.Ajax.onStatus to deal with the situation that the server check session timeout,and give a http 302 or 401 and so on status.could any one give me a help?thanks

  9. #129
    Ext JS Premium Member
    Join Date
    Jul 2007
    Posts
    218
    Vote Rating
    1
    ZooKeeper is on a distinguished road

      0  

    Default


    I'm also greatly in favor of responseJson. It'll be a lifesaver, since I have to decode it in EVERY callback.
    Relying that much on content type is probably not such a good idea, since not everyone can set it.

  10. #130
    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 Digital God View Post
    Hi all, i've problem with ModuleManager.
    It works fine, great solution for my app. But i have problem with charset.
    I've russian text in loaded files, and charset is windows-1252 - it is possible to set utf-8?
    @Digital God -- If you are loading a resource via a standard XHR request(GET, POST) the browser always assumes the response is going to be UTF-8. You server should encode the response as UTF-8 prior to sending it (or save your file with UTF-8 encoding before serving it up).
    "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