Flex以PHP输入和输出(Flex input and output in PHP)
我想在flex中将输入值打印到PHP。
我的Flex代码...
<mx:HTTPService id="sendReq" result="google(event)" showBusyCursor="true" method="POST" url="http://localhost/search/index.php" useProxy="false"> <mx:request xmlns=""> <keyword> {keyword.text} </keyword> </mx:request> </mx:HTTPService> <mx:TextInput text="" id="keyword" left="130.5" top="89" right="228.5" height="40" fontSize="20" fontWeight="bold" borderStyle="outset" focusThickness="0"/> <mx:Button click="sendReq.send();" id="search" label="search" right="133.5" top="91" height="40" width="75" alpha="1.0" fillAlphas="[1.0, 1.0]"/>
我的PHP代码,
$keyword = $_POST['keyword']; echo $keyword;
但我无法从Flex接收关键字。 任何人都可以在这里找到我无法得到的错误。
I want to print the input value in flex to PHP.
My Flex Code...
<mx:HTTPService id="sendReq" result="google(event)" showBusyCursor="true" method="POST" url="http://localhost/search/index.php" useProxy="false"> <mx:request xmlns=""> <keyword> {keyword.text} </keyword> </mx:request> </mx:HTTPService> <mx:TextInput text="" id="keyword" left="130.5" top="89" right="228.5" height="40" fontSize="20" fontWeight="bold" borderStyle="outset" focusThickness="0"/> <mx:Button click="sendReq.send();" id="search" label="search" right="133.5" top="91" height="40" width="75" alpha="1.0" fillAlphas="[1.0, 1.0]"/>
My PHP code,
$keyword = $_POST['keyword']; echo $keyword;
But i am not able to receive the keyword from Flex. Can anyone find the error down here which i am not able to get.
原文:https://stackoverflow.com/questions/892897
最满意答案
这通常被称为“公开视图”或“公开面板”,并且通常必须带有智能容器视图(通过多个公开子视图正确地增长/收缩/滚动)。 作为API的一部分,没有这样的控制。 大多数开发人员自己动手,而有些则使用第三方开源。
Omni框架有一个这样的控件可以很好地工作(包括“撕下”面板等,如果我没记错的话)。 缺点:它是一个庞大的框架,并且还有很多其他内容。
InspectorKit是另一个。 它更专注(只是控件本身和一个IB插件),但我测试的最后一个版本确实与Interface Builder插件有一些UI问题。
This is most often referred to as a "disclosure view" or "disclosure panel" and usually has to come with an intelligent container view (that grows/shrinks/scrolls correctly with multiple disclosure subviews). There is no such control as part of the API. Most developers roll their own while some use third-party open source.
The Omni Frameworks have one such control that works very well (including "tear-off" panels, etc., if I recall correctly). The drawback: it's a large framework and has a lot of other stuff in it as well.
InspectorKit is another. It's more focused (just the control itself and an IB plugin), but the last incarnation I tested did have a few UI issues with the Interface Builder plugin.
相关问答
更多-
你的理解是正确的,但不完整。 是的,Interface Builder实例化类并将它们序列化为NIB。 但是,这些对象不会自动提供给您的代码。 对于要通过Xcode访问的每个IB对象,您需要声明一个IBOutlet变量。 例: IBOutlet NSWindow* mainWindow; // A Reference to your main window 将此代码放在通过Interface Builder实例化的自定义对象的头文件中(将通用对象拖到类列表中,然后在检查器的“标识”选项卡中,将自定义对象 ...
-
如何在没有Interface Builder的情况下创建Cocoa接口?(How do I create Cocoa interfaces without Interface Builder?)[2022-10-28]
我更喜欢以编程方式创建我的界面。 为什么? 界面构建器更简单快捷。 你不能通过拖放来写错字,而当您手动输入矩形时,您不会得到那些非常方便的Aqua指南。 不要打它 Interface Builder是您的朋友。 让它帮助你 如果您通过在代码中编写UI来坚持浪费自己的时间和精力: 不是基于文档的(通常是基于图书馆的,如邮件,iTunes,iPhoto):创建NSObject的子类,实例化它并使其成为应用程序的委托,并在委托的applicationDidFinishLaunching:方法中创建一个窗口,用视图 ... -
Cordova,Xcode构建:Interface Builder Cocoa touch错误(Cordova, Xcode build: Interface Builder Cocoa touch Error)[2022-06-27]
界面生成器Cocoa Touch Tool是Xcode运行的工具,用于从xib生成编译好的nib。 IBCocoaTouchImageCatalogTool是由Xcode运行以生成资产目录的工具。 这些消息是良性的,只是由于这些工具运行的方式而导致的(没有引导端口)。 Interface Builder Cocoa Touch Tool is the tool that is run by Xcode to produce compiled nibs from your xibs. IBCocoaTouch ... -
可折叠面板(Collapsible Panel)[2024-01-28]
在Windows 10 XAML控件中,列表中没有正式的可折叠面板,但您可以使用自定义控件和一些代码创建自己的控件。以下是有关如何创建展开控件的完整教程: Windows 10扩展控制 教程很长,我无法在答案中提供代码/ XAML :)。 In Windows 10 XAML Controls, there's no official Collapsible Panel in the list, but you can create your own control using custom control ... -
如何使用Interface Builder管理Cocoa应用程序中的多个窗口(How to manage multiple windows in Cocoa apps with Interface Builder)[2023-05-03]
您应该能够在不同类的init方法中使用windows加载nib文件。 例如,在Profile中,您可以执行以下操作: -(id)init { if (self = [super init]) { NSArray *array; BOOL success = [[NSBundle mainBundle] loadNibNamed:@"ProfileWindow" owner: self topLevelObjects:&array]; if (succe ... -
这通常被称为“公开视图”或“公开面板”,并且通常必须带有智能容器视图(通过多个公开子视图正确地增长/收缩/滚动)。 作为API的一部分,没有这样的控制。 大多数开发人员自己动手,而有些则使用第三方开源。 Omni框架有一个这样的控件可以很好地工作(包括“撕下”面板等,如果我没记错的话)。 缺点:它是一个庞大的框架,并且还有很多其他内容。 InspectorKit是另一个。 它更专注(只是控件本身和一个IB插件),但我测试的最后一个版本确实与Interface Builder插件有一些UI问题。 This i ...
-
由于特定的DocType是实现,因此SharePoint 2007以“怪癖模式”运行,这会导致AJAX控制工具箱行为不正常。 (如果您认为您可以更新SharePoint站点母版页以使“AJAX控件工具包正常运行”的“Transitional”文档类型,那么各种SharePoint页面将开始打破) 见下文: 在Sharepoint中实现AJAX 一些AJAX控件工具包控件将正常工作。 他们中的一些人只有在为你感兴趣的控件入侵一些AJAX Control Toolkit源代码并编译一个新的二进制文件后才能工作。 ...
-
InspectorKit是github上的FOSS。 InspectorKit is FOSS on github.
-
可折叠面板+按钮问题(Collapsible panel + button issue)[2023-06-27]
你不能使用:在带有图像元素的伪元素之前。 你必须遵循这种方法:IE中的ExtJS可折叠面板(ExtJS collapsible panel in IE)[2023-05-25]
如果我在'center'区域添加一些东西,它工作正常(在center未定义时也会出现JS错误) Ext.application({ name: 'Fiddle', launch: function() { this.container = new Ext.panel.Panel({ width: '100%', height: 500, title: 'Main', layout ...相关文章
更多- 用PHP写Hadoop的MapReduce程序
- Flex 如何输出日志
- PHP简介
- input 框的自动提示框 错位
- Flex 4 的问题
- php匹配问题
- PHP基础(002)---特殊字符和开发工具
- php面试题二
- Solr PHP support
- php solr 扩展
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)