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!

Help Java nad CF

Status
Not open for further replies.

rolap

Programmer
Dec 3, 2000
4
US
I am new to this cold fusion stuff and trying to get a dd box populated with part numbers to load the url that is associated with it in a frame. Someone was kind enough to give me the code but where the javascript executes in the body I think I have the syntax wrong can you please help?
thanks






<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>


<HTML>
<HEAD>
<TITLE>Main_Menu</TITLE>

<cfquery name=&quot;Get_PartNumbers&quot; datasource=&quot;ewi&quot; dbtype=&quot;ODBC&quot;>
Select PN, Location
From Directory
Order by PN
</cfquery>

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
function jump (page) {
//alert(page);
window.location = page;
}
</SCRIPT>
</HEAD>

<BODY>
<TABLE Width=&quot;100%&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; border=&quot;0&quot; background=&quot;images/Back_a.gif&quot; >

<TR>
<TD><IMG height=92 alt=&quot;&quot; src=&quot;images/logo-corp.gif&quot; width=144 border=0></TD>

<td align=&quot;Left&quot; valign=&quot;bottom&quot;>Select Part Number&nbsp;&nbsp;

<SELECT NAME=&quot;page&quot; onChange = &quot;javascript:jump(this.options[this.selectedindex].value)&quot;>
<CFOUTPUT query=&quot;Get_PartNumbers&quot;>
<OPTION value=&quot;#Location#&quot; selected> #PN# </OPTION>
</CFOUTPUT>
</select>
</TD>

<td align=&quot;left&quot; valign=&quot;middle&quot;></td>

<TD></TD>

</TR>
</TABLE>

</BODY>
</HTML>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top