Hi,<div><br></div><div>I've been using WATextInputTag>>exampleText in my Seaside 3.0 project. However I've noticed that it's been deprecated with the message:</div><div>'Use an appropriate Javascript library instead.'.</div>
<div><br></div><div>I'm using jQuery libraries in my project so I set about trying to achieve the same effect with jQuery. After a few less than promising attempts I've ended up with:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>input := html textInput on: #testInput of: self.</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>self testInput isEmptyOrNil ifTrue: [</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>input </div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>style: 'color: #aaa';</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>value: self exampleText;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>script:(html jQuery this one: 'focus' do: (html jQuery this value:''; cssAt: 'color' put: nil)) </div>
<div><br></div><div>This appears to work, but isn't nearly as tidy as using the deprecated #exampleText: api as:</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>html textInput</div>
<div><span class="Apple-tab-span" style="white-space: pre; ">        </span><span class="Apple-tab-span" style="white-space: pre; ">        </span>on #testInput of: self;</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><span class="Apple-tab-span" style="white-space: pre; ">        </span>exampleText: self exampleText.</div>
<div><br></div><div>Some questions arise from this exercise:</div><div> 1) Is there a plan to provide an equivalent to #exampleText: for Seaside 3.0?</div><div> 2) What was wrong with the original implementation?</div><div>
3) Is there a better way of achieving a similar result in jQuery?</div><div><br></div><div>Thanks</div><div><br></div><div>Nick</div><div><br></div><div><br></div><div><br></div>