[Seaside] Pharo 9/64 Bit & Seaside 3.4.4

Ian icjohnson at protonmail.com
Thu Jul 29 18:30:23 UTC 2021


Apologies,

I should finish this note with the actual error:

Uncaught ReferenceError: $ is not defined
onclick http://localhost:8080/todo:1

JQuery is thus shown not to be loading.

Thx!

Ian

Sent with [ProtonMail](https://protonmail.com/) Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, July 29th, 2021 at 2:26 PM, Ian <icjohnson at protonmail.com> wrote:

> 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/af449caf/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/af449caf/attachment-0001.png>


More information about the seaside mailing list