作者mosluce ()
看板Flash
標題Re: [問題] FLEX Submit Form to PHP by using array
時間Thu Aug 6 14:54:18 2009
感謝大大推文提示!!!
目的:傳一個值可以讓CakePHP 的 $this->data 接收
做法:
private function resultHandler(event:ResultEvent):void {
var param:Object = new Object();
param["data[a][b]"]=456;
srv.send(param);
}
如此一來PHP吃到的如下:
Array{
[data]=>Array{
[a]=>Array=>{
[b]=>456
}
}
}
但是...
火狐 OK
IE 串流錯誤...
測試網址:
https://www.goood.tw/klcc-system-ui/main.html
追加http:
http://www.goood.tw/klcc-system-ui/main.html
另外,在 localhost 一律不行...
看來要走的路還很遠啊
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.85.58.90
※ 編輯: mosluce 來自: 219.85.58.90 (08/06 15:02)
※ 編輯: mosluce 來自: 219.85.58.90 (08/06 15:12)
※ 編輯: mosluce 來自: 219.85.58.90 (08/06 15:13)
→ aitch:試試看cpamf(CakePHP plugin)並透過RemoteObject的方式丟 08/06 15:16
→ mosluce:恩 我翻翻看文件>"< 08/06 15:19
※ 編輯: mosluce 來自: 219.85.58.90 (08/06 15:20)
→ mosluce:mydomain.com/cpamf/gateway 有顯示訊息 是OK的 08/06 16:46
→ mosluce:但是到Browser那邊可以抓到Class卻無法抓到action 08/06 16:47
→ mosluce:CakePHP使用1.2 ,cpamf使用0.10,0.11,0.12都用過 08/06 16:48