Skip to content

Commit a4b941d

Browse files
committed
removing wrong heading
1 parent 6da0c55 commit a4b941d

File tree

2 files changed

+28
-14
lines changed

2 files changed

+28
-14
lines changed

Chapters/17-JQuery/jquery.pillar

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Searches for all elements that match the specified expression.
225225
aQuery find: 'div'.
226226
]]]
227227

228-
!! Parents
228+
!!!! Parents
229229

230230
Get a set of elements containing the unique parents of the matched set of elements.
231231

@@ -263,37 +263,50 @@ There is a wide variety of actions that come supported with jQuery. jQuery UI an
263263

264264
The following examples add, remove or toggle the CSS class ==important== given as the first argument. These methods are commonly used to change the appearance of one or more HTML elements for example to visualize a state change in the application.
265265

266-
==aQuery addClass: 'important'.
267-
==aQuery removeClass: 'important'.
268-
==aQuery toggleClass: 'important'.
266+
[[[
267+
aQuery addClass: 'important'.
268+
aQuery removeClass: 'important'.
269+
aQuery toggleClass: 'important'.
270+
]]]
269271

270272
Also you can query if a particular class is set:
271273

272-
==aQuery hasClass: 'important'.
274+
[[[
275+
aQuery hasClass: 'important'.
276+
]]]
277+
273278

274279
!!!! Styles
275280

276281
Similarly you can change the style of one or more HTML elements. By providing a dictionary you can change multiple CSS styles at once:
277282

278-
==aQuery css: aDictionary.
283+
[[[
284+
aQuery css: aDictionary.
285+
]]]
279286

280287
Alternatively you can use a dictionary-like protocol to read and write specific style properties:
281288

282-
==aQuery cssAt: 'color'.
283-
==aQuery cssAt: 'color' put: '#ff0'.
289+
[[[
290+
aQuery cssAt: 'color'.
291+
aQuery cssAt: 'color' put: '#ff0'.
292+
]]]
284293

285294
Note that in most cases it is preferred to use CSS classes instead of hardcoding your style settings into the application code.
286295

287296
!!!! Attributes
288297

289298
While the above methods change the ==class== and ==style== attribute of one or more DOM elements, there are also accessor methods to change arbitrary HTML attributes. By providing a dictionary of key-value pairs you can change multiple attributes at once:
290299

291-
==aQuery attributes: aDictionary.
300+
[[[
301+
aQuery attributes: aDictionary.
302+
]]]
292303

293304
Alternatively you can use a dictionary-like protocol to read and write attributes:
294305

295-
==aQuery attributeAt: 'href'.
296-
==aQuery attributeAt: 'href' put: 'http://www.seaside.st/'.
306+
[[[
307+
aQuery attributeAt: 'href'.
308+
aQuery attributeAt: 'href' put: 'http://www.seaside.st/'.
309+
]]]
297310

298311
!!!! Replace Contents
299312

@@ -371,7 +384,7 @@ html anchor
371384
!!!! Execute at Load-Time
372385

373386
Javascript proposes a way to execute a query at load-time using ==$(document).ready(...)==.
374-
With Seaside, you can forget about $(document).ready(...), since Seaside has its own mechanism there.
387+
With Seaside, you can forget about ==$(document).ready(...)==, since Seaside has its own mechanism there.
375388

376389
[[[
377390
html document addLoadScript: (html jQuery: 'div') remove
@@ -402,7 +415,7 @@ anAjax html: [ :r | r div ].
402415
anAjax script: [ :s | s alert: 'Hello' ].
403416
]]]
404417

405-
!!Triggering Callbacks
418+
!!!!Triggering Callbacks
406419

407420
Finally a query can be stored and triggered later.
408421

book.pillar

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
${inputFile:Chapters/Introduction.pillar}$
1+
%${inputFile:Chapters/Introduction.pillar}$
22

33
! Getting Started
44
This part shows you how to get a simple Seaside application up and running
55
in less than 15 minutes. If you’re new to Pharo, have a look at the Pharo by Example Seaside Chapter. You can also have a look at the excellent Pharo Mooc *http://mooc.pharo.org*. Watch the first video and the development session about the counter.
66

77
%${inputFile:Chapters/01-Pharo/Pharo.pillar}$
88
%should do a pass for Zinc, redo screenshots
9+
${inputFile:Chapters/02-Gemstone/Gemstone.pillar}$
910

1011
!! Gemstone version
1112
%Should add Gemstone chapter

0 commit comments

Comments
 (0)