Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Gmail editor?

 
Ranch Hand
Posts: 38
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
Can anybody explain how to create a editor like Gmail where transliteration is supported.
whenever a space is triggered AJAX call is made and the text is replaced with the response text.I want to know how the javascript code is written or any other concepts are involved in such type of effect.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Abhilash,
You might consider using GWT toolkit for generating the mail app. Check out this URLs
http://gwt.google.com/samples/Mail/Mail.html
http://code.google.com/webtoolkit/examples/
 
Abhilash Etikala
Ranch Hand
Posts: 38
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shwetha thanks for giving reply,
Actually i can use google api's to my fields in my page for trasliteration but my application is an local intranet application and i want to know how javascript is coded for that effect(like when space is triggered AJAX call is made....).
please help...
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
onkeypress look to see what was typed. If a space or punctuation than look for the last word.

Try doing it in parts, forget about the Ajax half right now.

Eric

 
Abhilash Etikala
Ranch Hand
Posts: 38
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric thanks for the reply and i have implemented my code as what you said
please check it and say me the next step what i should do...


iam new to javascript please do if any corrections required and also good suggestions...
 
shwetha Gattu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Abhilash I couldn't see your messages.
You could keyPress() method of jquery and check for value of spacebar event.Keycode = 32 or something
and in keyPress method you could make a ajax call
Eg:

$('#target').keypress(function(event) {

$('.result').load('ajax/test.html');

});

Hope this helps

-Shwetha
 
Abhilash Etikala
Ranch Hand
Posts: 38
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,shwetha ya this could help a part,waiting for the reply from Eric..
 
Saloon Keeper
Posts: 2667
130
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what eric meant was to first develop the scanning part to check for user entered words.
Do the AJAX call in the second stage of development.
 
Abhilash Etikala
Ranch Hand
Posts: 38
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks salvin for reply....
ok i got it what eric mean.whenever a space is triggered iam checking the word and iam also able to make AJAX call to the server side script and return the result but iam not able to send the second word when space is triggered again.
Since,the whole value with the previous word is available to send to server side script.

 
Abhilash Etikala
Ranch Hand
Posts: 38
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi after a long time....
I got the solution from the below link where i can type in local language for all my forms in my application.
JavaScript provided in the below site allows users to type in local language...
on every key press the respective language character is going to displayed instead of every space like Gmail...

http://www.higopi.com/
finally got the solution, of course not exactly like Gmail editor but to an extent...
Thank You every body for participating...for your valuable discussion...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic