Solved

Submit Button

Posted on 2001-07-18
8
286 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
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to Import and export files in 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 : Click on Too…

691 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