PDA

View Full Version : Google Code


Cuc Tu
02-11-2011, 06:55 PM
I'm trying to get this to work, Google Translate.


http://translate.google.com/translate_tools


This code does not work. The result is that the page takes a long time to load.

<html>

<head>
<title>Technical Documents</title>
</head>

<body>

<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
layout: google.translate.TranslateElement.InlineLayout.SIM PLE
}, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

<p>
<h1>My counter count</h1>
</p>

</body>

</html>




I have the page on my desktop and put it on our Intranet. Might it be due to some security feature of our network?





The following code works:

<!-- SiteSearch Google -->
<FORM method=GET action="http://www.google.com/search">
<TABLE border=0 bgcolor="black" width=100%>
<tr>
<td width=124>
<A HREF="http://www.google.com/"><IMG SRC="GoogleMatrix.jpg" border="0" ALT="Google"></A>
</td>
<td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
<font size=-1 color="green"><input type=hidden name=domains value="../"><br>
<input type=radio name=sitesearch value="" checked> WWW <input type=radio name=sitesearch value="C:"> Local Drive</font>
</td>
<td align=right valign=top>
<IMG SRC="Station.gif">
</td>
</tr>
</TABLE>
</FORM>
<!-- SiteSearch Google -->

Paul Komski
02-12-2011, 08:55 AM
I have the page on my desktop and put it on our Intranet.
For the translation to work the page must be able to reach the Google servers.; it is a dynamic service and not software nor a database that would have been created on your LAN.

Cuc Tu
02-12-2011, 11:08 AM
OK, the computer is connected to the internet, so should'nt the page have access too?

Paul Komski
02-12-2011, 10:23 PM
Are you saying that you can access the web-page from the internet ??

It is not enough that a PC is simply connected to the internet but that the web-server can send and also react to requests and if behind a router the relevant ports must be forwarded to the relevant PC.

Cuc Tu
02-13-2011, 04:00 AM
OK, so the computer must have port 80 open? Well it doesn't and cannot.