How does this work? (CDATA)

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
While visiting the page, I noticed an unusual
form behavior that seems pretty nice, but looking at the
source (below) it is unclear how it works. Is there a tutorial
that explains it? Thanks.

<div id="ppu-checker">
    <form id="ppu-check-form" onsubmit="return false;" method="get"
            </p><div id="ppu-input-container" class="psearch
input name="ppu-postal-code" maxlength="" size="10" class="psearch
nonsafari" va
lue="Zip code" id="ppu-postal-code" type="text"><span id="ppu-input-
<script type="text/javascript">
// <![CDATA[
    var ppuinputcontainerObj = new apple.widget.PrettySearchField(
            inputId: "ppu-postal-code",
            containerId: "ppu-input-container",
            resetIconId: "ppu-input-container-reset",
            maxLength: "5",
            results: "",
            placeholder: "Zip code",
            autosave: ""
// ]]>

Re: How does this work? (CDATA) wrote:
Quoted text here. Click to load it

The CDATA lines have been commented out.

Re: How does this work? (CDATA)


Quoted text here. Click to load it

You'll find plenty of JavaScript tutorials, mostly poor, on the net.
JavaScript is not HTML. Followups trimmed.

Quoted text here. Click to load it

If _this_ puzzles you, as "(CDATA)" on the Subject line suggests, then
you have a problem with HTML as well. You can simply read the HTML
specs, specifically

Jukka K. Korpela ("Yucca")

Site Timeline