<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Re: [Seaside] really simple JQuery slider/widget example withoutthe         support of the test classes?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Restarting the image does not #initialize classes, run the code manually and see if that helps.<BR>
<BR>
-Boris (via BlackBerry)<BR>
<BR>
----- Original Message -----<BR>
From: seaside-bounces@lists.squeakfoundation.org &lt;seaside-bounces@lists.squeakfoundation.org&gt;<BR>
To: Seaside - general discussion &lt;seaside@lists.squeakfoundation.org&gt;<BR>
Sent: Wed Aug 04 00:54:25 2010<BR>
Subject: Re: [Seaside] really simple JQuery slider/widget example withoutthe &nbsp;&nbsp; support of the test classes?<BR>
<BR>
On 8/4/10 12:43 AM, Nick Ager wrote:<BR>
&gt; Is the initialize method on the class side?<BR>
&gt; If so it it won't be executed until the code is reloaded so call it<BR>
&gt; manually: MyClass initialize<BR>
&gt;<BR>
<BR>
&nbsp; saved and restarted.<BR>
<BR>
STILL getting a blank page.<BR>
<BR>
<BR>
WAComponent subclass: #ExampleJQSlider<BR>
&nbsp;&nbsp;&nbsp;&nbsp; instanceVariableNames: 'count current'<BR>
&nbsp;&nbsp;&nbsp;&nbsp; classVariableNames: ''<BR>
&nbsp;&nbsp;&nbsp;&nbsp; poolDictionaries: ''<BR>
&nbsp;&nbsp;&nbsp;&nbsp; category: 'JQuery-Examples'!<BR>
<BR>
!ExampleJQSlider methodsFor: 'initialization' stamp: 'LDE 8/4/2010 00:31'!<BR>
initialize<BR>
&nbsp;&nbsp;&nbsp; super initialize.<BR>
&nbsp;&nbsp;&nbsp; current := 50.<BR>
! !<BR>
<BR>
<BR>
!ExampleJQSlider methodsFor: 'rendering' stamp: 'LDE 8/3/2010 23:30'!<BR>
renderContentOn: html<BR>
&nbsp;&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; 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; value: (html jQuery this slider getValue)))<BR>
! !<BR>
<BR>
&quot;-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &quot;!<BR>
<BR>
ExampleJQSlider class<BR>
&nbsp;&nbsp;&nbsp;&nbsp; instanceVariableNames: ''!<BR>
<BR>
!ExampleJQSlider class methodsFor: 'class initialization' stamp: 'LDE<BR>
8/4/2010 00:28'!<BR>
initialize<BR>
&nbsp;&nbsp;&nbsp;&nbsp; | application |<BR>
&nbsp;&nbsp;&nbsp;&nbsp; application := WAAdmin register: self asApplicationAt: 'exampleslider'.<BR>
&nbsp;&nbsp;&nbsp;&nbsp; application preferenceAt: #scriptGeneratorClass put: JQScriptGenerator.<BR>
&nbsp;&nbsp;&nbsp;&nbsp; application<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; addLibrary: JQDeploymentLibrary;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; addLibrary: JQUiDeploymentLibrary<BR>
! !<BR>
<BR>
ExampleJQSlider initialize!<BR>
_______________________________________________<BR>
seaside mailing list<BR>
seaside@lists.squeakfoundation.org<BR>
<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
</FONT>
</P>

</BODY>
</HTML>