Ext JS - Learning Center

Tutorial talk:Introduction to Ext 2.0

From Learn About the Ext JavaScript Library

Jump to: navigation, search

I just started going through this tutorial - seems very cool. One of the first things to try, though, is

myDiv.highlight();

It follows a link to the API documentation for Element. I couldn't find a reference in the documentation to "highlight." I believe it should be in the public method section of the element class. Is the documentation in error? am I looking in the wrong place? Either way, this might not be the best example for the tutorial since there seems to be a mis-connect.

---

highlight is actually listed in the Fx class in the docs, but it is applied to Element at runtime. I will add a section at the top of the Element docs listing the supported Fx methods as this is a frequent question. -Brian

Cross-browser problem

In the example I did the following in ExtStart.js :

Ext.onReady(function() {

  Ext.get('myButton').on('click',function() {
    var myDiv = Ext.get('myDiv');
    myDiv.center();
    });

});

Firefox 2.0.11 - DIV is centered but positioned below the button

IE 6.0 - DIV is centered but positioned directly across from the button

Not cross-browser compatible ?????????

should be clarified that last part with ajax all code should be under htdocs

both the php *and* the extjs stuff should be in htdocs apache. lost 3 hours for that..

  • This page was last modified on 30 January 2009, at 01:25.
  • This page has been accessed 30,549 times.