Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Add title in iframe
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Davem  
View profile  
 More options Nov 4, 1:39 pm
From: Davem <da...@vims.edu>
Date: Wed, 4 Nov 2009 10:39:02 -0800 (PST)
Local: Wed, Nov 4 2009 1:39 pm
Subject: Add title in iframe
I have used the NewsShow Wizard to add a news show to the website of
the Virginia Institute of Marine Science:
http://www.vims.edu/newsandevents/vimsinthenews/google_vims_feed.php

I'd like to change the title to "VIMS" rather than the current title,
which appears to be taken from the first query term, which is
"Virginia Institute of Marine Science."

I have figured out how to do this in the Ajax Code Playground, but
can't figure out how to translate this functionality into the iframe
on my website.\

/*
 * The Google NewsShow embeds a news slideshow on your page, letting
your users see headlines
 * and previews of Google News Search results, based on queries that
you've selected.
 *
 * This sample will show how to specify queries for the News Show.
 * http://code.google.com/apis/ajaxsearch/documentation/newsshow.html
*/

google.load("elements", "1", {packages : ["newsshow"]});

function onLoad() {
  // Set the queries to USC Football and NHL
  var options = {
    "queryList" : [
      {
        "title" : "VIMS",
        "q" : "Virginia Institute of Marine Science"
      },
      {
        "title" : "VIMS",
        "q" : "Virginia Institute of Marine Sciences"
      },
      {
        "title" : "VIMS",
        "q" : "Virginia Institute for Marine Science"
      },
      {
        "title" : "VIMS",
        "q" : "Virginia Institute for Marine Sciences"
      }
    ]
  }
  var content = document.getElementById('content');
  var newsShow = new google.elements.NewsShow(content, options);

}

google.setOnLoadCallback(onLoad);

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Feldman  
View profile  
 More options Nov 5, 5:57 am
From: Adam Feldman <adam.feld...@google.com>
Date: Thu, 5 Nov 2009 02:57:12 -0800 (PST)
Local: Thurs, Nov 5 2009 5:57 am
Subject: Re: Add title in iframe
Hi Davem,

Setting the title to be different from the search query is not
available through the iframe.  But you can accomplish what you're
looking for by copying the entire code from the playground (which you
pasted below) into your website and loading the NewsShow that way.  If
you have any trouble with that, just let us know.

Cheers!

Adam

On Nov 5, 5:39 am, Davem <da...@vims.edu> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google