Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html > How does this w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 9889 of 10315
Post > Topic >>

How does this work? (CDATA)

by test9991014@[EMAIL PROTECTED] May 6, 2008 at 12:51 PM

While visiting the apple.com 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"
action="http
://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID">
        <p>
            </p><div id="ppu-input-container" class="psearch
nonsafari"><label><
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-
container-re
set"></span></label></div>
<script type="text/javascript">
// <![CDATA[
    dojo.require("apple.widget.PrettySearchField");
    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: ""
        }
    );
// ]]>
</script>
 




 3 Posts in Topic:
How does this work? (CDATA)
test9991014@[EMAIL PROTEC  2008-05-06 12:51:08 
Re: How does this work? (CDATA)
sheldonlg <sheldonlg&g  2008-05-06 16:35:43 
Re: How does this work? (CDATA)
"Jukka K. Korpela&qu  2008-05-07 09:08:52 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 21:58:38 CDT 2008.