1. #1
    Sencha Premium Member
    Join Date
    Oct 2007
    Posts
    121
    Vote Rating
    1
    twosouth is on a distinguished road

      0  

    Default Ext.getDom works in ff but not in ie7 issue

    Ext.getDom works in ff but not in ie7 issue


    Hey All,

    I am using this bit of code to load data after a call to the server.

    JS...

    Ext.getDom('currLoc').textContent = 'some data...';

    HTML...
    <td width="230" id="currLoc" class="constants-red"></td>

    The Ext.getDom works great if FF but I can't seem to get it to work in IE7. I am just updating text in a table.

    Any thoughts?

    Thanks,
    Scott

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    getDom works perfectly in IE:
    http://www.webmasterworld.com/forum91/5016.htm

  3. #3
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Instead of using getDom, you should use Ext.fly('currLoc').update('some text');

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2007
    Posts
    121
    Vote Rating
    1
    twosouth is on a distinguished road

      0  

    Default


    Thanks J,

    I had the same problem with Ext.fly...and sad to say I cheated and went with the following:

    document.getElementById('x-form-el-newNextAvailable').innerHTML = nextAvailable;

    which ended up placing the data as I'd hoped but wrecked the style by placing it a few pixels to high so that the horizontal label is lower than the data...sheesh.

    I'm sure I've missed something very basic though I don't know what just yet.

    Scott

  5. #5
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Ext.onReady

  6. #6
    Ext User
    Join Date
    Jun 2008
    Posts
    94
    Vote Rating
    0
    peacock is on a distinguished road

      0  

    Default


    ie not has textContent
    use innerText