Solved

Tab in html

Posted on 2004-04-29
4
177,137 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

821 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