JQuery translate function not working in firefox / chrome?

First of all, the jQuery library and the script should be called from one of the frames, not the container page, otherwise it won't work.

Up vote 2 down vote favorite share g+ share fb share tw.

I have a HTML page which is divided into two frames. Separate web sites are being opened by users in those frames as I provided an open web site option. These web sites can be in any language.

So. I need to translate the languages of these websites to English. I am using JQuery translate function for this which is not working.

As I am new to JQuery, I may be using incorrect syntax / way. I have tried this code in Firefox, which is not working. I have tried in Chrome, but I am not able to know that it is working or not because of the default language translate option of the Google Chrome.

I have also searched StackOverFlow Questions, but I didn't find anything. $(function(){ //on document ready $('body'). Translate('en'); }) Here is a link to the plugin: code.google.com/p/jquery-translate/wiki/... javascript jquery html translate link|improve this question edited Jan 24 at 17:26Jasper26.1k51029 asked Jan 24 at 17:19Saurabh Saxena20010 100% accept rate.

– Angel Workz Jan 24 at 17:25 code.google.com/p/jquery-translate/wiki/... – Saurabh Saxena Jan 24 at 17:25.

First of all, the jQuery library and the script should be called from one of the frames, not the container page, otherwise it won't work. The jQuery function jQuery() (or $()) looks by default in the current document. In order to apply that function to a frame you should specify the context as a second argument of the function.

In this case it would be like: $(function() { $('body', window.parent. Frames0. Document).

Translate('en'); }); You can obviously change the index of the array frames (frames0, frames1, ecc..) to match the frame that you want to translate. Edit: you can also set a name to the frame (putting the attribute name in the tag and then call it using window. Frame_name.document.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions