Hi,
I have the following code: html script: ((html scriptaculous periodical); id: 'compositeGraph'; frequency: 5 seconds; on: #renderNextImageOn: of: self ; assignTo: 'FLPer'). but my method #renderNextImageOn: never gets called. Do you see anything obvious that I am doing wrong? Thanks, Frank _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Any errors in FireBug?
On Saturday, 1 October 2011, squeakman <[hidden email]> wrote: > Hi, > > I have the following code: > > html > script: > ((html scriptaculous periodical); > id: 'compositeGraph'; > frequency: 5 seconds; > on: #renderNextImageOn: of: self ; > assignTo: 'FLPer'). > > > but my method #renderNextImageOn: never gets called. Do you see anything obvious that I am doing wrong? > > Thanks, > Frank > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > -- Lukas Renggli www.lukas-renggli.ch _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
No, no FireBug errors.
On 01/10/2011 1:44 PM, Lukas Renggli wrote: > Any errors in FireBug? > > On Saturday, 1 October 2011, squeakman <[hidden email] > <mailto:[hidden email]>> wrote: > > Hi, > > > > I have the following code: > > > > html > > script: > > ((html scriptaculous periodical); > > id: 'compositeGraph'; > > frequency: 5 seconds; > > on: #renderNextImageOn: of: self ; > > assignTo: 'FLPer'). > > > > > > but my method #renderNextImageOn: never gets called. Do you see > anything obvious that I am doing wrong? > > > > Thanks, > > Frank > > > > _______________________________________________ > > seaside mailing list > > [hidden email] > <mailto:[hidden email]> > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > -- > Lukas Renggli > www.lukas-renggli.ch <http://www.lukas-renggli.ch> > > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
I don't see a logical problem in your snippet.
There is a syntax error though: I have no clue what the first semicolon means and why a Smalltalk compiler would accept that? Lukas On 1 October 2011 20:02, squeakman <[hidden email]> wrote: > No, no FireBug errors. > > > On 01/10/2011 1:44 PM, Lukas Renggli wrote: >> >> Any errors in FireBug? >> >> On Saturday, 1 October 2011, squeakman <[hidden email] >> <mailto:[hidden email]>> wrote: >> > Hi, >> > >> > I have the following code: >> > >> > html >> > script: >> > ((html scriptaculous periodical); >> > id: 'compositeGraph'; >> > frequency: 5 seconds; >> > on: #renderNextImageOn: of: self ; >> > assignTo: 'FLPer'). >> > >> > >> > but my method #renderNextImageOn: never gets called. Do you see >> anything obvious that I am doing wrong? >> > >> > Thanks, >> > Frank >> > >> > _______________________________________________ >> > seaside mailing list >> > [hidden email] >> <mailto:[hidden email]> >> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > >> >> -- >> Lukas Renggli >> www.lukas-renggli.ch <http://www.lukas-renggli.ch> >> >> >> _______________________________________________ >> seaside mailing list >> [hidden email] >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > -- Lukas Renggli www.lukas-renggli.ch _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Ah, the syntax error was my typing error. I had the line:
((html scriptaculous periodical) halt; and when I constructed my email I deleted the "halt" but forgot the semicolon. So it is not an issue with the compiler, just me. On 01/10/2011 4:26 PM, Lukas Renggli wrote: > I don't see a logical problem in your snippet. > > There is a syntax error though: I have no clue what the first > semicolon means and why a Smalltalk compiler would accept that? > > Lukas > > On 1 October 2011 20:02, squeakman<[hidden email]> wrote: >> No, no FireBug errors. >> >> >> On 01/10/2011 1:44 PM, Lukas Renggli wrote: >>> >>> Any errors in FireBug? >>> >>> On Saturday, 1 October 2011, squeakman<[hidden email] >>> <mailto:[hidden email]>> wrote: >>> > Hi, >>> > >>> > I have the following code: >>> > >>> > html >>> > script: >>> > ((html scriptaculous periodical); >>> > id: 'compositeGraph'; >>> > frequency: 5 seconds; >>> > on: #renderNextImageOn: of: self ; >>> > assignTo: 'FLPer'). >>> > >>> > >>> > but my method #renderNextImageOn: never gets called. Do you see >>> anything obvious that I am doing wrong? >>> > >>> > Thanks, >>> > Frank >>> > >>> > _______________________________________________ >>> > seaside mailing list >>> > [hidden email] >>> <mailto:[hidden email]> >>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> > >>> >>> -- >>> Lukas Renggli >>> www.lukas-renggli.ch<http://www.lukas-renggli.ch> >>> >>> >>> _______________________________________________ >>> seaside mailing list >>> [hidden email] >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> >> >> _______________________________________________ >> seaside mailing list >> [hidden email] >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > > > _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Ok, so maybe you can provide a minimal file-out so that we can reproduce?
Lukas On 1 October 2011 22:54, squeakman <[hidden email]> wrote: > Ah, the syntax error was my typing error. I had the line: > ((html scriptaculous periodical) halt; > > and when I constructed my email I deleted the "halt" but forgot the > semicolon. So it is not an issue with the compiler, just me. > > > On 01/10/2011 4:26 PM, Lukas Renggli wrote: >> >> I don't see a logical problem in your snippet. >> >> There is a syntax error though: I have no clue what the first >> semicolon means and why a Smalltalk compiler would accept that? >> >> Lukas >> >> On 1 October 2011 20:02, squeakman<[hidden email]> wrote: >>> >>> No, no FireBug errors. >>> >>> >>> On 01/10/2011 1:44 PM, Lukas Renggli wrote: >>>> >>>> Any errors in FireBug? >>>> >>>> On Saturday, 1 October 2011, squeakman<[hidden email] >>>> <mailto:[hidden email]>> wrote: >>>> > Hi, >>>> > >>>> > I have the following code: >>>> > >>>> > html >>>> > script: >>>> > ((html scriptaculous periodical); >>>> > id: 'compositeGraph'; >>>> > frequency: 5 seconds; >>>> > on: #renderNextImageOn: of: self ; >>>> > assignTo: 'FLPer'). >>>> > >>>> > >>>> > but my method #renderNextImageOn: never gets called. Do you see >>>> anything obvious that I am doing wrong? >>>> > >>>> > Thanks, >>>> > Frank >>>> > >>>> > _______________________________________________ >>>> > seaside mailing list >>>> > [hidden email] >>>> <mailto:[hidden email]> >>>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>> > >>>> >>>> -- >>>> Lukas Renggli >>>> www.lukas-renggli.ch<http://www.lukas-renggli.ch> >>>> >>>> >>>> _______________________________________________ >>>> seaside mailing list >>>> [hidden email] >>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> >>> >>> _______________________________________________ >>> seaside mailing list >>> [hidden email] >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> >> >> >> > > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > -- Lukas Renggli www.lukas-renggli.ch _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Attached is a minimal test of SUPeriodical that I believe shows the
problem. I am using VisualWorks. As an aside, I notice that in the test example SUPeriodicalTest, (html scriptaculous periodical) is not being used, instead they are using (html scriptaculous updater) with an interval: method. I have no idea if this is significant or not. Thanks, Frank On 01/10/2011 4:56 PM, Lukas Renggli wrote: > Ok, so maybe you can provide a minimal file-out so that we can reproduce? > > Lukas > > On 1 October 2011 22:54, squeakman<[hidden email]> wrote: >> Ah, the syntax error was my typing error. I had the line: >> ((html scriptaculous periodical) halt; >> >> and when I constructed my email I deleted the "halt" but forgot the >> semicolon. So it is not an issue with the compiler, just me. >> >> >> On 01/10/2011 4:26 PM, Lukas Renggli wrote: >>> >>> I don't see a logical problem in your snippet. >>> >>> There is a syntax error though: I have no clue what the first >>> semicolon means and why a Smalltalk compiler would accept that? >>> >>> Lukas >>> >>> On 1 October 2011 20:02, squeakman<[hidden email]> wrote: >>>> >>>> No, no FireBug errors. >>>> >>>> >>>> On 01/10/2011 1:44 PM, Lukas Renggli wrote: >>>>> >>>>> Any errors in FireBug? >>>>> >>>>> On Saturday, 1 October 2011, squeakman<[hidden email] >>>>> <mailto:[hidden email]>> wrote: >>>>> > Hi, >>>>> > >>>>> > I have the following code: >>>>> > >>>>> > html >>>>> > script: >>>>> > ((html scriptaculous periodical); >>>>> > id: 'compositeGraph'; >>>>> > frequency: 5 seconds; >>>>> > on: #renderNextImageOn: of: self ; >>>>> > assignTo: 'FLPer'). >>>>> > >>>>> > >>>>> > but my method #renderNextImageOn: never gets called. Do you see >>>>> anything obvious that I am doing wrong? >>>>> > >>>>> > Thanks, >>>>> > Frank >>>>> > >>>>> > _______________________________________________ >>>>> > seaside mailing list >>>>> > [hidden email] >>>>> <mailto:[hidden email]> >>>>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>>> > >>>>> >>>>> -- >>>>> Lukas Renggli >>>>> www.lukas-renggli.ch<http://www.lukas-renggli.ch> >>>>> >>>>> >>>>> _______________________________________________ >>>>> seaside mailing list >>>>> [hidden email] >>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>> >>>> >>>> _______________________________________________ >>>> seaside mailing list >>>> [hidden email] >>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>> >>> >>> >>> >> >> >> _______________________________________________ >> seaside mailing list >> [hidden email] >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > > > _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside TestMinimalPeriodical.st (1K) Download Attachment |
This works:
renderContentOn: html html div script: ((html prototype periodical) frequency: 5 ; on: #renderNextImageOn: of: self); with: [html text: 'this is a test'] Cheers, Bob On 10/1/11 5:31 PM, squeakman wrote: Attached is a minimal test of SUPeriodical that I believe shows the problem. I am using VisualWorks. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi Bob,
You are right that does work. The only difference I can see is the use of the frequency: method. If I use frequency: 5 seconds; then it does not work. If I use frequency: 5; this works. It looks as if you can no longer use aDuration for frequency: Thanks for your help On 01/10/2011 7:00 PM, Bob Arning wrote: > This works: > > renderContentOn: html > > html div script: ((html prototype periodical) > frequency: 5 ; > on: #renderNextImageOn: of: self); > with: [html text: 'this is a test'] > > Cheers, > Bob > > On 10/1/11 5:31 PM, squeakman wrote: >> Attached is a minimal test of SUPeriodical that I believe shows the >> problem. I am using VisualWorks. >> >> As an aside, I notice that in the test example SUPeriodicalTest, (html >> scriptaculous periodical) is not being used, instead they are using >> (html scriptaculous updater) with an interval: method. I have no idea >> if this is significant or not. >> >> Thanks, >> Frank >> >> On 01/10/2011 4:56 PM, Lukas Renggli wrote: >>> Ok, so maybe you can provide a minimal file-out so that we can >>> reproduce? >>> >>> Lukas >>> >>> On 1 October 2011 22:54, squeakman<[hidden email]> wrote: >>>> Ah, the syntax error was my typing error. I had the line: >>>> ((html scriptaculous periodical) halt; >>>> >>>> and when I constructed my email I deleted the "halt" but forgot the >>>> semicolon. So it is not an issue with the compiler, just me. >>>> >>>> >>>> On 01/10/2011 4:26 PM, Lukas Renggli wrote: >>>>> >>>>> I don't see a logical problem in your snippet. >>>>> >>>>> There is a syntax error though: I have no clue what the first >>>>> semicolon means and why a Smalltalk compiler would accept that? >>>>> >>>>> Lukas >>>>> >>>>> On 1 October 2011 20:02, squeakman<[hidden email]> wrote: >>>>>> >>>>>> No, no FireBug errors. >>>>>> >>>>>> >>>>>> On 01/10/2011 1:44 PM, Lukas Renggli wrote: >>>>>>> >>>>>>> Any errors in FireBug? >>>>>>> >>>>>>> On Saturday, 1 October 2011, squeakman<[hidden email] >>>>>>> <mailto:[hidden email]>> wrote: >>>>>>> > Hi, >>>>>>> > >>>>>>> > I have the following code: >>>>>>> > >>>>>>> > html >>>>>>> > script: >>>>>>> > ((html scriptaculous periodical); >>>>>>> > id: 'compositeGraph'; >>>>>>> > frequency: 5 seconds; >>>>>>> > on: #renderNextImageOn: of: self ; >>>>>>> > assignTo: 'FLPer'). >>>>>>> > >>>>>>> > >>>>>>> > but my method #renderNextImageOn: never gets called. Do you see >>>>>>> anything obvious that I am doing wrong? >>>>>>> > >>>>>>> > Thanks, >>>>>>> > Frank >>>>>>> > >>>>>>> > _______________________________________________ >>>>>>> > seaside mailing list >>>>>>> > [hidden email] >>>>>>> <mailto:[hidden email]> >>>>>>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>>>>> > >>>>>>> >>>>>>> -- >>>>>>> Lukas Renggli >>>>>>> www.lukas-renggli.ch<http://www.lukas-renggli.ch> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> seaside mailing list >>>>>>> [hidden email] >>>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> seaside mailing list >>>>>> [hidden email] >>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> _______________________________________________ >>>> seaside mailing list >>>> [hidden email] >>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>> >>> >>> >>> >> >> >> >> _______________________________________________ >> seaside mailing list >> [hidden email] >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Well, actually, it does work, just not the way
you would expect...
Duration>>javascriptOn: javascriptOn: aStream aStream javascript: self asMilliseconds so, with frequency: 5 seconds; you get: /*<![CDATA[*/function onLoad(){new Ajax.PeriodicalUpdater("id2","/minimal",{"evalScripts":true,"parameters":["_s=D9HBcPMns0cWVlyv","_k=FRkhcmfBZDlqJufs","1"].join("&"),"frequency":5000});};/*]]>*/ whereas, with frequency: 5 ; you get /*<![CDATA[*/function onLoad(){new Ajax.PeriodicalUpdater("id2","/minimal",{"evalScripts":true,"parameters":["_s=vwLxpe0u7GDjrXNf","_k=6_NhJs0lWtpMzr6m","1"].join("&"),"frequency":5});};/*]]>*/ Aren't unit of measure issues fun? Cheers, Bob On 10/1/11 7:17 PM, squeakman wrote: Hi Bob, _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |