Hi,<div><br></div><div>I&#39;ve been using WATextInputTag&gt;&gt;exampleText in my Seaside 3.0 project. However I&#39;ve noticed that it&#39;s been deprecated with the message:</div><div>&#39;Use an appropriate Javascript library instead.&#39;.</div>
<div><br></div><div>I&#39;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&#39;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: &#39;color: #aaa&#39;;</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: &#39;focus&#39; do: (html jQuery this value:&#39;&#39;; cssAt: &#39;color&#39; put: nil)) </div>
<div><br></div><div>This appears to work, but isn&#39;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>