Google Groups Home
Help | Sign in
Message from discussion Novice Seeks Help
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Tom de Neef  
View profile
 More options May 9, 2:50 am
Newsgroups: comp.lang.javascript
From: "Tom de Neef" <tden...@qolor.nl>
Date: Fri, 9 May 2008 08:50:41 +0200
Local: Fri, May 9 2008 2:50 am
Subject: Re: Novice Seeks Help
"eBob.com" <eBob....@totallybogus.com> schreef in bericht
news:BJPUj.401301$uN4.312173@fe07.news.easynews.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

a)The html source also contains a line
<script  type="text/javascript" src="jspost.js"></script>
That is a javascript file. It will be loaded and becomes part of all the
javascript on the page. In that file function createForms() will have been
declared. (Try viewing the js file.)

b)The only difference between "script" and "scr"+"ipt" that I can think of
is to make it harder to find script elements in a file via text search in
the source.

Tom


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google