473,385 Members | 1,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Alert - Align right

Hi everyone,
I am doing a page for an Israeli customer and doing a form validator
with a javascript alert popup for errors listing the fields missed, line by
line.

When this pops up the text is aligned to the left left, however in
Israel, Hebrew text is right and read right to left, so should be aligned
right.

Is there a way to do this? Can someone supply me the code if it is
doable? Perhaps with style sheets or similar? Is it browser version
dependant? IE it should work for Israeli clients?

Many thx
Stu

Jul 23 '05 #1
1 4433


Stuart Palmer wrote:

I am doing a page for an Israeli customer and doing a form validator
with a javascript alert popup for errors listing the fields missed, line by
line.

When this pops up the text is aligned to the left left, however in
Israel, Hebrew text is right and read right to left, so should be aligned
right.

Is there a way to do this? Can someone supply me the code if it is
doable? Perhaps with style sheets or similar? Is it browser version
dependant? IE it should work for Israeli clients?


At least with MSIE/Win you could use
showModalDialog('dialog.html')
instead of alert and then in dialog.html make sure you use the HTML
techniques (lang, dir) so that the Hebrew text is displayed properly.
Documentation for showModalDialog is here:
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/showmodaldialog.asp>

I don't know if any browser displays alert or prompt or confirm
differently depending on the lang/dir settings for the HTML page the
dialogs are called from.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bill | last post by:
Hi. I have a multi-page form where the user enters datails to be submitted to a database on the final page. To move through the pages I have Next and Previous buttons using the following...
9
by: Justin Koivisto | last post by:
Is there a way to create an alert-like message box that uses a custom image? Basically, I want to replace the default ! image with something else. -- Justin Koivisto - spam@koivi.com PHP...
7
by: Phil Powell | last post by:
Code: <!-- script src="/js/val_header.js"></script --> <style> <!-- BODY { scrollbar-3d-light-color:#eeeedd; scrollbar-arrow-color:#000000; scrollbar-base-color:#000000;...
2
by: Oran | last post by:
Dear Friends, I am wondering, how can i show Alert() messages includes text aligned to the right of the message box on the screen. i am looking for something like the "\n" to do this. ...
8
by: neoswf | last post by:
Hey Guys im looking for a way to align text in an Alert messege to the right ive searched through the forum db and havent found an answer, only open discussions Thanks in advanced NeoSwf
1
by: goal2007 | last post by:
I have a user control called InsightIntegMenu.ascx here is the Code Control Language="C#" AutoEventWireup="true" CodeFile="InsightIntegMenu.ascx.cs" Inherits="InsightIntegMenu" %> ...
4
by: clentoc | last post by:
I'm pretty new to javascript so this may well be a really basic error, but I've spent hours trying to fix it with no joy. I have written some code which looks in a CSV file, filters it depending...
3
by: happyse27 | last post by:
Hi All, I wanted to align the text box for user registration but the code just wont budge... Kindly advise what is wrong? Cheers... Andrew <HTML>
3
by: tiijnar | last post by:
Hi, I am using JSPs in my application. The code goes like this- <% i=0; while(i<4) { %> <form name="Form" action="test.jsp"> <table align="left" width="100%">
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.