Search Type: Posts; User: tomcheng76

Page 1 of 5 1 2 3 4

Search: Search took 0.05 seconds.

  1. override handlerFailure function???


    handleFailure : function(response, e){
    this.transId = false;
    var options = response.argument.options;
    response.argument =...
  2. yes..better way is to something like this


    toolbar.add({
    text: 'File',
    cls: 'mybtncls',
    ...
  3. here is the default css.


    .x-toolbar .x-btn-left{
    background:none;
    }
    .x-toolbar .x-btn-right{
    background:none;
    }
    .x-toolbar .x-btn-center{
  4. Replies
    3
    Views
    1,225
    If you register any windows to another manager (windowgroup). u have to use that windowgroup getby function to find those windows.
  5. Replies
    3
    Views
    1,225
    Ext.WindowMgr.getBy
    http://www.extjs.com/deploy/ext-2.2/docs/?class=Ext.WindowMgr


    var hiddenwins = Ext.WindowMgr.getBy(function(win){
    if (win.hidden){
    return true;
    } else {
    ...
  6. Replies
    279
    Views
    179,271
    Is this better?


    insert: function(index, records) {
    //find reference for snapshot first
    var refindex = -1, refrecord = null;
    if (index > 0){
    refindex =...
  7. Replies
    279
    Views
    179,271
    Thanks. this is helpful.
  8. Replies
    279
    Views
    179,271
    Would u mind pointing me to that thread?

    Once more question. What is the usage of this.snapshot? Thanks in advance.
  9. Replies
    279
    Views
    179,271
    great plugin, thanks.

    Should this.allData/this.snapshot use insert (same as this.data) instead of addAll in the insert function?

    As insert function is supplying an index argument and addAll...
  10. are you using version 2.3?
    or you may need this


    Ext.override(Ext.menu.Menu, {
    autoWidth : function(){
    var ua = navigator.userAgent.toLowerCase();
    ...
  11. try this

    Ext.apply(Ext, {
    getCmpByType : function(type){
    var r = [], ri = -1;
    Ext.ComponentMgr.all.each(function(item){
    if...
  12. i guess x-btn-focus is what css what you are looking for.
  13. Replies
    2
    Views
    1,044
    I experienced "Slow script error" in IE when i close the browser which is having a big ext js application.

    following the idea of here, here is my override

    Ext.apply(Ext, {
    destroy :...
  14. thanks condor
    this solve my problem


    select : function(path, root, type){
    if(!root || root == document){
    root = document;
    }
    ...
  15. Ext.DomQuery.select("book[@grp='type1,type2']", document);
    Error parsing selector, parsing failed at "[@grp='type1"

    Is there a way to escape the comma?
    Thanks in advance.
  16. Replies
    3
    Views
    1,060
    data is config of JsonStore, and you need object, so do a JSON decode.

    var myStore = new Ext.data.JsonStore({
    data : Ext.decode(json),
    reader: new Ext.data.JsonReader({
    ...
  17. it is quite difficult to find the available type.
    Actually it is in the Ext.data.Field
    http://extjs.com/deploy/dev/docs/source/DataField.html#cfg-Ext.data.Field-type
  18. sorry about that you are using form.submit but not Ajax
    so XHR show nothings
    you may see this page
    http://www.extjs.com/deploy/ext-2.2.1/docs/?class=Ext.form.BasicForm
    and the doAction method....
  19. @animal, yup, setContentType depends on whether he uses responseXML or responseText
    example in the link is a JSON one ~~

    @basha_ahmad you better set breakpoint in success and failure return of...
  20. that seems correct, did u use firebug to make sure this.add didn't run two times?
    also, why dont you put the grid into panel's items ??
  21. Replies
    8
    Views
    1,482
    ohoh, it seems that if the second parameter is a object (case 1), that one actually is overrides, hope some core developers help ~~


    return function(sb, sp, overrides){
    ...
  22. Replies
    8
    Views
    1,482
    The third parameter (overrides) of Ext.extend is optional.
    # overrides
    A literal with members which are copied into the subclass's prototype, and are therefore shared among all instances of the new...
  23. i think in the jsp you have to use a response..like this one


    response.setContentType("text/xml");
    response.setHeader("Cache-Control", "no-cache");

    more in...
  24. Replies
    5
    Views
    1,621
    you mean this config??
    maxLength : Number
    Maximum input field length allowed (defaults to Number.MAX_VALUE)
  25. Replies
    3
    Views
    2,437
    http://www.extjs.com/deploy/ext-2.2.1/docs/
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4