« April 2009 »
S M T W T F S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30

You are not logged in. Log in
Open Community
Post to this Blog

Helpful Links
Angelfire Home
Register Your Domain
Angelfire's Twitter
Angelfire's Facebook

Angelfire Club Blog
Need assistance and ideas from fellow Angelfire members to help build and manage your website? You've come to the right place!
To join this Community Blog, you must be an Angelfire member. Just click the "Join this Community" link, and start posting immediately.

Hint: When posting, select a topic that most relates to your question. (News, FrontPage, HTML Questions, etc...) This will help to keep the blog organized for everyone.

View Latest Entries

Friday, 24 April 2009
JavaScript trouble
Topic: HTML Questions

I am having problems with the following JavaScript code included in my page http://qwerty-2009.angelfire.com/js-prime.html .

<SCRIPT>

a=new Array;ttt=new Array;

a[0]="Algorithm ... ";ttt[0]=0;

......

a[3]="or ... ";ttt[3]=2;

for(j=0;j<=3;j++){

c=a[j];

document.write(tab(ttt[j]));document.write(c);

document.write("<br>");}

</SCRIPT>

Here tab(n) is a string valued function defined in the head which gives a number of blank spaces.

I find that the first element of the array a is output correctly, but on subsequent passes of the "for" loop the value output is "undefined". No matter what i change the lower limit of the "for" loop to within the range 0..3, the first value is correctly written while the rest are given as "undefined".


Posted by qwerty-2009 at 3:01 AM EDT | Post Comment | View Comments (2) | Permalink | Share This Post

Sunday, 14 June 2009 - 8:47 AM EDT

Name: qwerty-2009
Home Page: http://qwerty-2009.angelfire.com

I observe that trouble occurs with the same code even when working offline. Is this a deficiency in JavaScript itself or is there something wrong with my understanding?

Wednesday, 17 October 2018 - 4:30 AM EDT

Name: "how to fix connections for bluetooth audio devi
Home Page: http://windowstuts.net/mobile

If you are here to know how to fix connections for bluetooth audio devices and wireless displays in windows 10 mobile this portal will be an suitable option for you to clarify all your hurdles.

View Latest Entries