<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I've implemented the following popup menu via the
Perl CGI:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>$cgi->
popup_menu<BR>(<BR>
-name=>'ap_name',<BR>
-values=>\@ap_names,<BR>
-labels=>\%ap_labels,<BR>
-size=>'8',<BR>
-onclick=>"set_apx( )",<BR>
-language=>"javascript"<BR>),<BR></FONT></FONT></DIV></BLOCKQUOTE>
<DIV dir=ltr><FONT face=Arial size=2><FONT face="Times New Roman" size=3><FONT
face=Arial size=2>This is the <FONT face="Times New Roman MT Extra Bold"
size=3>set_apx( )</FONT> function that executes with the "onclick" action
:</FONT></FONT></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV dir=ltr><FONT face=Arial size=2><FONT face="Times New Roman" size=3><FONT
face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><BR>qq(<script
language="javascript"><!--<BR>
function set_apx( )
{<BR>
var
ap_name;<BR>
ap_name=apps_menu['ap_name'].value;<BR>
alert(ap_name); // Temp! display the
ap_name.<BR>//
document.apps_menu.action=apps_menu['ap_name'].value;<BR>//
document.apps_menu.action=ap_name;<BR>
ap_name.submit( );<BR> }<BR>//
--></script>),</FONT></DIV></BLOCKQUOTE></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Either of the two commented-out lines (as I
understand and expected) should accomplish the same result with JavaScript
executing, branching, or otherwise transfering (. . .whatever) to the URL;
however, nothing (other than the alert) appears to happen when a row is
clicked. When a popup menu row is clicked, with the submit function
call enabled (as shown above), MS/IE returns the following message (I guess I
understand this because from what I've read, submit( ) is associated with a
document's internal forms, rather than an external URL ?):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>
Error: Object doesn't support this property or method.</FONT></DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>The value of the variable, <FONT
face="Times New Roman" size=3><STRONG>ap_name</STRONG></FONT>, is correct (per
the alert display). This application name is the URL that I want to
execute (publish, . . .whatever). I have tried so many things to start the
URL. What should I be thinking or reading? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Should I expect the JavaScript instruction,
<FONT face="Times New Roman" size=3>document.apps_menu.action=ap_name; </FONT>,
to branch to another URL? I guess I need to see an
example.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>OTTF,<BR>Ron Wingfield</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=1>FreeBSD 4.8 -- Apache http 2.0.28 --
MySQL client/server 4.1.7<BR>Perl 5.8.5 -- p5-DBD-mysql-2.9004 driver --
p5-DBI-1.46</FONT></DIV>
<DIV>
<HR>
</DIV></BODY></HTML>