<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 8/3/10 11:29 PM, Andreas Raab wrote:
<blockquote cite="mid:4C5908C4.3010204@gmx.de" type="cite">On 8/3/2010
11:14 PM, Lukas Renggli wrote:
  <br>
  <blockquote type="cite">You can copy and paste that example, there
are no other dependencies
    <br>
but the inst-var 'current' that you should initialize with a number.
    <br>
  </blockquote>
  <br>
I think he might be looking for this:
  <br>
  <br>
<a class="moz-txt-link-freetext" href="http://book.seaside.st/book/getting-started/pharo-squeak/first-component/registering">http://book.seaside.st/book/getting-started/pharo-squeak/first-component/registering</a>
  <br>
  <br>
I ran into the same issue; it is decided non-obvious that the creation
of a component on the welcome page "magically" works but that there's
no trace in the resulting code that reveals what one must do to to
perform the equivalent action in code somewhere (i.e., if you create
the very same class by hand "it doesn't work").
  <br>
  <br>
I do understand why this stuff works the way it works but I think
clarity could be dramatically improved by having something that makes
the necessary registration explicit. Could be as simple as having the
registration in the class initialization of components created on the
welcome page - I certainly would've found that.
  <br>
  <br>
Cheers,
  <br>
&nbsp; - Andreas
  <br>
  <br>
</blockquote>
<br>
<div class="moz-text-flowed"
 style="font-family: -moz-fixed; font-size: 14px;" lang="x-western">I'm
afraid I did that. <span class="moz-smiley-s2" title=":-("><span>:-(</span></span>
<br>
<br>
WAAdmin register: WebCounter asApplicationAt: 'webcounter'.<br>
WAAdmin register: ExampleJQSlider asApplicationAt: 'exampleslider'.<br>
<br>
WebCounter initialize.<br>
ExampleJQSlider initialize.<br>
<br>
the webcounter app works.<br>
the exampleslider app has the error:<br>
<br>
<br>
<br>
WAToolDecoration(Object)&gt;&gt;doesNotUnderstand: #setOwner:
<br>
<br>
fileout:
<br>
<br>
'From Squeak4.1 of 17 April 2010 [latest update: #9957] on 3 August
2010 at 11:48:53 pm'!
<br>
JQSlider subclass: #ExampleJQSlider
<br>
&nbsp;&nbsp;&nbsp; instanceVariableNames: 'count current'
<br>
&nbsp;&nbsp;&nbsp; classVariableNames: ''
<br>
&nbsp;&nbsp;&nbsp; poolDictionaries: ''
<br>
&nbsp;&nbsp;&nbsp; category: 'JQuery-Examples'!
<br>
<br>
!ExampleJQSlider methodsFor: 'initialization' stamp: 'LDE 8/3/2010
21:50'!
<br>
initialize
<br>
&nbsp;&nbsp; super initialize.
<br>
&nbsp;&nbsp; current := 50! !
<br>
<br>
<br>
!ExampleJQSlider methodsFor: 'rendering' stamp: 'LDE 8/3/2010 23:30'!
<br>
renderContentOn: html
<br>
&nbsp;&nbsp;&nbsp; html div script: (html jQuery new slider
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value: current;
<br>
&nbsp;&nbsp;&nbsp;&nbsp; onChange: (html jQuery ajax
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callback: [ :value | current := value asNumber ]
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value: (html jQuery this slider getValue)))
<br>
! !
<br>
<br>
"-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "!
<br>
<br>
ExampleJQSlider class
<br>
&nbsp;&nbsp;&nbsp; instanceVariableNames: ''!
<br>
<br>
!ExampleJQSlider class methodsFor: 'class initialization' stamp: 'LDE
8/3/2010 23:31'!
<br>
initialize
<br>
&nbsp;&nbsp;&nbsp; WAAdmin register: self asApplicationAt: 'exampleslider'! !
<br>
<br>
<br>
ExampleJQSlider initialize!
<br>
<br>
<br>
<br>
<br>
<br>
On 8/3/10 11:14 PM, Lukas Renggli wrote:
<br>
<blockquote type="cite" style="color: rgb(0, 0, 0);">You can copy and
paste that example, there are no other dependencies
  <br>
but the inst-var 'current' that you should initialize with a number.
  <br>
  <br>
Lukaa
  <br>
  <br>
On Wednesday, August 4, 2010, Lawson English<a
 class="moz-txt-link-rfc2396E" href="mailto:lenglish5@cox.net">&lt;lenglish5@cox.net&gt;</a>&nbsp;
wrote:
  <br>
&nbsp;&nbsp;
  <blockquote type="cite" style="color: rgb(0, 0, 0);">can anyone point
to me a REALLY simple transitional example on how to implement a JQuery
slider? Something along the lines of the webcoiunter example in the
seaside book that holds my hand the entire way?
    <br>
    <br>
something like <a class="moz-txt-link-freetext"
 href="http://demo.seaside.st/javascript/jquery-ui/sliderwidget">http://demo.seaside.st/javascript/jquery-ui/sliderwidget</a>&nbsp;
with the detail of <a class="moz-txt-link-freetext"
 href="http://www.seaside.st/about/examples/counter">http://www.seaside.st/about/examples/counter</a>
    <br>
[
    <br>
&nbsp; I can't figure out how to apply the
JQSliderFunctionalTest&gt;&gt;renderContentOn:&nbsp; method to something
that doesn't have the infrastructure of the test class hierarchy&nbsp;
behind it.
    <br>
    <br>
    <br>
MyTestSlider&gt;&gt;renderContentOn: html
    <br>
&nbsp;&nbsp;&nbsp; html div script: (html jQuery new slider
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value: current;
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onChange: (html jQuery ajax
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callback: [ :value | current := value asNumber ]
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value: (html jQuery this slider getValue)))
    <br>
    <br>
doesn't work as I haven't a clue what extra methods are required to
implement the functionality of the example and I can't wrap my head
about the multiple layers of the hierarchy to figure out how the
different widgets are plugged into the sample page...
    <br>
    <br>
    <br>
    <br>
Thanks.
    <br>
    <br>
    <br>
Lawson
    <br>
_______________________________________________
    <br>
seaside mailing list
    <br>
    <a class="moz-txt-link-abbreviated"
 href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
    <br>
    <a class="moz-txt-link-freetext"
 href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
    <br>
    <br>
&nbsp;&nbsp;&nbsp;&nbsp; </blockquote>
&nbsp;&nbsp; </blockquote>
<br>
</div>
<br>
<br>
</body>
</html>