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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript help

Status
Not open for further replies.

andrewcarter

Technical User
Aug 18, 2003
16
0
0
US


If you could help me just a little bit, it would be greatly appreciated. I'm trying to use html and JavaScript to interact with my company's program that prints out text-only documents by room number, at a rate of 30 documents a day. I know the names of the text, it's the same for every day: it's the room number (example: Room206.txt). This is why it's in folders for each day...so they won't get confused. Their program just puts room numbers, not days. I wanted to use JavaScript and a couple of drop-down menus at the top and a small calendar in the middle of the left frame plus a drop-down menu with the text names at the bottom of the frame, but don't know how to get JavaScript to display the selected month, day and year. I also want to pick from the rooms all in the same frame (on the left) and have it displayed in the frame on the right.

Many thanks,
Stephen



 
show us the code you've come up with so far so we can help with the dates part.

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
<td bgcolor=&quot;#3399cc&quot; width=&quot;180&quot; height=&quot;570&quot;>
<table width=&quot;180&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; cool gridx=&quot;5&quot; gridy=&quot;2&quot; height=&quot;600&quot; showgridx showgridy usegridx usegridy>
<tr height=&quot;30&quot;>
<td width=&quot;10&quot; height=&quot;599&quot; rowspan=&quot;5&quot;></td>
<td width=&quot;169&quot; height=&quot;30&quot; colspan=&quot;3&quot;></td>
<td width=&quot;1&quot; height=&quot;30&quot;><spacer type=&quot;block&quot; width=&quot;1&quot; height=&quot;30&quot;></td>
</tr>
<tr height=&quot;50&quot;>
<td width=&quot;70&quot; height=&quot;50&quot; valign=&quot;top&quot; align=&quot;left&quot; xpos=&quot;10&quot;><select name=&quot;selectName&quot; size=&quot;1&quot;>
<option value=&quot;2002&quot;>2002</option>
<option selected value=&quot;2003&quot;>2003</option>
<option value=&quot;c:/VivariumData/Reports/CBldg/2004&quot;>2004</option>
</select></td>
<td width=&quot;99&quot; height=&quot;50&quot; colspan=&quot;2&quot; valign=&quot;top&quot; align=&quot;left&quot; xpos=&quot;80&quot;><select name=&quot;month&quot; class=&quot;visitSmall&quot;>
<option value=&quot;1&quot;>January</option>
<option value=&quot;2&quot;>February</option>
<option value=&quot;3&quot;>March</option>
<option value=&quot;4&quot;>April</option>
<option value=&quot;5&quot;>May</option>
<option value=&quot;6&quot;>June</option>
<option value=&quot;7&quot;>July</option>
<option value=&quot;dummy calendar.txt&quot; selected>August</option>
<option value=&quot;9&quot;>September</option>
<option value=&quot;10&quot;>October</option>
<option value=&quot;11&quot;>November</option>
<option value=&quot;12&quot;>December</option>
</select></td>
<td width=&quot;1&quot; height=&quot;50&quot;><spacer type=&quot;block&quot; width=&quot;1&quot; height=&quot;50&quot;></td>
</tr>
<tr height=&quot;21&quot;>
<td width=&quot;169&quot; height=&quot;21&quot; colspan=&quot;3&quot; valign=&quot;top&quot; align=&quot;left&quot; xpos=&quot;10&quot;>
<table width=&quot;160&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#e6e794&quot;>
<tr>
<td>
<div align=&quot;center&quot;>
<font size=&quot;-1&quot;><b>SU</b></font></div>
</td>
<td>
<div align=&quot;center&quot;>
<font size=&quot;-1&quot;><b>M</b></font></div>
</td>
<td>
<div align=&quot;center&quot;>
<font size=&quot;-1&quot;><b>T</b></font></div>
</td>
<td>
<div align=&quot;center&quot;>
<font size=&quot;-1&quot;><b>W</b></font></div>
</td>
<td>
<div align=&quot;center&quot;>
<font size=&quot;-1&quot;><b>TR</b></font></div>
</td>
<td>
<div align=&quot;center&quot;>
<font size=&quot;-1&quot;><b>F</b></font></div>
</td>
<td>
<div align=&quot;center&quot;>
<font size=&quot;-1&quot;><b>S</b></font></div>
</td>
</tr>
</table>
</td>
<td width=&quot;1&quot; height=&quot;21&quot;><spacer type=&quot;block&quot; width=&quot;1&quot; height=&quot;21&quot;></td>
</tr>
<tr height=&quot;195&quot;>
<td width=&quot;169&quot; height=&quot;195&quot; colspan=&quot;3&quot; valign=&quot;top&quot; align=&quot;left&quot; xpos=&quot;10&quot;>
<table width=&quot;160&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#e6e794&quot; height=&quot;150&quot;>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
</tr>
<tr>
<td>8</td>
<td>9</td>
<td>10</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
</table>
</td>
<td width=&quot;1&quot; height=&quot;195&quot;><spacer type=&quot;block&quot; width=&quot;1&quot; height=&quot;195&quot;></td>
</tr>
<tr height=&quot;303&quot;>
<td width=&quot;70&quot; height=&quot;303&quot; valign=&quot;top&quot; align=&quot;left&quot; xpos=&quot;10&quot;><select name=&quot;selectName&quot; size=&quot;1&quot;>
<option value=&quot;one&quot;>first</option>
<option value=&quot;two&quot;>second</option>
<option value=&quot;three&quot;>third</option>
</select></td>
<td width=&quot;30&quot; height=&quot;303&quot;></td>
<td width=&quot;69&quot; height=&quot;303&quot; valign=&quot;top&quot; align=&quot;left&quot; xpos=&quot;110&quot;><input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Submit &quot; border=&quot;0&quot;></td>
<td width=&quot;1&quot; height=&quot;303&quot;><spacer type=&quot;block&quot; width=&quot;1&quot; height=&quot;303&quot;></td>
</tr>
<tr height=&quot;1&quot; cntrlrow>
<td width=&quot;10&quot; height=&quot;1&quot;><spacer type=&quot;block&quot; width=&quot;10&quot; height=&quot;1&quot;></td>
<td width=&quot;70&quot; height=&quot;1&quot;><spacer type=&quot;block&quot; width=&quot;70&quot; height=&quot;1&quot;></td>
<td width=&quot;30&quot; height=&quot;1&quot;><spacer type=&quot;block&quot; width=&quot;30&quot; height=&quot;1&quot;></td>
<td width=&quot;69&quot; height=&quot;1&quot;><spacer type=&quot;block&quot; width=&quot;69&quot; height=&quot;1&quot;></td>
<td width=&quot;1&quot; height=&quot;1&quot;></td>
</tr>
</table>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top