0

私の質問はこれに似ています-これはjavascriptとなるものをどのように取得しますか(フォームテキスト入力を想定してその値を取得できるようにするため)?テキスト入力の値を、表示されるコールバックに送信しようとしています。

html textInput id: #thingy; 
 onClick: (html jQuery ajax 
  callback:[:x | x inspect]
  value:(html jQuery event currentTarget ????));
   with: 'I am the value the poster wants to see inspected in the above callback block!'.
4

2 に答える 2

1

クリックしたときにコールバックを起動する場合は、onClickイベントでserializeThisWithHiddenをバインドするだけです。

html textInput id: #thingy; 
 onClick: (html jQuery ajax serializeThisWithHidden);
  callback:[:x | x inspect];
  with: 'I am the value the poster wants to see inspected in the above callback block!'.

私の頭から:)

于 2011-01-18T09:43:21.067 に答える
1

使用する ajax コールバックで値を取得するには

html textInput id: #thingy; 
        onClick: (html jQuery ajax 
        callback:[:x | x inspect] value: html jQuery new value);
        with: 'I am the value the poster wants to see inspected in the above callback block!'.
于 2011-01-19T07:40:00.027 に答える