Hi.
I want to change language on my site online. So, I wrote this:
<form action="<?= preg_replace("/&/", "&", $_SERVER['REQUEST_URI'])
?>" method="post" name="change_la ng_form">
<p style="display: none;"><input type="hidden" name="change_la ng" value="1">
<label for="lang" accesskey="l">= = <?= CHOOSE_LANG ?> ==</label></p>
<p class="margin"> <select id="lang" name="lang" class="langsect ion"
onChange="if (this.options[this.selectedIn dex].value != 'null')
{document.chang e_lang_form.sub mit()}">
<option value="">== <?= CHOOSE_LANG ?> ==</option>
<option value="pl"><?= PL ?></option>
<option value="en"><?= EN ?></option>
</select></p>
</form>
but this not working in text only browsers. I was tested it in Lynx
browser. How can I change it ? Maybe is there any other solution to
change language ?
Any suggestion?
Regards,
Cezar 7 1962
Cezary wrote: I want to change language on my site online. So, I wrote this:
{document.chang e_lang_form.sub mit()}">
It isn't a problem with text only browsers, the problem is with a dependency
on JavaScript.
Use a submit input.
--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
On Sat, 14 Aug 2004 20:48:51 +0100, David Dorward <do*****@yahoo. com>
wrote: Cezary wrote:
I want to change language on my site online. So, I wrote this: {document.chang e_lang_form.sub mit()}">
It isn't a problem with text only browsers, the problem is with a dependency on JavaScript.
Use a submit input.
Or, depending on what the OP really wanted, a couple of straightforward
links to the version in each language.
--
Stephen Poley http://www.xs4all.nl/~sbpoley/webmatters/
Cezary <ce*****@imail. net.pl> wrote in
news:cf******** **@atlantis.new s.tpi.pl: Hi.
I want to change language on my site online. So, I wrote this:
<form action="<?= preg_replace("/&/", "&", $_SERVER['REQUEST_URI']) ?>" method="post" name="change_la ng_form"> <p style="display: none;"><input type="hidden" name="change_la ng" value="1"> <label for="lang" accesskey="l">= = <?= CHOOSE_LANG ?> ==</label></p> <p class="margin"> <select id="lang" name="lang" class="langsect ion" onChange="if (this.options[this.selectedIn dex].value != 'null') {document.chang e_lang_form.sub mit()}"> <option value="">== <?= CHOOSE_LANG ?> ==</option> <option value="pl"><?= PL ?></option> <option value="en"><?= EN ?></option> </select></p> </form>
but this not working in text only browsers. I was tested it in Lynx browser. How can I change it ? Maybe is there any other solution to change language ?
Most browsers do not understand javascript. You will need a submit
button.
Better yet, something radical:
<a href="document_ pl.html">Polish </a> | <a href="document_ en.html">
English</a>
Of course, I wouldn't use the text "Polish," I'd use the native word
for the Polish language.
--
How to make it so visitors can't resize your fonts:
<http://www.rpi.edu/~hughes/www/wise_guy/unresizable_tex t.html>
On Sun, 15 Aug 2004, Sam Hughes wrote: Most browsers do not understand javascript.
Most browsers do, however, understand language negotiation. Sadly,
though, their users mostly don't, and the most prevalent (the
browser-like operating system component) seems to do its best to
hinder them. So, although language negotiation works and can be a
useful feature, it's strongly advisable to include an alternative.
(I even have a web page on the topic, as I guess the usual search
engines would reveal...)
You will need a submit button.
I'd recommend some straighforward links.
Better yet, something radical:
<a href="document_ pl.html">Polish </a> | <a href="document_ en.html"> English</a>
Aha, so would you ;-)
Of course, I wouldn't use the text "Polish," I'd use the native word for the Polish language.
Indeed.
Sam Hughes <hu****@rpi.edu > wrote: <a href="document_ pl.html">Polish </a> | <a href="document_ en.html"> English</a>
Of course, I wouldn't use the text "Polish," I'd use the native word for the Polish language.
Or, better still, the name of the page in both languages, with the
language code in parentheses after the link, or before it.
It's best to give the user some food (such as a title saying _something_
about the content, in a language he might understand) as soon as
possible, as opposite to just offering abstract menus.
What would you think about a restaurant that had a list of language names
only on their front door or advertisement? You would have to go inside to
see their actual menu, in one of the languages, to see whether it's a
beef restaurant or a vegetarian restaurant, for example. If there's a
reasonable option of checking the next restaurant's ad, I'd take that.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
David Dorward napisał(a): It isn't a problem with text only browsers, the problem is with a dependency on JavaScript.
Use a submit input.
Of course ! That's solution. Thank You.
Regards,
Cezar
Cezary wrote: Hi.
I want to change language on my site online. So, I wrote this:
Just set up content negotiation, and save each file with a .lang
extension. You can use Apache Multiviews to achieve this.
eg.
file.html.en or file.en.html
file.html.pl or file.pl.html
If it isn't static files, then look into mapping those URIs to the
dynamic resource, so that it is generated with the right language, but
the exact implementation of that is outside the scope of HTML, and thus
not appropriate for ciwah.
<form action="<?= preg_replace("/&/", "&", $_SERVER['REQUEST_URI']) ?>" method="post" name="change_la ng_form">
What is that? the <?=...?> looks a bit like PHP or something. Whateve
r it is, it's invalid HTML. It may have helped if you included the real
HTML output from this instead.
--
Lachlan Hunt http://www.lachy.id.au/
Please direct all spam to ab***@127.0.0.1
Thank you. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hal Vaughan |
last post by:
I have a sample script from a book ("Beginning JavaScript" by Paul Wilton)
that removes or adds a choice to a <SELECT> element. The <FORM> is form1
and the <SELECT> is theDay. The example uses these lines (full text is
below):
if (document.form1.theDay.options.text != "Wednesday) {
var days = document.form1.theDay;
days.options.text = days.options.text;
<snip>
var option - new Option("Wednesday", 2);
|
by: Matthias Wege |
last post by:
hello,
is there any chance to shape borders of a <select>-field?
i tried
select {
background-color:#eee;
border:1px solid red;
}
|
by: Joachim Bauer |
last post by:
I'm using the code below to display a menu that opens when the mouse
goes over the main menu item (try it in your browser to understand the
behaviour).
It uses "position:absolute" and a switch between "display='none'" and
"display=''".
However the problem is that
- in Internet Explorer 6 the dropdown (<select>...) always hides the
menu
|
by: Brian Foley |
last post by:
Hello,
I am used to using the label tag with check boxes and radio buttons in
html forms. This allows me to click on the text of the label to
activate/deactivate the check box / button, rather than having to
click on the (possibly small) box or button.
I recently tried to assign a label to a select "drop down list", but
found that when I clicked on the label text to bring it into focus,
the select box was reset to the first entry. ...
|
by: xxbmichae1 |
last post by:
I have a <select> object that i've set up an onchange event that fires
in IE fine when I use the cursor up and down in the list, but If I use
the cursor up and down in Firefox the event doesn't seem to fire until
I've left the field....If i use the mouse all is fine, only when using
the cursor keys does it not fire the onchange event in FF.
Thanks for any help in advance.
| |
by: Chris Fink |
last post by:
Does anyone know it is possible to include a small image(.gif .jpeg)
within a <SELECT><option> so that the user would see the option text as
well as a little image(icon) in the option? I know this is not an ASP.NET
related question, but I know this group is knowledgeable and quick with
responses.
Thanks
|
by: i_dvlp |
last post by:
I'm trying to replicate a fancy drop-down control (MS-egads!) with
form <select><option>
It doesn't look like you can specity width as an attribute or define
width with CSS.
It looks like my choices are to use smaller fonts or choose shorter
option strings.
inline: I want to put a small graphic immediately to the right of the
select.
|
by: Man-wai Chang |
last post by:
--
iTech Consulting Co., Ltd.
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
|
by: helraizer1 |
last post by:
Hi all,
On my current project MyChatbox I have a box for which the user enters a name and the value of which is:
Name: <input type="textbox" name="username" onkeyup="countdown(username, 10, used)" maxlength="10" size="10" value="<?php echo $_SESSION; ?>" />
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |