所有網頁 圖片 影片 地圖 新聞 網誌搜尋 Gmail 更多 »
最近造訪的群組 | 說明 | 登入
Google 網上論壇首頁
Ajax::observeField deletes div contents; Ajax::link works fine. 1.2.5
目前本群組有太多主題設為優先顯示。要優先顯示這個主題,請將其他主題的這個選項取消。
在處理您的要求時發生錯誤。請再試一次。
標幟
  1 則留言 - 全部摺疊  -  將全文翻譯為 已翻譯 (查看所有原文)
您要留言的群組是 Usenet 群組。在此群組留言,網際網路上的任何使用者將可以看到您的電郵地址。
您的回覆郵件尚未寄出。
您已成功留言
 
寄件人:
收件人:
副本:
後續追蹤對象:
新增副本 | 新增後續追蹤對象 | 編輯主旨
主旨:
驗證:
為了確認,請輸入您在以下圖片中看到的字元,或輸入您按下存取圖示時所聽到的號碼。 注意聽並輸入您聽到的號碼
 
Matthew Franklin  
檢視個人資料   翻譯為 已翻譯 (查看原文)
 更多選項 11月6日, 上午10時35分
寄件人: Matthew Franklin <matthew.frank...@gmail.com>
日期: Thu, 5 Nov 2009 18:35:28 -0800 (PST)
當地時間: 2009年11月6日(星期五) 上午10時35分
主旨: Ajax::observeField deletes div contents; Ajax::link works fine. 1.2.5
I'm attempting to replace the contents of a div, "stupidtest", using
ajax->observeField.  The event is observed, the post occurs, but the
contents of the div are simply destroyed.  The same arguments sent to
ajax->link work correctly.

In other words, the second line clears the div contents, and the third
one sets them appropriately:

$options = array('update'=>'stupidtest','url'=>'/decks/
stupid_test','frequency'=>1);
echo $ajax->observeField('DeckName', $options);
echo $ajax->link('Manual Ajax', '/decks/stupid_test', array
('update'=>'stupidtest'));

This occurs on both my local xampp setup as well as a remote LAMP
environment, on CakePHP 1.2.5.  Perhaps I'm missing the basic concept
of how observeField functions?

In case it's not something simple, I've pasted in my stripped-down
test case.  I created it in the hopes it'd help me figure out what's
going wrong, but no luck so far!

Full controller source: http://bin.cakephp.org/view/2126548994
Full view (ajax_test.ctp) source: http://bin.cakephp.org/view/1853385069
Full view (stupid_test.ctp) source: http://bin.cakephp.org/view/404720761

Much obliged to anyone who helps me figure out my error with
observeField.  I read a number of examples, but was unable to see
where mine differs.


    回覆    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
無其他留言
« 返回討論主題 « 較新的主題     較舊的主題 »

建立群組 - Google 網上論壇 - Google 首頁 - 服務條款 - 隱私權政策
©2009 Google