⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmlrpctest.xml

📁 ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.
💻 XML
字号:
<Application>	<Window caption="XML-RPC Test" width="400" height="300">		<Command id="send-command" shortcut="Alt+S"/>		<SplitPane orientation="vertical" left="0" right="0" top="0" bottom="20">			<Component>				<TextArea id="js-source" left="0" top="0" right="90" bottom="0">["Hello World", 0, true]</TextArea>				<Button command="#send-command" top="5" right="5" width="80" height="24" text="Send"					mnemonic="s"/>			</Component>			<TextArea id="result" left="0" top="0" right="85" bottom="0" readOnly="true"/>		</SplitPane>		<StatusBar left="0" right="0" bottom="0">			<StatusBarPanel left="0" right="100" id="status"/>			<StatusBarPanel width="98" right="0">				<UndeterminedProgressBar id="pb" left="0" right="0" top="0" bottom="0" border="0"					visible="false" backColor="transparent"/>			</StatusBarPanel>		</StatusBar>	</Window>	<Resources>		<Script><![CDATA[function XmlRpcTest(){	var sendCommand = application.getComponentById( "send-command" );	var jsSource = application.getComponentById( "js-source" );	var result= application.getComponentById( "result" );	sendCommand.addEventListener( "execute", this.send, this );	this._xmlRpc = new BiXmlRpc;	this._xmlRpc.useService( XmlRpcTest.XML_RPC_URI );	this._xmlRpc.addEventListener( "callcomplete", this.onCallComplete, this );}XmlRpcTest.XML_RPC_URI = "../../services/xmlrpctest.aspx";//XmlRpcTest.XML_RPC_URI = new BiUri( "http://www.bindows.net/services/xmlrpctest.aspx" );_p = XmlRpcTest.prototype;_p.send = function (){	var sendCommand = application.getComponentById( "send-command" );	var jsSource = application.getComponentById( "js-source" );	var result = application.getComponentById( "result" );	var status = application.getComponentById( "status" );	var pb = application.getComponentById( "pb" );	var data = eval( "data = " + jsSource.getText() );	sendCommand.setEnabled( false );	jsSource.setEnabled( false );	this._startTime = new Date;	status.setText( "Loading..." );	pb.setVisible( true );	pb.start();	this._xmlRpc.callMethod( "echo", data );};_p.onCallComplete = function ( e ){	var sendCommand = application.getComponentById( "send-command" );	var jsSource = application.getComponentById( "js-source" );	var result= application.getComponentById( "result" );	var status = application.getComponentById( "status" );	var pb = application.getComponentById( "pb" );	try {		var res = this._xmlRpc.getResult();	}	catch ( ex )	{		res = ex.getFaultString();	}	finally	{		status.setText( "Loaded in " + (new Date - this._startTime) + "ms" );		result.setText( res );		sendCommand.setEnabled( true );		jsSource.setEnabled( true );		pb.stop();		pb.setVisible( false );	}};XmlRpcTest.main = function (){	new XmlRpcTest;};		]]></Script>	</Resources></Application>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -