jQuery Functional Test Suite

Say it in Smalltalk, Do it with jQuery

Repeated Ajax Calls

Demo

2019-01-22T01:33:51+00:00

Smalltalk

JQRepeatingFunctionalTest>>renderContentOn: html
   html paragraph
      script: (html jQuery this load
         html: [ :r | self renderTimeOn: r ];
         interval: 1 seconds);
      with: [ self renderTimeOn: html ]

JQRepeatingFunctionalTest>>renderTimeOn: html
   html render: DateAndTime now

Source

< =>2019-01-22T01:33:51+00:00</>
< =>/*<![CDATA[*/setInterval(function(){$("#id13").load("/javascript/jquery/repeatedajaxcalls",["_s=fTSSPdIfn1VqnX3F","_k=8Ussr5mJS9L9dgK3","12"].join("&"))},1000);/*]]>*/</>