View Full Version : I cant read passed data in Greek

12-24-2003, 08:10 AM
Hi all and my best wishes for the holidays.

I have a small script that places passed data to a textbox and although it works ok with english it cant show greek corectrly.

The script in the form is:

<SCRIPT LANGUAGE="JavaScript"><!--
function getParm(string,parm) {
// returns value of parm from string
var startPos = string.indexOf(parm + "=");
if (startPos > -1) {
startPos = startPos + parm.length + 1;
var endPos = string.indexOf("&",startPos);
if (endPos == -1)
endPos = string.length;
return unescape(string.substring(startPos,endPos));
return '';

var passed = location.search.substring(1);

document.displayform.textareaname.value = getParm(passed,'textareaname');

and data are passed from:

<td width="200">
<input name="textareaname" type="hidden" id="textareaname" value="2908.ER" />
<input name="submit" type="submit" class="Button" id="submit" value="ΦΟΡΜΑ ΕΝΔΙΑΦΕΡΟΝΤΟΣ" />

i have to admit that i m less than capable of doing any scripting so any help would be welcome. Detailed help would be perfect.

Thanks alot

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum