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

Javascript Woes 1

Status
Not open for further replies.

schase

Technical User
Sep 7, 2001
1,756
US
I got this code online. It almost totally encompases what I want to do.

I have a jump menu that pulls values from a database. I would like it to either by onchange, or by clicking go to popup a window that I can size (no scrollbars, etc) to show an anchored window. Heres the code I have so far, but I can't get it to popup, it loads the target in full page.

Thank you in advance for your help.

<script language=&quot;JavaScript&quot;>
<!--
function gotohref(theSelect) {
thehref = theSelect.options[theSelect.selectedIndex].value;
window.location.href = thehref;
}
// -->

</script><FORM NAME=&quot;findit&quot;>
<select size=1 onChange=&quot;gotohref(this);&quot;>
<option SELECTED>Navigate Our Site
<% Do While Not rs.EOF %>
<option value=&quot;missionlist.asp#<% = rs(&quot;mission&quot;) %>&quot;>
<% = rs(&quot;mission&quot;) %>
</option>
<% rs.movenext %>
<% loop %>
</select>
<br></p>
</select>

</body>
</html>
<%
rs.Close()
%>
 
Instead of: window.location.href = thehref;



Put:
window.open(thehref,'','width=600,height=450,top=95,left=95');

If it help, mark it!!! ;-)

Have Fun...

Sharky99 >:):O>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top