<!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>
<div id="id8"></div> <br>
<br>
<br>
HOWEVER, the Safari View => View Source window shows:<br>
<br>
<br>
<!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>><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"><head><title>Seaside</title><meta
http-equiv="Content-Type"
content="text/html;charset=utf-8"/><meta
http-equiv="Content-Script-Type"
content="text/javascript"/><script type="text/javascript"
src="/files/JQDeploymentLibrary/jQuery.js"></script><script
type="text/javascript"
src="/files/JQUiDeploymentLibrary/jQueryUi.js"></script><link
rel="stylesheet" type="text/css"
href="/files/WADevelopmentFiles/development.css"/></head><body><div
id="id3"></div><div class="wa-toolbar"><a
class="wa-newsessiontoolplugin"
href="/exampleslider?_s=3R-iBNrbxKbZAHd-&amp;_k=Mut0cloQ2HlSVeJK&amp;4">New
Session</a> <a class="wa-configuretoolplugin"
href="/exampleslider?_s=3R-iBNrbxKbZAHd-&amp;_k=Mut0cloQ2HlSVeJK&amp;5">Configure</a>
<a class="wa-togglehalostoolplugin"
href="/exampleslider?_s=3R-iBNrbxKbZAHd-&amp;_k=Mut0cloQ2HlSVeJK&amp;6">Halos</a>
<a class="wa-profilertoolplugin"
href="/exampleslider?_s=3R-iBNrbxKbZAHd-&amp;_k=Mut0cloQ2HlSVeJK&amp;7">Profile</a>
<a class="wa-memorytoolplugin"
href="/exampleslider?_s=3R-iBNrbxKbZAHd-&amp;_k=Mut0cloQ2HlSVeJK&amp;8">Memory</a>
<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>>XHTML</a>
<span class="wa-timingtoolplugin"><span title="Callback
Time">0</span>/<span title="Render Time">0</span>
ms</span></div><script
type="text/javascript">/*<![CDATA[*/$(function(){$("#id3").slider({"value":50,"change":function(){$.ajax({"url":"/exampleslider","data":["_s=3R-iBNrbxKbZAHd-","_k=Mut0cloQ2HlSVeJK","1","2="+$(this).slider("value")].join("&")})}});});/*]]>*/</script></body></html><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"><seaside-bounces@lists.squeakfoundation.org></a><br>
To: Seaside - general discussion
<a class="moz-txt-link-rfc2396E" href="mailto:seaside@lists.squeakfoundation.org"><seaside@lists.squeakfoundation.org></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>
> Is the initialize method on the class side?<br>
> If so it it won't be executed until the code is reloaded so call it<br>
> manually: MyClass initialize<br>
><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>