The problem is with the way you're defining the arrays. You need to use this
syntax
br>
var mArray = new Array();
var mArray[0] = new Array();
mArray[0][0] = "some text";
var mArray[1] = new Array();
mArray[1][0] = "more text";
You should also use an indicator in your PHP code to determine if the
<script> tags are active, so that you're not constantly turning them on and
off, as this will have a serious overhead when loading the page.
Rob.
-----Original Message-----
From: 1stJavaScript%40yahoogroups.com">1stJavaScript
yahoogroups.com [mailto: 1stJavaScript%40yahoogroups.com">1stJavaScript
yahoogroups.com] On
Behalf Of Stone
Sent: 02 July 2008 16:38
To: 1stJavaScript%40yahoogroups.com">1stJavaScript
yahoogroups.com
Subject: [1stJavaScript] Re: java array won't fill more then two rows.
here is what the source of the webpage shows is being loaded into the
java array:
<script type='text/javascript'>var mArray = new Array(new Array(),
new Array()); var num_rec='4';</script><script
type='text/javascript'>mArray['0']['0'] = '1';</script><script
type='text/javascript'>mArray['0']['1'] = 'Good Will
Hunting';</script><script type='text/javascript'>mArray['0']['2']
= 'Drama';</script><script type='text/javascript'>mArray['0']['3']
= 'Home';</script><script type='text/javascript'>mArray['0']['4']
= 'Matt Damon, Robin Williams, Ben Affleck, Minnie Driver, Stellan
Skarsgard';</script><script type='text/javascript'>mArray['0']['5']
= 'Matt Damon and Ben Affleck won an Oscar for their script about
friendship and risk for this film directed by Gus Van Sant. With an
abuse-filled past and a janitorial job, Will Hunting (Damon) spends
his days hanging out with best friend Chuckie Sullivan (Affleck). But
the aimless young man's also a mathematical genius, and when his
talents are discovered, a therapist (Robin Williams) helps Will
confront the demons that have been holding him
back.';</script><script type='text/javascript'>mArray['0']['6']
= '1997';</script><script type='text/javascript'>mArray['0']['7']
= 'United States';</script><script type='text/javascript'>mArray['0']
['8'] = '1';</script><script type='text/javascript'>mArray['0']['9']
= '89';</script><script type='text/javascript'>mArray['0']['10']
= '';</script><script type='text/javascript'>mArray['0']['11']
= 't';</script><script type='text/javascript'>mArray['1']['0']
= '2';</script><script type='text/javascript'>mArray['1']['1']
= 'Good Morning Vietnam';</script><script
type='text/javascript'>mArray['1']['2']
= 'Comedy/Drama';</script><script type='text/javascript'>mArray['1']
['3'] = 'Home';</script><script type='text/javascript'>mArray['1']
['4'] = 'Robin Williams, Forest Whitaker, Tung Thanhtran, Bruno
Kirby, Robert Wuhl';</script><script type='text/javascript'>mArray
['1']['5'] = 'When his manic radio show proves a colossal morale-
booster, Armed Forces Radio deejay Adrian Cronauer (Robin Williams)
gets sent to Vietnam. His monkeyshines -- lampooning any and all
sacred cows -- tickle the troops but land him in hot water with his
superiors, who'd like the broadcast to be sanitized and
uncontroversial. Then, after encounteri