Solved

Tab in html

Posted on 2004-04-29
4
177,130 Views
Last Modified: 2012-08-14
I have a form to submit to our backend system - fine and great, right?

However, the fields I have to send require me to use a tab.  I cannot for the life of me remember learning this in any class ever.

Is there a way to send an html tab within a field so that my field will look like this:

FIELD1|(((TAB GOES HERE)))  2| etc. etc.

Help????!!!
0
Comment
Question by:foreverdita
4 Comments
 
LVL 32

Expert Comment

by:ldbkutty
ID: 10949904
There is no TAB tag available in html, upto my knoledge...
Use   ...this is equal to a single blank space....

Example:

<html>
<body>
    FIELD 1| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FIELD 2| ....
</body>
</html>
0
 
LVL 7

Accepted Solution

by:
mark-b earned 250 total points
ID: 10950222
If this is for parsing purposes then just having tabs in the document will be parsed out fine (they *are* in the document).  It is only when the document is used for display by an end user-agent (which, I think your document is getting parsed by the server code..?) that tabs are treated the same as 'other' whitespace.

Of course, when you bring it up in a brower it would look like this:

FIELD1| 2| 3 | 4 | etc. etc.

However, if you just dump the file out on the server side (print it to the system console, which should respect tab characters), then it will look like this (assuming 5 character tab):

FIELD1|     2|     3 |     4 |     etc. etc.

-Mark
0
 

Author Comment

by:foreverdita
ID: 10950498
That works.  Thanks!
0
 
LVL 4

Expert Comment

by:Neil_Simpson
ID: 10950535
If you are using javascript to process the values prior to submitting them to the backend system then you can insert '\t' between the fields as this represents a tab.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

920 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

12 Experts available now in Live!

Get 1:1 Help Now