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
</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>