<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 8/4/10 12:59 AM, Boris Popov, DeepCove Labs (YVR) wrote:
<blockquote
 cite="mid:CBE458BB46D12C48A467980CEDA34121023ED040@Pondo.yvr.png"
 type="cite">
  <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>
<!-- 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>
  </font></p>
</blockquote>
<br>
In a workspace:<br>
<br>
ExampleJQSlider initialize.   <br>
<br>
I actually downloaded a pristine copy and filed-in the
JQuery-Example.st file.<br>
<br>
Then did: ExampleJQSlider initialize.   <br>
<br>
<a class="moz-txt-link-freetext" href="http://localhost:8080/exampleslider">http://localhost:8080/exampleslider</a> source:<br>
<br>
&lt;div id="id8"&gt;&lt;/div&gt;  <br>
<br>
<br>
HOWEVER, the Safari View =&gt; View Source   window shows:<br>
<br>
<br>
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</a>&gt;&lt;html
xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a> xml:lang="en"
lang="en"&gt;&lt;head&gt;&lt;title&gt;Seaside&lt;/title&gt;&lt;meta
http-equiv="Content-Type"
content="text/html;charset=utf-8"/&gt;&lt;meta
http-equiv="Content-Script-Type"
content="text/javascript"/&gt;&lt;script type="text/javascript"
src="/files/JQDeploymentLibrary/jQuery.js"&gt;&lt;/script&gt;&lt;script
type="text/javascript"
src="/files/JQUiDeploymentLibrary/jQueryUi.js"&gt;&lt;/script&gt;&lt;link
rel="stylesheet" type="text/css"
href="/files/WADevelopmentFiles/development.css"/&gt;&lt;/head&gt;&lt;body&gt;&lt;div
id="id3"&gt;&lt;/div&gt;&lt;div class="wa-toolbar"&gt;&lt;a
class="wa-newsessiontoolplugin"
href="/exampleslider?_s=3R-iBNrbxKbZAHd-&amp;amp;_k=Mut0cloQ2HlSVeJK&amp;amp;4"&gt;New
Session&lt;/a&gt; &lt;a class="wa-configuretoolplugin"
href="/exampleslider?_s=3R-iBNrbxKbZAHd-&amp;amp;_k=Mut0cloQ2HlSVeJK&amp;amp;5"&gt;Configure&lt;/a&gt;
&lt;a class="wa-togglehalostoolplugin"
href="/exampleslider?_s=3R-iBNrbxKbZAHd-&amp;amp;_k=Mut0cloQ2HlSVeJK&amp;amp;6"&gt;Halos&lt;/a&gt;
&lt;a class="wa-profilertoolplugin"
href="/exampleslider?_s=3R-iBNrbxKbZAHd-&amp;amp;_k=Mut0cloQ2HlSVeJK&amp;amp;7"&gt;Profile&lt;/a&gt;
&lt;a class="wa-memorytoolplugin"
href="/exampleslider?_s=3R-iBNrbxKbZAHd-&amp;amp;_k=Mut0cloQ2HlSVeJK&amp;amp;8"&gt;Memory&lt;/a&gt;
&lt;a class="wa-validatetoolplugin" title="Validate XHTML"
href=<a class="moz-txt-link-rfc2396E" href="http://validator.w3.org/check/referer">"http://validator.w3.org/check/referer"</a>&gt;XHTML&lt;/a&gt;
&lt;span class="wa-timingtoolplugin"&gt;&lt;span title="Callback
Time"&gt;0&lt;/span&gt;/&lt;span title="Render Time"&gt;0&lt;/span&gt;
ms&lt;/span&gt;&lt;/div&gt;&lt;script
type="text/javascript"&gt;/*&lt;![CDATA[*/$(function(){$("#id3").slider({"value":50,"change":function(){$.ajax({"url":"/exampleslider","data":["_s=3R-iBNrbxKbZAHd-","_k=Mut0cloQ2HlSVeJK","1","2="+$(this).slider("value")].join("&amp;")})}});});/*]]&gt;*/&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;<br>
<br>
<blockquote
 cite="mid:CBE458BB46D12C48A467980CEDA34121023ED040@Pondo.yvr.png"
 type="cite">
  <p><font size="2">-Boris (via BlackBerry)<br>
  <br>
----- Original Message -----<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:seaside-bounces@lists.squeakfoundation.org">&lt;seaside-bounces@lists.squeakfoundation.org&gt;</a><br>
To: Seaside - general discussion
<a class="moz-txt-link-rfc2396E" href="mailto:seaside@lists.squeakfoundation.org">&lt;seaside@lists.squeakfoundation.org&gt;</a><br>
Sent: Wed Aug 04 00:54:25 2010<br>
Subject: Re: [Seaside] really simple JQuery slider/widget example
withoutthe    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>
  saved and restarted.<br>
  <br>
STILL getting a blank page.<br>
  <br>
  <br>
WAComponent subclass: #ExampleJQSlider<br>
     instanceVariableNames: 'count current'<br>
     classVariableNames: ''<br>
     poolDictionaries: ''<br>
     category: 'JQuery-Examples'!<br>
  <br>
!ExampleJQSlider methodsFor: 'initialization' stamp: 'LDE 8/4/2010
00:31'!<br>
initialize<br>
    super initialize.<br>
    current := 50.<br>
! !<br>
  <br>
  <br>
!ExampleJQSlider methodsFor: 'rendering' stamp: 'LDE 8/3/2010 23:30'!<br>
renderContentOn: html<br>
     html div script: (html jQuery new slider<br>
       value: current;<br>
      onChange: (html jQuery ajax<br>
          callback: [ :value | current := value asNumber ]<br>
        value: (html jQuery this slider getValue)))<br>
! !<br>
  <br>
"-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "!<br>
  <br>
ExampleJQSlider class<br>
     instanceVariableNames: ''!<br>
  <br>
!ExampleJQSlider class methodsFor: 'class initialization' stamp: 'LDE<br>
8/4/2010 00:28'!<br>
initialize<br>
     | application |<br>
     application := WAAdmin register: self asApplicationAt:
'exampleslider'.<br>
     application preferenceAt: #scriptGeneratorClass put:
JQScriptGenerator.<br>
     application<br>
         addLibrary: JQDeploymentLibrary;<br>
         addLibrary: JQUiDeploymentLibrary<br>
! !<br>
  <br>
ExampleJQSlider initialize!<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 moz-do-not-send="true"
 href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
  </font>
  </p>
</blockquote>
<br>
</body>
</html>