Deepika Singh

Greenhorn
+ Follow
since Oct 10, 2008
Merit badge: grant badges
Biography
currently working in Tata Consultancy Services..
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Deepika Singh

An ideal instance of using Inheritance would be when you want to create an entirely new class, but wish to borrow a group of existing attributes or methods resident in an existing Abstract or super Class, instead of re-inventing the wheel. If you had an Abstract Class Carnivore and wanted to create a subclass Cat, you could instantly inherit all the methods that were common in Carnivore that applied to Cat without writing new code.

Polymorphism could be best applied when you had an existing SubClass that you wanted to modify or add a feature that could borrow a method that existed in a higher class. Take the Cat subclass, which inherited attributes from Carnivore, and you wanted to add the method Stalk, which would generically describe how a carnivore approaches its prey. However its implementation in Cat would detail the stealth it uses that are unique to a Cat.
14 years ago
hey , thanks for your response. I got the solution.
14 years ago
hi all,

how to compare two dates having same format entered by the user?
14 years ago
hey , i have done it.
Thanks for your help...
you have to use "\\" to print "\"

String s2 = "I have to write backslash \\";
14 years ago

String s = "1001234578999";
try {
long i = Long.parseLong(s);
System.out.println("long value is ::>>"+i);
}
catch (NumberFormatException nfe)
{
System.err.println("s is not parseable as an integer");
}
14 years ago
hey sagar.. we had tried this too....but the moment transliteration takes place ....the value of previous variable also changes....because after all we are supposed to get value of textbox by using document.getElementById()...

and the moment the value changes in the textbox with that specific Id....the value changes everywhere...
ie, we want to store the values of gujarati as well as English language in two different global variables.
hi all,

Can anybody help me to find a code for english to gujarati

translator that translates english to gujarati on some event
I have searched a lot but I didnt get it anywhere.Actually I want

an accurate one..i.e it must give exact translation of the word

entered.


actually my code that i had implemented for the translator is...

<input type="text" id="firstName" name="firstName"

default="${firstName}" />

<script type="text/javascript" src="http://www.google.com/jsapi">
</script>

<script type="text/javascript">
google.load("elements", "1", {packages: "transliteration"});
</script>

<script>
function OnLoad() {
var currValue = document.getElementById("firstName");
alert(document.getElementById("firstName").value);
var options = {
sourceLanguage:
google.elements.transliteration.LanguageCode.ENGLISH,
destinationLanguage:
[google.elements.transliteration.LanguageCode.GUJARATI],
shortcutKey: 'ctrl+g',
transliterationEnabled: true
};


var control = new

google.elements.transliteration.TransliterationControl(options);
control.makeTransliteratable(["firstName"]);
var postValue = document.getElementById("firstName");

}

google.setOnLoadCallback(OnLoad);

</script>

........................................................................................................................................................................................


here, firstName is the name of the text box.
in this textbox only the code is getting converted.I want it to convert it in the other textbox.
Thanks........
I have to write only this much code for the translation

function translit()
{
callAjax(http://www.google.com/transliter/indic?lang=GJ&text=abc);

ajax.callback = processResponse;
}

function processResponse()
{
var resText = ajax.response;
document.getElementById('text-area').append(resText);
}
14 years ago
JSP
But actually the link that you had suggested does not exists..


http://www.google.com/transliter/indic?lang=GJ&text=abc
14 years ago
JSP
yes, actually the code that I have pasted is from the google translator only.

I am really very much thankful for your response.
14 years ago
JSP
hi.....

actually my code that i had implemented for the translator is...

<input type="text" id="firstName" name="firstName" default="${firstName}" />

<script type="text/javascript" src="http://www.google.com/jsapi">
</script>

<script type="text/javascript">
google.load("elements", "1", {packages: "transliteration"});
</script>

<script>
function OnLoad() {
var currValue = document.getElementById("firstName");
alert(document.getElementById("firstName").value);
var options = {
sourceLanguage:
google.elements.transliteration.LanguageCode.ENGLISH,
destinationLanguage:
[google.elements.transliteration.LanguageCode.GUJARATI],
shortcutKey: 'ctrl+g',
transliterationEnabled: true
};


var control = new google.elements.transliteration.TransliterationControl(options);
control.makeTransliteratable(["firstName"]);
var postValue = document.getElementById("firstName");

}

google.setOnLoadCallback(OnLoad);

</script>

....................................................................................................................................................................................


here, firstName is the name of the text box.
in this textbox only the code is getting converted.I want it to convert it in the other textbox.
Thanks a lot for your response.
14 years ago
JSP
Thanks a lot for your solution......
actually , we have already seen this and tried to implement but the problem is translitrated text comes in the same text area on pressing ENTER key. we want the translitrated text in a different text box, so that we can use both the original text as well as the translitrated text in a query fired just after this function call.
14 years ago
JSP
Can anybody help me to find a code for english to gujarati translator that translates english to gujarati on some event
I have searched a lot but I didnt get it anywhere.Actually I want an accurate one..i.e it must give exact translation of the word entered.


Can anyone guide me for that.

Please its urgent

Thanks..
14 years ago
JSP
My XML HTTP Request sends results in responseText. The result is an
XML file I will need to parse. After research I determined that a
cross browser XML parser will look like this:

responseXML.getElementsByTagName("to")[0].firstChild.nodeValue;

However, I receive responseText, not responseXML. Does anyone know of
the cross browser way to handle this problem?