Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
177
rated 0 times [  179] [ 2]  / answers: 1 / hits: 148225  / 12 Years ago, sat, march 24, 2012, 12:00:00

I don't know how should I titled this question but hope my friends will understand the problem and will help me :)



I want to show log message in arabic language using JavaScript alert() function, for which I code:



alert('أدخل سعر الافتتاح');


which means



alert('Enter opening price');


but when i save the .js file Dreamweaver says
enter



and if I run the script browser says



enter



this page contains



<meta http-equiv=Content-Type content=text/html; charset=utf-8 />


and i am using a lot of text in arabic which works fine.



now how can I use alert for different language?


More From » html

 Answers
7

thanks friends, after trying all and not getting desired result i think to use a hidden div with that arabic message and with jQuery fading affects solved the problem. Script I wrote is:
.js file



$('#enterOpeningPrice').fadeIn();
$('#enterOpeningPrice').fadeOut(10000);


.html file



<div id=enterOpeningPrice>
<p>أدخل سعر الافتتاح</p>
</div>


Thanks to all..


[#86626] Friday, March 23, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aricl

Total Points: 215
Total Questions: 91
Total Answers: 94

Location: Venezuela
Member since Thu, Jul 15, 2021
3 Years ago
aricl questions
Mon, Aug 2, 21, 00:00, 3 Years ago
Mon, Aug 3, 20, 00:00, 4 Years ago
Thu, Feb 13, 20, 00:00, 4 Years ago
Wed, Oct 23, 19, 00:00, 5 Years ago
;