Google's translate tool works but not with Jotform iframe embed option. Solution?

  • Profile Image
    hampton770
    Asked on June 24, 2011 at 01:09 PM

    Thanks. Yes, I had just used the iFrame embed with success.  I see it covering most of my needs, but I recently added Google's translate tool.  I've used this in the past, and I was impressed that the JotForm text was also translated.  Unfortunately, I don't seem to be able to get it to work with the iFrame embed option?


    Any suggesstions?


    Regards,
    Hampton Fillingame | 404-942-9086

    ITAttache' .com // coming soon . . .
  • Profile Image
    DanielGriffin
    Answered on June 24, 2011 at 01:26 PM

    Hi there,

    Unfortunately an iframe is actually a seperate document as far as the browser is concerned (ie its content comes froma seperate file).  I've been doing some reading and it seems that the Google Translate gadget is only intended to translate one document at a time.  So unless you are comfortable hacking some javascript it isn't going to be easy to solve.  Is there anyway that you could use of of the other embed methods?  Or download the full source and use that?  To download the source,

    1. Open your form
    2. Click on "Setup & Embed" tab
    3. Click on "Embed Form" on top menu
    4. Click on "Source" icon

    Thanks,

    Daniel

  • Profile Image
    hampton770
    Answered on June 24, 2011 at 01:49 PM

    I've posted a test with the source embed at:

    http://billfriendly.com/test.php  

    I can't even see the Google translate showing up in my browsers, but it could be my end.

    Is the translating with the Google tool working on the source embed option on your end?

    Hampton

  • Profile Image
    DanielGriffin
    Answered on June 24, 2011 at 02:08 PM

    Hi Hampton,

    No, I cannot see the Google Translate button on your test page either.  You could try with a basic page, ie without your header etc.  Try using just the form and the translate code.  I will do the same and get back to you asap.

    Thanks,

    Daniel

  • Profile Image
    DanielGriffin
    Answered on June 24, 2011 at 02:34 PM

    Hi again,

    I'm afraid that I haven't had much success.  In fact I can also rule out the script tag method - I just tried to tranlate a form on my own website:

    http://www.danielgriffin.net/cms/node/64

    But the tool is ignoring the form.  I suspect this is some kind of cross site scripting issue.  See this link:

    http://en.wikipedia.org/wiki/Same_origin_policy

    You say in your original post that you managed to get Google to tranlate the form text.  What method were you using then?  Were you embedding the Google gadget or translating it with the Google translation site?  Anything you can let me know will help.

    Thanks,

    Daniel

  • Profile Image
    hampton
    Answered on June 24, 2011 at 04:25 PM

    I try and re-create this situation.  This REALLY excited me back then.  I'm 100% certain Jotforms were translated with the website widget tool from Google.  Let me try some things.. I've got some sloppy coding right now.

    I will post a link, if I can figure it out again.

    Hampton

  • Profile Image
    hampton770
    Answered on June 24, 2011 at 04:34 PM

     

    JOTFORMS WORKS WITH GOOGLE TRANSLATE!

    http://billfriendly.com/test.html

     

    It works with the Dreamweaver extension and the Google code with no advanced configurations at this point.

  • Profile Image
    hampton770
    Answered on June 24, 2011 at 05:09 PM

    http://billfriendly.com/

     

    Not only does it work, but I embedded it "in side" the Jotform Dreamweaver script.  Interesting.

    If you have jotform on 200 pages, adding the translate tool from Google is pretty simple.

    Jotform goes global.

    Hampton

    ITAttache.com 

  • Profile Image
    NeilVicente
    Answered on June 25, 2011 at 12:33 AM

    Hi Hampton,

    We are stoked to hear about your success with Google Translate and Jotform. Other users will definitely find this post of yours useful, so thank you for that.

    Anyway, if you have other questions in mind, do not hesitate to ask around the forum. Our support team members are very eager to assist users with regards to Jotform-related concerns.


    Neil