View Single Post
Old 12-08-2012, 04:10 PM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
document.getElementsByTagName() is available only when the page (or possibly part of it) has been loaded/rendered. Although I know very little about using other languages it seems logical to me that it is too late to change the language of the page(?) once it has been rendered.

The character encoding may also be required:

Code:
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
although I suspect this is the default.

If you are only adding a section of the page then you could add lang="es" to, for example, a DIV and then insert the content into this div.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS

Last edited by AndrewGSW; 12-08-2012 at 04:13 PM..
AndrewGSW is offline   Reply With Quote