Re: Google NewsShow iFrames Solution

337 views
Skip to first unread message

Jeremy Geerdes

unread,
Oct 20, 2012, 8:56:06 PM10/20/12
to google-ajax...@googlegroups.com
The iframe solution was designed to be a quick and easy implementation for developers that weren't really comfortable with JS. Therefore, the number of options available through it is rather limited. In short, I don't believe that you can set the links in the iframe version to open in a new window.

The limit of 8 results is built into the News Search API. This is the most you can retrieve per request. To obtain more, you would need to rework portions of the control's Javascript so that it will fetch additional results in sequence. Unfortunately, the Javascript for the control has been compiled/obfuscated, making it very difficult to alter. If this is truly what you're wanting to do, then you're probably going to be better off to simply build your own control.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Oct 20, 2012, at 6:13 PM, Mahesh Chindarkar wrote:

 
There are two options given for NewsShow (Javascript and Frames)
 
The Javascript solution has google.search.Search.LINK_TARGET_BLANK  to open links in new window.
 
Question1 : Is it possible to open the links from a iFrame solution into a new window?
Question2 : The Large parameter shows 8 news. Can this be increased?
 
 

--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/llOlylhgWhUJ
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Mahesh Chindarkar

unread,
Oct 21, 2012, 9:04:36 AM10/21/12
to google-ajax...@googlegroups.com
In the rss feed there is a parameter ?num= that outputs more than 8 results. Can this be merged with this news box solution? The documents does not say so :(
 
If it is not possible, can we have a dropdown which has three values "Entertainment", "Health", "Business", when the user selects any one option, the news should be shown in a differnt iframe (without navigating away from the original page) and if anyone clicks on ANY of the links within the iFrame, it should open ONLY in that iFrame? Can you help me with the code?
 
Business
 
Thank you.

Jeremy Geerdes

unread,
Oct 22, 2012, 9:04:36 AM10/22/12
to google-ajax...@googlegroups.com
The News Show does not utilize the RSS feed. It is based on the News Search API. Therefore, the ability to specify the number of entries in the RSS feed has no bearing on the News Show control.

As I said before, I don't believe there is any way to control the target of links in the iframe implementation of the News Show.

Given what you seem to be trying to do, you might want to check out the Dynamic Feed Control.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
Reply all
Reply to author
Forward
0 new messages