PDA

View Full Version : how to display html from php output



goldalworming
24 Jun 2010, 8:40 PM
hi i'm beginner of extjs or sencha

i tried to modified grouptabs
(examples/grouptabs/grouptabs.html)

i want to add new tab in subcriptions that sourced from a php file name 'test.php'
<?php
print 'hi...i'm from test.php';
?>

but i tried to not use autoload...i want when we click the tab, extjs ajax.request the php and display it...

i tried to use this but still no success

Ext.Ajax.request({
url:'tes.php',
method:'GET',
success: function(response,request){
var data = Ext.decode(response.responseText);
store.loadData(data);
}
});

how to do it
please help..

jay@moduscreate.com
27 Jun 2010, 10:11 AM
I've had no issues using autoLoad. Have you performed any debugging?

mankz
27 Jun 2010, 10:41 AM
Your ajax URL points to "tes.php" but your test page is test.php..?