HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 27th, 2008, 09:58 AM
Dragon Rider's Avatar
Dragon Rider Dragon Rider is offline
off-topic trolless
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Jun 2005
Posts: 3,108 Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 2 h 15 m 25 sec
Reputation Power: 247
JavaScript - Change Languages

Hi! Remember me?
I need your help..

I have textboxes for greek description and I need when I make the focus on the textboxes the language become greek(without needed alt-shift).
Is it possible?

An something else..
I want something to transform my greek characters to english(greeklish).
eg α=a, β=b, γ=g..
What I want to do is when someone is typing eg "ΚΑΛΗΜΕΡΑ" I want to insert in a DB the word "KALIMERA".
Any suggestions?


Thank you..
__________________
I'm smarter in my mother tongue.

Reply With Quote
  #2  
Old July 1st, 2008, 04:29 PM
Dragon Rider's Avatar
Dragon Rider Dragon Rider is offline
off-topic trolless
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Jun 2005
Posts: 3,108 Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level)Dragon Rider User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 2 h 15 m 25 sec
Reputation Power: 247
Here's the solution:
Code:
<%
SET MyDictionary=CreateObject("Scripting.Dictionary") 
MyDictionary.Add "α","a" 
MyDictionary.Add "β","b" 
MyDictionary.Add "γ","g" 
MyDictionary.Add "δ","d" 
MyDictionary.Add "ε","e" 
MyDictionary.Add "ζ","z" 
MyDictionary.Add "η","i" 
MyDictionary.Add "θ","th" 
MyDictionary.Add "ι","i" 
MyDictionary.Add "κ","k"
MyDictionary.Add "λ","l"
MyDictionary.Add "μ","m"
MyDictionary.Add "ν","n"
MyDictionary.Add "ξ","ks"
MyDictionary.Add "ο","o"
MyDictionary.Add "π","p"
MyDictionary.Add "ρ","r"
MyDictionary.Add "σ","s"
MyDictionary.Add "τ","t"
MyDictionary.Add "υ","i"
MyDictionary.Add "φ","f"
MyDictionary.Add "χ","x"
MyDictionary.Add "ψ","ps"
MyDictionary.Add "ω","o"
MyDictionary.Add "ς","s"

Dim theString, theCounter, theOutput(), str, iLoop
theString = request.form("epitheto")&"_"&request.form("onoma")

ReDim theOutput(1)
For theCounter = 0 To Len(theString)-1
	If theCounter > 1 AND theCounter <= Len(theString) Then ReDim PRESERVE theOutput(UBound(theOutput)+1)
	theOutput(theCounter) = Mid(theString, theCounter+1, 1)
	theOutput(theCounter)=MyDictionary.Item(theOutput(  theCounter))
Next

For iLoop = LBound(theOutput) to UBound(theOutput)
  str = str & theOutput(iLoop)
Next


%>

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > JavaScript - Change Languages


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT