Solved

Submit Button

Posted on 2001-07-18
8
277 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
  • 4
  • 2
  • 2
8 Comments
 
LVL 9

Accepted Solution

by:
msdixon earned 200 total points
Comment Utility
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
Comment Utility
I'm sorry, but this doesn't work for me.
0
 

Author Comment

by:insight974
Comment Utility
I'm sorry, but this doesn't work for me.
0
 
LVL 9

Expert Comment

by:msdixon
Comment Utility
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

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

Author Comment

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

Expert Comment

by:Netminder
Comment Utility
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
Comment Utility
Force/accepted by

Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
you tube .com 2 189
TFS - Rolling back to a previous release / CRM 2011 8 102
Intranet building Software 8 68
I starting with php 12 89
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 …
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. 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 :…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now