Davidd Smith

Ranch Hand
+ Follow
since Jul 28, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Davidd Smith

What a magic! It works. Thank you Eric.


Jeff
[ December 11, 2008: Message edited by: Davidd Smith ]
Actually The above posts are all show correct word 好 . They were parsed by the browser. What I put in the original text is &-#-2-2-9-0-9-; , please stripe the '-' , otherwise it will still show the correct word.

I guess when javascript put the code in the inputtext field, the browser does not parse it, just like the raw code entered by user. Anyone has any idea to convert the code to after parsing word in Javascript?

Thanks

Jeff
yes. The header show correct encoding and if I open the file directly it shows correctly. Only when I use javascript to set a value of input text field, that field does not show correctly.

Thanks
I think so. Actually the response is like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

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

</head>

<body>

GOOD!!BUENA!!BONNE!!好!!!

</body>

</html>
Hi all,

I have a small ajax in my page that when user entered an English word it populates the other input text field with different language translation.
An example Ajax response is:
GOOD!!BUENA!!BONNE!!好!!
If you paste the above line in a html file, it will show the correct translated words. But when I use javascript to retrieve the words and set the value for the input text field, the fourth word is always show 好 , not the actually word I would like user to see.
How should I fix it?

Thanks

Davidd
[ December 10, 2008: Message edited by: Davidd Smith ]
Hi all,

Which one is a better choice as a framework for using Ajax in JSF? ICEFace or Ajax4JSF, or anything else?

Thanks

Davidd
17 years ago
JSF
Hi,
Andrew and Mark,
Thank you.
Filip,
I call lock/unlock on the server. I use a HashMap. Only update and delete call lock/unlock, where it is said is the place that loss scores.
Regards
Davidd
21 years ago
Hi,
Philippe,
I am also sorry for that.
Regards
Davidd
Thanks everyone there. Without your help, I would not have even completed my assignment.
The datails of the score is: General Considerations (maximum = 100): 94 Documentation (maximum = 70): 70 O-O Design (maximum = 30): 23 GUI (maximum = 40): 32 Locking (maximum = 80): 44 Data store (maximum = 40): 40 Network server (maximum = 40): 40
Regards
Davidd
21 years ago
Hi, all,
What a crowded thread!
I use 3-tier mode and call lock method on the server. I passed, but I loss 36 point about Locking and 6 point about General Considerations , I do not know whether it due to 3-tier.
Thanks all of you, especially Andrew. Without your help, I would not have even completed my assignment, so I hope my score could have some value for reference. I'll fell sorry if it is against Andrew.
Regards
Davidd
Hi,
Jim and James,
Thank you for your reply, I see
Regards
Davidd
Hi, all,
I have a help menu when select will show a JEditorPane contains the userguide. I have the relative directory of the userguide in my programe.
But when I run the jar file from other directory other than the directory contains the relative directory, the system could not found it. How could I do to deal with it wherever I run the application?
Recards
Davidd
[ September 28, 2003: Message edited by: Davidd Smith ]
Hi,
Richard,


fieldName=String(name,"UTF-8");


It should be fieldName = new String(name, "US-ASCII);
It uses a constructor of String, you could consult the API. "UTF-8" is not "US-ASCII" though it could still get correct result from your db.db file.
Regards
Davidd
[ September 23, 2003: Message edited by: Davidd Smith ]
[ September 23, 2003: Message edited by: Davidd Smith ]