Google News Module Suddenly Stopped Working in IE8 - is iframes the problem? PDF Print E-mail

What a difference a day makes! One day, my Google News Module, a Joomla! Module that adds a NewsShow embedded on my website's home page, was working great. In fact, it had been working for several months with no problems. Then, it just stopped working and I got that dreaded message: "This content cannot be displayed in a frame. To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame..."

 

I used Internet Explorer 8 for most of my daily internet access. At first, I thought that Google News was having a problem and waited out the day to see what was going on. By chance, I was using Google Chrome to create some documents on Google Docs later in the day and realized that my Google News Module was working just fine there.

 

Hopefully, this article will save you some headaches. If you are using Internet Explorer 8 (IE8) and your NewsShow suddenly stopped working, the problem is not the 'iframe' as first expected. The problem is how the rules changed and what worked previously does not work any longer.

 

Sequence of Parameters

I'll make this short, here is the fix. It is not 'iframes' that is the problem. The problem is the sequence of your parameters and ensuring that the first one is the query (q=...).

 

For example, this code will work:
[iframe frameborder="0" width="728" height="90" marginwidth="0" marginheight="0" src=http://www.google.com/uds/modules/elements/newsshow/iframe.html?q=%20&topic=w&rsz=small&format=728x90

 

This code will not work:
[iframe frameborder="0" width="728" height="90" marginwidth="0" marginheight="0" src=http://www.google.com/uds/modules/elements/newsshow/iframe.html?topic=w&rsz=small&format=728x90]

 

If you are not sure how to code your NewsShow, you can grab the code at Goolge's NewsShow Wizard, located at: http://code.google.com/apis/ajaxsearch/documentation/newsshow/wizard.html

 

 

But the trick is, you can't use Internet Explorer 8 to do it! You must use a different browser, FireFox and Google Chrome work. --

Update (11/4/09):  Google has taken note...  You can now grab the code at Google's NewsShow Wizard using Internet Explorer 8.

 

You can try it in IE8, the default of 'Top Headlines' appears to work just fine. But now try to change the search topic to something else, lets say 'World'. IE8 will not show it in the preview configuration window. Instead, you will get the dreaded frame message.

Goolge News Module Fix in Joomla!

You will need to have access to your web server. I use WS_FTP to access my files. Some web hosting services have an FTP program built into their admin panel. Once you get to your web server, find the directory that your Joomla! files are stored in. If they are at the root of your web server, then you will go directly to the '/modules' directory. (For newbies to Joomla!, it may be something similar to: /joomla/modules/).

/modules/
/mod_googlenews
mod_googlenews.php

Locate this line:
$link='http://www.google.com/uds/modules/elements/newsshow/iframe.html?format='.$news_format.'&rsz='.$boyut;

 

Change this line to:
$link='http://www.google.com/uds/modules/elements/newsshow/iframe.html?format='.$boyut.'&;rsz='.$news_format;

 

It is that simple! FTP your edited file back to your web server, overwriting your original file mod_googlenews.php. (For newbies, keep a backup copy of your original file just in case something goes wrong and you need to put back the original FAST)

 

Validating iframe code to meet W3C Standards

The iframe element will not validate if you are using a strict (X)HTML doctype declaration. Your webpage that contains iframes will validate with transitional doctype declarations.

Helpful TIP: Ampersands inside URLs must be encoded! -- "&" must be encoded as "&"

 

Making iframes Web Accessible for Screen Readers

WebAIM (Web Accessibility in Mind) has a great article on how to make iframes accessible. The main point here is that iframes are becoming more popular in website development for content management and it is necessary to ensure that website accessibility guidelines are followed. Google's NewsShow is making it possible to see headlines and previews of Google News Search results that you have pre-selected for your website audience.

 

There are ways to ensure that these news modules are accessible to all. "Links within the iframe element are accessible via the keyboard as if the content were within the web page containing the iframe."--WebAIM.

Read more at WebAIM: http://www.webaim.org/techniques/frames/#iframe

Comments
Add New Search
Home Security Houston  - ...   |121.49.120.237 |2011-12-25 10:52:16
I love your blog, you should add an RSS feed feature so I can get automatic notifications of new blogs. If you set one up please email me! i will bookmark you for now. Again Excellent Blog!Home Security Houston
Breitling Bentley watches uk s  - Breitling Bentley watches uk sale   |218.234.21.133 |2011-07-22 03:21:34
Wonderful post... Very informational and educational as usual!

-Breitling Bentley watches uk sale
jordan  - jordan   |74.70.157.155 |2011-03-18 18:54:31
IP: 59.58.158.203 [edited]
You made fantastic nice points here. I performed a search on the issue and discovered almost all peoples will agree with your blog.
Last Minute News  - LastMinuteNews.info   |86.34.204.156 |2011-02-07 18:33:42
I just launched the last minute news website (LastMinuteNews.info) powered by Google News. Registered users can rearrange, deactivate/activate news, choose news edition (e.g. German, Canadian, US, etc.), choose language, etc.

There is a very simple chat in the right column where visitors may talk about the last minute news they see on the website.

The news are displayed in individual boxes and each box can be configured to show a custom topic. There are two views available. Grid (default) and list. Members can set their own default view. Registration is free :)

Hope you'll find this useful.
moncler shoes  - moncler shoes     |74.70.157.155 |2011-02-02 14:20:46
I will keep your new articles. Useful information shared. I am very pleased to study this article...many thanks for giving us nice information. This is a very useful post, I was looking for this women's Bailey Button Triplet info. Thanks for sharing the great ideas…This is my first time i visit here. I discovered a lot of interesting things within your blog especially its discussion.
Floria  - nice     |74.70.157.155 |2011-02-02 14:22:47
This is some great information. I’m always looking for better ways to get my blogs to show better in google. Thanks for the info.
tina  - nice     |74.70.157.155 |2011-02-02 11:36:19
It does make senses, appreciate for sharing
Anonymous   |74.70.157.155 |2011-02-02 11:38:25
This is some great information.

I’m always looking for better ways to get my blogs to show better in google. Thanks for the info.
emu boots  - emu boots on sale     |120.40.150.240 |2010-09-30 06:52:04
I am agree with your opinion..

amy  - emu boots     |120.40.150.240 |2010-09-27 06:32:17
thank u for your sharing
floria  - great post     |74.70.157.155 |2010-09-28 19:54:46
it is necessary to ensure that website accessibility guidelines are followed. Google's NewsShow is making it possible to see headlines and previews of Google News Search results that you have pre-selected for your website audience
coach bags  - coach outlet online     |74.70.157.155 |2010-09-19 10:39:07
Well said. I never thought would agree with this
view things from a different view. I have to research more on this as it seems very interesting. One thing I don't understand though is how a is related together.

zocy05
ed hardy     |74.70.157.155 |2010-09-11 23:10:32
Thanks the valuable post.
chi flat irons  - yongliang01     |74.70.157.155 |2011-02-02 11:39:43
There are ways to ensure that these news modules are accessible to all. "Links within the iframe element are accessible via the keyboard as if the content were within the web page containing the iframe."--WebAIM.
Christian Louboutin Boots  - Christian Louboutin Boots     |219.136.180.128 |2010-06-10 03:38:46
very nice. i like it
Anonymous   |59.58.175.182 |2010-03-05 01:04:29
authentic ed hardy
eddy   |72.224.111.39 |2010-01-07 10:39:04
I really liked your method. thanks for sharing this:) hope many people will find it useful as I did. have read lots of articles on the topic, but have never thought that could be so easy
Write comment
Name:
Email:
 
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
  

 nbsp;"

Last Updated on Monday, 23 January 2012 20:08
 

Your Breadcrumbs:

Home Website Accessibility - Structural Sufficiency
Joomla Hosting

Visitors

mod_vvisit_counterVisits Today108
mod_vvisit_counterThis Month6163
mod_vvisit_counterVisited Last Month15871
mod_vvisit_counterTotal Visitors463570

Your IP: 38.107.179.236
,
Today: Feb 10, 2012