[Seaside] really simple JQuery slider/widget example withoutthe
support of the test classes?
Boris Popov, DeepCove Labs (YVR)
boris at deepcovelabs.com
Wed Aug 4 07:59:15 UTC 2010
Restarting the image does not #initialize classes, run the code manually and see if that helps.
-Boris (via BlackBerry)
----- Original Message -----
From: seaside-bounces at lists.squeakfoundation.org <seaside-bounces at lists.squeakfoundation.org>
To: Seaside - general discussion <seaside at lists.squeakfoundation.org>
Sent: Wed Aug 04 00:54:25 2010
Subject: Re: [Seaside] really simple JQuery slider/widget example withoutthe support of the test classes?
On 8/4/10 12:43 AM, Nick Ager wrote:
> Is the initialize method on the class side?
> If so it it won't be executed until the code is reloaded so call it
> manually: MyClass initialize
>
saved and restarted.
STILL getting a blank page.
WAComponent subclass: #ExampleJQSlider
instanceVariableNames: 'count current'
classVariableNames: ''
poolDictionaries: ''
category: 'JQuery-Examples'!
!ExampleJQSlider methodsFor: 'initialization' stamp: 'LDE 8/4/2010 00:31'!
initialize
super initialize.
current := 50.
! !
!ExampleJQSlider methodsFor: 'rendering' stamp: 'LDE 8/3/2010 23:30'!
renderContentOn: html
html div script: (html jQuery new slider
value: current;
onChange: (html jQuery ajax
callback: [ :value | current := value asNumber ]
value: (html jQuery this slider getValue)))
! !
"-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "!
ExampleJQSlider class
instanceVariableNames: ''!
!ExampleJQSlider class methodsFor: 'class initialization' stamp: 'LDE
8/4/2010 00:28'!
initialize
| application |
application := WAAdmin register: self asApplicationAt: 'exampleslider'.
application preferenceAt: #scriptGeneratorClass put: JQScriptGenerator.
application
addLibrary: JQDeploymentLibrary;
addLibrary: JQUiDeploymentLibrary
! !
ExampleJQSlider initialize!
_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100804/46e32c09/attachment.htm
More information about the seaside
mailing list