chicoary at gmail.com
Tue Jan 31 20:34:05 UTC 2012
Johan, thanks for your answers. See below my considerations:
> On 30 Jan 2012, at 19:19, Francisco Martins wrote:
>> I saw my omission of the code snippet "addLoadscript html document:"
>> before your reply. I put also indicated halts but they were not
>> reached during the execution.
> Hm... I don't catch a reason why this would not work.
Yes, but I could not find the cause.
The console of Safari shows the following errors:
jqueryinactionhack:1SyntaxError: Parse error
jqueryinactionhack:1ReferenceError: Can't find variable: onLoad
>> Another question I have is this: the original code runs entirely in
>> with JQuery?
> Of course you can. I just assumed you were implying a request to retrieve the value also server-side.
No. I wanted to replicate the functionality found in examples from the
book JQuery in Action. It seems to me that the unobtrusive style is
not feasible in Seaside with JQuery.
> html button
> onClick: <entire js script in a Smalltalk string -- or function call to the script included in an external file>
I tried this with the code below:
div: [html button type: #button;
^ JSStream new nextPutAll: 'var checkedValue = $(';
nextPutAll: 'The radio element with value <tt>';
nextPutAll: ' + checkedValue +';
nextPutAll: '</tt> is checked.';
Almost works. However does not show the value of the radio button
selected. Always shows the same string "on".
Francisco Ary Martins
"A filosofia não é senão uma poesia sofisticada."
More information about the seaside