GIGJ.COM
welcome to my space
X
Welcome to:gigj.com
Search:  
NAVIGATION: Home >>
IE6 Problem: form.el.mask("testing...", "x-mask-loading");
Published by: webmaster 2010-03-18

  • form.el.mask gives unexpected results in IE6

    try this script.

    nothing is masked.


    Test = function(){
    var dialog, form;
    return{
    Init:function(){
    Ext.QuickTips.init();
    Ext.form.Field.prototype.msgTarget = 'side';

    form = new Ext.Form({
    //labelAlign: 'right',
    labelWidth: 0,
    buttonAlign: 'left',
    url:'test.php' (http://extjs.com/forum/'test.php'),
    baseParams:{module:'checks_and_radios'}
    });
    form.fieldset(
    {legend: "Checks"},
    new Ext.form.Checkbox({
    boxLabel: "check 1",
    name: 'checks',
    inputValue: '1',
    dataIndex: 'c1'
    }),
    new Ext.form.Checkbox({
    boxLabel: "check 2",
    name: 'checks',
    inputValue: '2',
    dataIndex: 'c2'
    }),
    new Ext.form.Checkbox({
    boxLabel: "check 3",
    name: 'checks',
    inputValue: '3',
    dataIndex: 'c3'
    }),
    new Ext.form.Checkbox({
    boxLabel: "check 4",
    name: 'checks',
    inputValue: '4',
    dataIndex: 'c4'
    })
    );
    form.fieldset(
    {legend: "Radios"},
    new Ext.form.Radio({
    boxLabel: "radio 1",
    name: 'radios',
    inputValue: '1',
    checked: true,
    dataIndex: 'r1'
    }),
    new Ext.form.Radio({
    boxLabel: "radio 2",
    name: 'radios',
    inputValue: '2',
    dataIndex: 'r2'
    }),
    new Ext.form.Radio({
    boxLabel: "radio 3",
    name: 'radios',
    inputValue: '3',
    dataIndex: 'r3'
    })
    );
    var f=form.fieldset(
    {legend: "Grid"}
    );
    form.end();
    var ds = new Ext.data.Store({
    reader: new Ext.data.JsonReader({root: 'test'},[
    {name: 'test1', mapping: 'test1'},
    {name: 'test2', mapping: 'test2'}
    IE6 Problem: form.el.mask(testing, x-mask-loading ::
    IE6 Problem: form.el.mask(testing, x-mask-loading); Ext 1.x: Bugs
    http://extjs.com/forum/showthread.php?p=26296
    HOME
    Ext 1.x: Bugs [Archive] - Page 3 - Ext JS Forums::
    [Archive] Page 3 Report bugs in Ext JS version 1.x IE6 Problem: form.el.mask(testing, x-mask-loading); Ext.tree.MultiSelectionModel selectNext()/selectPrevious
    http://extjs.com/forum/archive/index.php/f-3-p-3.html?pda=1
    HOME
    ])
    });
    var cm = new Ext.grid.ColumnModel([
    {header: "Test 1", dataIndex: 'test1', width: 200, sortable: true},
    {header: "Test 2", dataIndex: 'test2', width: 200, sortable: true}
    ]);
    cm.defaultSortable = true;
    form.addButton('Reset', function(){
    //form.load({params:{action:'get'}, waitMsg:'Loading...'});
    Extending Ext.nd Alpha 2 to support categorized views ::
    [Archive] Extending Ext.nd Alpha 2 to support categorized views Ext.nd for Notes/Domino The problem was due to the fact that I modified the form Ext.nd.
    http://extjs.com/forum/archive/index.php/t-9495.html?pda=1
    HOME
    IE6 Problem: form.el.mask(testing, x-mask-loading ::
    IE6 Problem: form.el.mask(testing, x-mask-loading); Ext 1.x: Bugs In IE6 the message displays but the mask pops up below the form.
    http://www.extjs.com/forum/showthread.php?p=26125
    HOME
    form.load({
    params:{action:'get'},
    waitMsg:'Loading...',
    success:function(a,b){
    var r=ds.reader.read(b.response);
    ds.loadRecords(r,{},true);
    },
    scope:this
    });
    }, form);
    form.addButton('Save', function(){
    var r=ds.getRange();
    debugger;
    form.submit({params:{action:'put'}, waitMsg:'Saving...'});
    }, form);
    form.render('formId');
    var g = new Ext.grid.Grid(f.getEl().child('div'), {
    ds: ds,
    cm: cm,
    selModel: new Ext.grid.RowSelectionModel(),
    enableColLock:true
    });
    g.render();

    form.el.mask("testing...", "x-mask-loading");
    }
    }
    }();


  • I am also experiencing this problem using IE7. It works as expected in FF. I have tried again after updating to 1.0.1, but the problem still exists.

    Once I set waitMsgTarget = true to get it to use the loadMask, the problem occurs. If I don't set this (or set it to false) to get it to use the progress dialog, it works as expected.


  • eh? might have to check it in IE itself using the IE webdeveloper plugin... i'm thinking IE might have appended the mask just after the opening tag


  • Well be default the form is in a div and the mask divs are siblings.
    I wrapped that div in another div and moved the mask out a level.
    Exact same results.

    Oh, I tried it in IE7
    The mask displays perfectly. But once it is unmasked the buttons and fieldsets and labels dissappear with it.

    Can't we just make everyone use FF in this world?

    EDIT: I can host this example if you want but I'll will have to put your latest svn up also (making it available to any interested parties). Is that ok?


  • Here is a simple example that uses the built in masking from the form.


    Test = function(){
    var dialog, form;
    return{
    Init:function(){
    form = new Ext.Form({
    labelWidth: 0,
    buttonAlign: 'left',
    url:'none.php' (http://extjs.com/forum/'none.php'),
    waitMsgTarget:true
    });
    form.fieldset({legend: "Checks"},
    new Ext.form.Checkbox({
    boxLabel: "check 1",
    name: 'checks',
    inputValue: '1',
    dataIndex: 'c1'
    })
    );
    form.fieldset({legend: "Radios"},
    new Ext.form.Radio({
    boxLabel: "radio 1",
    name: 'radios',
    inputValue: '1',
    checked: true,
    dataIndex: 'r1'
    }),
    new Ext.form.Radio({
    boxLabel: "radio 2",
    name: 'radios',
    inputValue: '2',
    dataIndex: 'r2'
    })
    );
    form.end();
    form.addButton('Reset', function(){form.load({waitMsg:'Loading...'});}, form);
    form.addButton('Save', function(){form.submit({waitMsg:'Saving...'});}, form);
    form.render('formId');
    }
    }
    }();
    Ext.onReady(Test.Init, Test, true);


    In FF everything is masked, and the message pops displays as expected.
    In IE6 the message displays but the mask pops up below the form.

    EDIT: this requires the latest SVN


  • I'm trying to use the built in mask when calling form.load({waitMsg:'Loading...'}); when waitMsgTarget is set to true. You should be able to reproduce this with the following code (modified from the 4th post in this thread to minimize code):



    Test










  • It's very possible that a form doesn't have dimensions in IE because it isn't a visual element. I wouldn't be shocked. Can you try wrapping the form in a div and seeing if you have a different outcome?


  • I am still experiencing this problem. I have gotten the latest from SVN. I am using ext-all.css. I have tried setting zoom:1 on the form field, but it didn't help (or were you talking about a different element?).

    To clarify, when waitMsgTarget is set to true and the form is loading, I see the form fields and the loading indicator. However, in IE the fields disappear once the loading indicator disappears. In FF, it works as expected. If I set waitMsgTarget to false, it works as expected.

    Has anyone been able to resolve this problem? Can anyone think of something else I can try or give advice on how to debug this issue?


  • The 2nd example posted above seems to mask fine in IE7. I have done nothing special to it. I am still trying to get the items to reappear though. Maybe it is an indexing problem. I suppose I better start using the EXT debugger.

    EDIT: Walking through the EXT inspector seems to make the objects reappear. Wierd. Oh I am using the -debug file. Let me try it with out.

    EDIT: No difference when using the ext-all.js Wouldn't figure. In IE7 the objects start reappearing as I click the checkbox and radio boxes. Buttons sometimes show.


  • Appended to the end of the inside of the form

    FireBug Inspector

    -
    +
    +

    +


  • Im using ext-all.css


  • ok, i'm out of ideas... have to refer this to the founder. ;)

    btw, have you tried masking a different element?


  • Im having a simaler problem in ie7 with mask()

    var theForm = Ext.get('userInfoForm');
    form.el.mask("Loading...", "x-mask-loading");

    If I use this on my form all of the fields are gone, if I rem out my mask stuff the form displays correctly.

    BTW - I do not see the mask at all, it just wipes out the fields, it also never seams to unmask, even though I call it, and it works in ff.

    EDIT: useing waitMsgTarget= true, instead of a manual mask works in ff, but does nothing at all in ie. waitMsgTarget does not blank out the fields in ie, so Ill use that until a fix is in place.


  • its is warpped in a div, the whole form:




  • What are you trying to mask - the form element or a wrapper element?


  • Hi just wanted to say im having the same issue, on IE7 though,
    im trying to mask the that surrounds the form, and it looks like the mask is under all the form elements on IE7, further testing showed that in the ext examples, the xml form example also has the same problem under ie7.

    is that example working ok for the rest of you?

    Thanks,
    Rob.


  • don't have SVN access, but is the mask being appended before or after the in the DOM?


  • Oh, I tried it in IE7
    The mask displays perfectly. But once it is unmasked the buttons and fieldsets and labels dissappear with it.


    Well i would be interested to see how you got it to wor on IE7, because it doesnt for me even if i warp it in another div.
    on a side note, this should fix your dissappearing problems:

    var box = Ext.get('maindiv');
    box.applyStyles({display:"block"});

    Rob.


  • Ext Debug Console & Inspector reports the same thing in IE6


  • You will need to set your form to display:block or mask a different element.


  • I tacked this in front of the mask

    form.el.applyStyles({display:"block"});

    I am still getting the same results.

    BasicForm.beforeAction uses this mask code. And I find that it does not work in IE6.
    Was just trying to narrow the problem down. In IE the mask appears to sit behind all of the form elements.


  • Are you including core.css (or ext-all.css)?

    For the IE problems, try setting zoom:1 on the element.





  • Nortel Unveils Vision, Strategy for Israeli High-Performance Net
    Busy Friday Leads to Strong Close for Net Stocks

    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about IE6 Problem: form.el.mask("testing...", "x-mask-loading"); , Please add it free.
  • unable to connect
  • cannot enter normal startup mode
  • outlook using localhost loopback under rules wizard
  • problems connecting to the internet
  • firewall netgear sc101 icmp issue
  • outpost 3 0 and nod32
  • please help lost right click on file outpost scanner
  • can t run update
  • 3 5 protowall stay with 3 0 blockpost
  • inbound tcp problem
  • pro3 5 and tau 1 7
  • outpost3 5 slowing down ool boost
  • op 3 0 database crashes every day

  • ask to component control
  • internet explorer won t shut down
  • components have changed
  • outppost issue slow down
  • exceptions for logger
  • internet activity when modem is off how could that be
  • outpost tauscan useful
  • spyware found in ms age of empires iii can this be true
  • nuke attack not going away from 192 168 153 1
  • outpost failing on boot rpc problem
  • op pro antispyware goldeneye 3 01
  • activesync 4 1 makes hundreds of outbound connections
  • sigh yet another bug in ver 3 5 latest er
  • need help with unblocking my game
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 gigj.com        Site made:CFZ