Forum /
Ext JS Community Forums 4.x /
Ext: Discussion /
t=this.getTransaction(e)..always null
t=this.getTransaction(e)..always null
Hello Team,
I' am using Json Rpc to get Data from my Web Servize,
My problem is that my callvack function is never Called
and t=this.getTransaction(e) is always null in my ondata function
I'm using RemotingProvider.js under the last ext-4.0-pr2.
here is my code
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../application/extjs/resources/css/ext-all.css" />
<title>Ext JS 4.0 GPP Examples</title>
</head>
<body>
<!--<script type="text/javascript" src="../../application/extjs/ext-base.js"></script>-->
<script type="text/javascript" src="../../application/extjs/ext-core-debug.js"></script>
<script type="text/javascript" src="../../application/extjs/ext-all-debug.js"></script>
<script type="text/javascript" src="ntom4Provider.js"></script>
<script type="text/javascript">
Ext.BLANK_IMAGE_URL = 'extjs/resources/images/default/s.gif';
Ext.app.REMOTING_API = {
"url": "System.jsonrpc.rem",
"type": "ntom4",
"actions": {
"System": [{ "name": "logon", "len": 2 }, { "name": "logoff", "len": 0 }, { "name": "sayHello", "len": 1}]
}
};
// application main entry point
Ext.onReady(function () {
Ext.Direct.addProvider(Ext.app.REMOTING_API);
Ext.QuickTips.init();
function myCallBack(provider, response) {
alert(response);
}
var myLogin = function () {
debugger
alert('a');
System.logon('admin', 'nimda', myCallBack);
}
var windowlogin = Ext.widget('window', {
labelWidth: 80,
title: 'Please Login',
defaultType: 'textfield',
monitorValid: true,
items: [{
fieldLabel: 'Username',
name: 'loginUsername',
allowBlank: false
}, {
fieldLabel: 'Password',
name: 'loginPassword',
inputType: 'password',
allowBlank: false
}, {
xtype: 'button',
name: 'loginButton',
text: 'login',
scope: this,
handler: myLogin
}
]
});
windowlogin.show();
});
</script>
</body>
</html>
in this case myCallBack function is never called!
Thank you very much!
Similar Threads
By Jigesh Shah in forum Ext 1.x: Help & Discussion
Replies: 0
Last Post: 20 May 2010, 4:54 PM
By Jigesh Shah in forum Ext 3.x: Help & Discussion
Replies: 0
Last Post: 19 May 2010, 5:48 PM
By cofin in forum Ext 2.x: Help & Discussion
Replies: 13
Last Post: 20 May 2009, 6:07 AM
By wrhighfield in forum Ext 2.x: Help & Discussion
Replies: 2
Last Post: 3 Mar 2008, 3:13 PM
By ajsoellner in forum Ext 1.x: Help & Discussion
Replies: 0
Last Post: 26 Feb 2007, 4:08 AM
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us