Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 23rd, 2006, 02:25 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: , , .
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default Javascript Confirm Message box

Hello,

I am developing a website for a french client. One of the page is using an option where user clicks on a button and it opens a javascript CONFIRM MESSAGE BOX.

I need to change the CONFIRM MESSAGE BOX buttons text from "Yes/No" to "Ja/Na".

How can I do this?

Any idea..
Any help...
Will really be appriciated.


Thank you,
Zeeshan Ahmed
itHighway

  #2 (permalink)  
Old September 23rd, 2006, 03:20 PM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You can't change the button text specifically. If the client's machine is set to French then the button captions will appear in French, can't remember what they actually show.

--

Joe (Microsoft MVP - XML)
  #3 (permalink)  
Old September 24th, 2006, 01:20 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: , , .
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default

Client web site is hosted with a french hosting company and default langugage on server is French. But still the Javascript popup window is showing "YES/NO".

Any idea??

  #4 (permalink)  
Old September 24th, 2006, 02:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: High Wycombe, UK, United Kingdom.
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

what language is setup on the CLIENT side as the Javascript will be executed there ?
  #5 (permalink)  
Old September 24th, 2006, 10:56 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: , , .
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default

I think by default ENGLISH is set.
How should I setup language on CLIENT side?


Thank you,
ZA

  #6 (permalink)  
Old September 25th, 2006, 02:51 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You can change the regional settings from the control panel and/or change the preferred language setting from the browser options menu.

--

Joe (Microsoft MVP - XML)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript confirm box with just an 'OK' button crmpicco Javascript How-To 28 March 12th, 2014 06:44 AM
JavaScript Confirm Box ricespn Classic ASP Basics 1 January 20th, 2007 12:48 AM
prob.. confirm message abhit_kumar JSP Basics 0 December 29th, 2004 06:37 AM
Confirm alert box - need help, Please! larry HTML Code Clinic 1 January 25th, 2004 02:07 AM
how to default confirm box to NO in javascript. An Javascript 1 June 8th, 2003 07:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.