Solved

Submit Button

Posted on 2001-07-18
8
285 Views
Last Modified: 2013-12-24
I have a DTC button in my page. I would like that pressing Enter will be the same as clicking the button (similar to a Submit button). I don't know how to get that in Interdev.
Thank you
0
Comment
Question by:insight974
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 9

Accepted Solution

by:
msdixon earned 200 total points
ID: 6296095
make sure it's included within the form tags. below is a simple page:

<%@ Language=VBScript %>
<%
for each item in Request.Form
     Response.Write "<b>" & item &"</b> " & Request.Form(item) & "<br>"
next
%>
<SCRIPT id=DebugDirectives runat=server language=javascript>
// Set these to true to enable debugging or tracing
@set @debug=false
@set @trace=false
</SCRIPT>
<% ' VI 6.0 Scripting Object Model Enabled %>
<!--#include file="../_ScriptLibrary/pm.asp"-->
<% if StartPageProcessing() Then Response.End() %>
<FORM name=thisForm METHOD=post>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<form method=post>
<input type=text name=abc value=xyz>
<!--METADATA TYPE="DesignerControl" startspan
<OBJECT id=Button1 style="LEFT: 0px; TOP: 0px" classid="clsid:B6FC3A14-F837-11D0-9CC8-006008058731">
     <PARAM NAME="_ExtentX" VALUE="1773">
     <PARAM NAME="_ExtentY" VALUE="714">
     <PARAM NAME="id" VALUE="Button1">
     <PARAM NAME="Caption" VALUE="Button1">
     <PARAM NAME="Image" VALUE="">
     <PARAM NAME="AltText" VALUE="">
     <PARAM NAME="Visible" VALUE="-1">
     <PARAM NAME="Platform" VALUE="256">
     <PARAM NAME="LocalPath" VALUE="../"></OBJECT>
-->
<!--#INCLUDE FILE="../_ScriptLibrary/Button.ASP"-->
<SCRIPT LANGUAGE=JavaScript RUNAT=Server>
function _initButton1()
{
     Button1.value = 'Button1';
     Button1.setStyle(0);
}
function _Button1_ctor()
{
     CreateButton('Button1', _initButton1, null);
}
</script>
<% Button1.display %>

<!--METADATA TYPE="DesignerControl" endspan-->
</form>
<P>&nbsp;</P>

</BODY>
<% ' VI 6.0 Scripting Object Model Enabled %>
<% EndPageProcessing() %>
</FORM>
</HTML>
0
 

Author Comment

by:insight974
ID: 6705711
I'm sorry, but this doesn't work for me.
0
 

Author Comment

by:insight974
ID: 6705712
I'm sorry, but this doesn't work for me.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 9

Expert Comment

by:msdixon
ID: 6705748
hmm, if you copied the entire page, put it into a new page and saved it you shouldn't have any problems (assuming you have the script library installed).

what browser are you using?
0
 

Author Comment

by:insight974
ID: 6706017
I'm using Internet Explorer 6. How do I install that Script library? Thank you
0
 

Author Comment

by:insight974
ID: 6706026
Hold on, now I could do it. You're the best!!!!!!!!! And you deserve the points.
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6778493
insight974,

These questions are still open, and our records show that you have logged in recently. Please resolve them appropriately as soon as possible. Continued disregard of your open questions will result in the force/acceptance of a comment as an answer; other actions affecting your account may also be taken. I will revisit these questions in approximately seven (7) days.

http://www.experts-exchange.com/jsp/qShow.jsp?qid=20152887
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20162268
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20250688
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20259747
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20259748

Thanks,

Netminder
Community Support Moderator
Experts Exchange
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6821438
Force/accepted by

Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question