PDA

View Full Version : How to call the PHP class function in ExtJs button handler



DineshGudikandula
30 Oct 2012, 2:36 AM
Hi all...
I have a problem...
In ExtJs button component have handler..In this handler i want call the PHP class function code like...
Myscript.js:
xtype :'button',
text:'Click',
handler:function( btn ){
//some js code..
//here i want handle the php function...
//some code
}
MyPhp.php:
<?php echo Myclass::getValues ($this->product); ?>
Pls help...

mitchellsimoens
1 Nov 2012, 9:07 AM
Do an Ajax request

Tim Toady
1 Nov 2012, 9:14 AM
Do an Ajax request
lol

Also, make sure you use Ext's methods to do so
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.Ajax (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.Ajax)

DineshGudikandula
5 Nov 2012, 12:33 AM
ThQ............