2011-01-18 3 views
0

내 질문은 this과 비슷합니다. (양식 텍스트 입력을 전제로하여 그 값을 얻을 수 있도록)을 얻는 방법은 무엇입니까? 난 당신이 볼 수있는 콜백에 텍스트 입력의 값을 보내려고 오전 :Seaside JQuery 콜백에서 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!'. 

답변

1

당신이 단순히 onClick 이벤트에 serializeThisWithHidden 바인딩을 클릭하면 콜백을 발사합니다. 감사합니다 - 내 머리 :

+0

을 사용 아약스 콜백의 값을 얻으려면! – Hendekagon

1

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!'. 

당신이 그것을 작동

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!'. 
관련 문제