Results 1 to 3 of 3

Thread: [SOLVED]Internet Explorer cannon open the Internet site

  1. #1

    Exclamation [SOLVED]Internet Explorer cannon open the Internet site

    Hi, I am trying to render a basic grid with GridPanel. It works perfectly fine in FF, but when I view it in IE7, it fails and give me the following message:

    Internet Explorer cannot open the Internect site
    http://blah/blah/

    Operation aborted.

    I tried suggestions here without a luck. The following is my code, I found it fails on this line:
    var grid = new Ext.grid.GridPanel({ .....

    but I am not seeing anything wrong with this code tho, some people in another thread was talking about the DOM got changed before reload, which I am not sure. can someone take a look and give me some hint on this?

    function renderUsersTable(users)
    {
    // users = [['jack', '[email protected]','3333333333','admin']];
    var usersReader = new Ext.data.ArrayReader({}, [
    {name: 'name'},
    {name: 'email'},
    {name: 'phone'},
    {name: 'role'}
    ]);

    // this code is cause problem in IE
    var grid = new Ext.grid.GridPanel({
    store: new Ext.data.Store({
    data: users,
    reader: usersReader
    }),
    columns: [
    {header: 'Name', width: 300, sortable: true, dataIndex: 'name'},
    {header: 'Email', width: 220, sortable: true, dataIndex: 'email'},
    {header: 'Phone', width: 220, sortable: true, dataIndex: 'phone'},
    {header: 'Role', width: 180, sortable: true, dataIndex: 'role'}
    ],
    renderTo: 'userstbl_content',
    title: 'GridIron Users',
    width: 900,
    autoHeight: true,
    frame: true
    });

    grid.getSelectionModel().selectFirstRow();
    }

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,250

    Default

    Is your code wrapped in an onReady block? If not, it needs to be.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3

    Default

    Thank you so much! It solved my problem, and I learned something important!!
    Ext js team: have a great great thanksgiving weekend!


    Quote Originally Posted by evant View Post
    Is your code wrapped in an onReady block? If not, it needs to be.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •