I am trying to understand a bit of JavaScript from
http://developer.yahoo.com/maps/simple/jspost.html (appended below). I'd
appreciate help understanding two things it. The first is the following:
<script type="text/javascript">
createForms();
</script>
I don't understand the "createForms()" . I know it must be JavaScript but I
have looked in the index of several references and do not find any such
entry in their indices. My online searches got a few hits but nothing
helpful. Where can I find some online doc for createForms()? It seems to
create a button labeled "View on Y! Maps" but where does that text (i.e.
"View on Y! Maps") come from?
The HTML also contains the following javascript: document.write( "<scr"+"ipt
language=javasc ript
src=http://l.yimg.com/us.js.yimg.com/lib/bc/bc_2.0.4.js></scr"+"ipt>");.
Why is the concatenation operator, +, being used here? To my naive mind it
seems to be unnecessary.
I'll appreciate any help anyone can offer. Thanks, Bob
JavaScript from http://developer.yahoo.com/maps/simple/jspost.html ...
<html>
<head>
</head>
<body>
<script type="text/javascript" src="jspost.js" ></script>
<h2>Java script POST sample</h2>
<p>Clicking this Button executes a POST request (Sorry, does not work in
IE)</p>
<p>In this sample the RSS feed is hardcoded. To make this sample into a cool
application, dynamically generate a feed.</p>
<script type="text/javascript">
createForms();
</script>
</body>
</html>
<!-- spaceId: 792400132 -->
<!-- VER-58 -->
<script language=javasc ript>
if(window.yzq_p ==null)document .write("<scr"+" ipt language=javasc ript
src=http://l.yimg.com/us.js.yimg.com/lib/bc/bc_2.0.4.js></scr"+"ipt>");
</script><script language=javasc ript>
if(window.yzq_p )yzq_p('P=Ri5IO tFJuhuNCf_2Qp5b hM6XRXl91Egegos ABGIP&T=13tvhfk hm%2fX%3d120995 9051%2fE%3d7924 00132%2fR%3ddev _net%2fK%3d5%2f V%3d1.1%2fW%3dJ %2fY%3dYAHOO%2f F%3d1430890299% 2fS%3d1%2fJ%3dC CBB49D1');
if(window.yzq_s )yzq_s();
</script><noscrip t><img width=1 height=1 alt=""
src="http://us.bc.yahoo.com/b?P=Ri5IOtFJuhu NCf_2Qp5bhM6XRX l91EgegosABGIP& T=142luogtl%2fX %3d1209959051%2 fE%3d792400132% 2fR%3ddev_net%2 fK%3d5%2fV%3d3. 1%2fW%3dJ%2fY%3 dYAHOO%2fF%3d38 81337183%2fQ%3d-1%2fS%3d1%2fJ%3 dCCBB49D1"></noscript>
<!-- com3.devnet.re3 .yahoo.com compressed/chunked Sun May 4 20:44:11 PDT
2008 -->