Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 24th, 2007, 10:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default Tab + ASP

How can I get a tab function to work in a <textarea></textarea> field when a user inputs information - currently the only way that information can be separated is by the space bar? I need it so that when the information that is entered is displayed on a page then it formats the tabs that have been added using the following:

<%=replace(replace(strVar, vbTab, "<BR>"), vbCrLf, "<BR>")%>

But when I hit tab on the keyboard, it jumps to the next field on the form.

Can anyone help me?

thanks

Adam

 
Old April 24th, 2007, 11:38 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You need to handle the onKeyDown event; check this blog out:
http://www.dotnetjunkies.com/WebLog/.../01/10607.aspx

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old April 25th, 2007, 04:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

Great, thanks; I've managed to sort it so that I can get the tabs working in the <textarea></textarea>

My next question is displaying these tabs that have been added in an asp page that is updated via the <textarea></textarea>

I'm trying to use:

 <%=replace(replace(strDescription, vbTab, "<BR>"), vbCrLf, "<BR>")%>

but it's not appearing correctly.

thanks

Adam






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable a tab on a tab control. dbradley VB.NET 6 April 14th, 2011 10:04 AM
Tab Index Anupamab Javascript How-To 2 January 11th, 2007 02:20 AM
Writing a TAB in ASP rtr1900 ASP.NET 1.0 and 1.1 Basics 1 May 19th, 2006 01:54 PM
ASP.NET Tab Control Programming nelson_r VS.NET 2002/2003 0 November 24th, 2005 06:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.