By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,247 Members | 1,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,247 IT Pros & Developers. It's quick & easy.

Confirm dialog with \t alignment

P: n/a
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
Jan 10 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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)
Jan 10 '08 #2

P: n/a
"Evertjan." <ex**************@interxnl.netwrote in message
news:Xn********************@194.109.133.242...
00steve wrote on 10 jan 2008 in comp.lang.javascript:
Hi,
I am using a confirm dialog ...
[snip]
stipuleting you are takling browser output,
your empty spaces way you need to use a font like Courier
and use &nbsp;&nbsp;&nbsp;

use an html <table>

BTW, what is your javascript Q?

Show your minimal code perhaps.
I think that the OP is referring to "alert()".
Jan 10 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.