Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

spot small program problem???????

Status
Not open for further replies.

fozzy

MIS
Oct 22, 2001
2
CA
Array is not included nor html page.

Below shows everything in the function TALISTING() (a drop menu) but also shows below the menu - undefined - ????????

WHY ????


function TALISTING()
{
document.writeln(&quot;<form name='ta_list'>&quot;);
document.writeln(&quot;<select onChange='ta_jumpto();' &quot; + &quot;name='tamenu'>&quot; + &quot;&quot;);
document.writeln(&quot;<option selected>&quot;+&quot;Trading Arrangements Contents&quot;+&quot;</option>&quot;);
for (i=0; i<tamenu.length ; i++)
{
var breaking = tamenu;
var breakup = breaking.split(&quot;£&quot;);
var pattern = /Help Desk/i;
if (pattern.exec(tamenu))
document.write(&quot;<option value=&quot; + breakup[1] + &quot; class=\&quot;jumpmenu\&quot;>&quot; + breakup[0] + &quot;</option>&quot;);
else
document.write(&quot;<option value=&quot; + breakup[1] + &quot;>&quot; + breakup[0] + &quot;</option>&quot;);
}
document.writeln(&quot;</select>&quot;);
document.writeln(&quot;</form>&quot;);
}

document.writeln(&quot;<table width='468' border='0' cellspacing='0' cellpadding='0' height='30'><tr align='right' valign='middle'><td height='30' width='251' bgcolor='#b5c0ca'>&quot;);
document.writeln(TALISTING() + &quot;</td></tr></table>&quot;);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top