Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7129415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:14:25+00:00 2026-05-28T11:14:25+00:00

I have a HTML page which is divided into two frames. Separate web sites

  • 0

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: http://code.google.com/p/jquery-translate/wiki/TranslateMethod

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T11:14:25+00:00Added an answer on May 28, 2026 at 11:14 am

    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.frames[0].document).translate('en');
    });
    

    You can obviously change the index of the array frames (frames[0], frames[1], 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 <frame> and then call it using window.frame_name.document.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a textarea within an HTML page into which my users paste content.
i have main html page which have two frames frame1 and frame2. frame1 is
I have a problem in HTML. I have divided the HTML page into two
I have a HTML page which contains users data and the data is stored
I have a html page which requires two passwords, if these do not match
We have an HTML page which displays a bunch of pretty bars using divs
I have an html page which has a link called open. Once the link
I have this html page which is very simple, it contains a text box
I'd like to have an HTML page which displays a single PNG or JPEG
I have a HTML page with which I want to do some client side

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.