E
eBob.com
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=javascript
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=javascript>
if(window.yzq_p==null)document.write("<scr"+"ipt language=javascript
src=http://l.yimg.com/us.js.yimg.com/lib/bc/bc_2.0.4.js></scr"+"ipt>");
</script><script language=javascript>
if(window.yzq_p)yzq_p('P=Ri5IOtFJuhuNCf_2Qp5bhM6XRXl91EgegosABGIP&T=13tvhfkhm%2fX%3d1209959051%2fE%3d792400132%2fR%3ddev_net%2fK%3d5%2fV%3d1.1%2fW%3dJ%2fY%3dYAHOO%2fF%3d1430890299%2fS%3d1%2fJ%3dCCBB49D1');
if(window.yzq_s)yzq_s();
</script><noscript><img width=1 height=1 alt=""
src="http://us.bc.yahoo.com/b?P=Ri5IOtFJ.../W=J/Y=YAHOO/F=3881337183/Q=-1/S=1/J=CCBB49D1"></noscript>
<!-- com3.devnet.re3.yahoo.com compressed/chunked Sun May 4 20:44:11 PDT
2008 -->
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=javascript
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=javascript>
if(window.yzq_p==null)document.write("<scr"+"ipt language=javascript
src=http://l.yimg.com/us.js.yimg.com/lib/bc/bc_2.0.4.js></scr"+"ipt>");
</script><script language=javascript>
if(window.yzq_p)yzq_p('P=Ri5IOtFJuhuNCf_2Qp5bhM6XRXl91EgegosABGIP&T=13tvhfkhm%2fX%3d1209959051%2fE%3d792400132%2fR%3ddev_net%2fK%3d5%2fV%3d1.1%2fW%3dJ%2fY%3dYAHOO%2fF%3d1430890299%2fS%3d1%2fJ%3dCCBB49D1');
if(window.yzq_s)yzq_s();
</script><noscript><img width=1 height=1 alt=""
src="http://us.bc.yahoo.com/b?P=Ri5IOtFJ.../W=J/Y=YAHOO/F=3881337183/Q=-1/S=1/J=CCBB49D1"></noscript>
<!-- com3.devnet.re3.yahoo.com compressed/chunked Sun May 4 20:44:11 PDT
2008 -->