Solved

Tab in html

Posted on 2004-04-29
4
177,122 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
Comment Utility
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
Comment Utility
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
Comment Utility
That works.  Thanks!
0
 
LVL 4

Expert Comment

by:Neil_Simpson
Comment Utility
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

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

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

772 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

11 Experts available now in Live!

Get 1:1 Help Now