ExtJs update DIV content with HTML data

Updating the content of a DIV tag or anything else is really easy in ExtJs. All you need is get a reference to the element by its Id using the Ext.fly() method and then just use the update method. Lets say you have div tag in your HTML content say "myExample"

<div id="myExample">

Now use the Ext.fly() method as show here

var myHtml = "Updating some content using <b>ExtJs</b>";

No comments:

Post a Comment

NO JUNK, Please try to keep this clean and related to the topic at hand.
Comments are for users to ask questions, collaborate or improve on existing.