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?
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:
jrgeer...@gmail.com
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:
> 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?
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?
> 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?
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:
jrgeer...@gmail.com
If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
On Oct 21, 2012, at 8:04 AM, Mahesh Chindarkar wrote:
> 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 :(
> https://news.google.com/news?topic=e&num=30&output=rss
> 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?
> 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?