Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Confirm dialog with \t alignment

Reply
Thread Tools

Confirm dialog with \t alignment

 
 
00steve
Guest
Posts: n/a
 
      01-10-2008
Hi,
I am using a confirm dialog to display a list of altered records when
the user submits changes. I would like it displayed in the following
format:


Student Level Result
--------------------------------------------------------------
Test Student 21 4

I know I can use \t for the spacing, but the thing is, for longer
names, I am getting the level and result appearing an extra tab to the
right. I have tried just padding the student name with empty spaces to
a set length, but it would appear that some characters are wider than
others, and as a result, the level and result are not alligned.

Is there any way to have this confirm dialog formatted with horizontal
allignment of the data?

Thanks
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      01-10-2008
00steve wrote on 10 jan 2008 in comp.lang.javascript:

> Hi,
> I am using a confirm dialog to display a list of altered records when
> the user submits changes. I would like it displayed in the following
> format:
>
>
> Student Level Result
> --------------------------------------------------------------
> Test Student 21 4
>
> I know I can use \t for the spacing, but the thing is, for longer
> names, I am getting the level and result appearing an extra tab to the
> right. I have tried just padding the student name with empty spaces to
> a set length, but it would appear that some characters are wider than
> others, and as a result, the level and result are not alligned.
>
> Is there any way to have this confirm dialog formatted with horizontal
> allignment of the data?


stipuleting you are takling browser output,
your empty spaces way you need to use a font like Courier
and use    

use an html <table>

BTW, what is your javascript Q?

Show your minimal code perhaps.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
confirm dialog , return value =?Utf-8?B?UHJpeWE=?= ASP .Net 2 12-26-2005 04:51 PM
How to show a confirm dialog? ad ASP .Net 3 06-04-2005 03:47 AM
Problem showing confirm dialog on button webcontrol's onclick even =?Utf-8?B?VGFydW4gVXBhZGh5YXlh?= ASP .Net 3 06-02-2005 04:19 PM
JS Confirm dialog from datagrid template column Patrick Delifer ASP .Net 2 04-28-2004 06:38 PM
Finally found how to display confirm dialog box Tony Baker ASP .Net 0 12-17-2003 11:59 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57