[Seaside] Pharo 9/64 Bit & Seaside 3.4.4

Ian icjohnson at protonmail.com
Thu Jul 29 18:26:43 UTC 2021


Hi All,

Newbie question here.

I am working through Chapter 21.6/21.6.1 of the Seaside book using both it and the Github version (Square Brackets Associates) as a cross reference for new material.

I am running into an issue where when adding the jQuery functionality as described in section 21.6.1, 'Adding an Effect,' I do not get the effect. For some reason the code that is supposed to add jQuery to a page:

renderHeadingOn: html
| helpId |
helpId := html nextId.
(html heading)
class: 'helplink';
onClick: ((html jQuery new id: helpId) ***** <<<------ HERE
slideToggle: 1 seconds);
with: self model title.
(html div)
id: helpId;
class: 'help';
style: 'display: none';
with: 'The ToDo app enhanced with jQuery.'

Does not result in the rendered page getting the <link script element added to the head section nor in the <script> tag before the closing body tag (all according to firefox's developer tools as per:

[image.png]

Any help would be greatly appreciated.

Kind Regards,

Ian

Sent with [ProtonMail](https://protonmail.com/) Secure Email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20210729/b167d4a5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 68920 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20210729/b167d4a5/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 68920 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20210729/b167d4a5/attachment-0003.png>


More information about the seaside mailing list