Rather than just a snippet of code, can you provide a link to your page?

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 May 3, 2012, at 6:24 PM, Trevor wrote:

> Aha, now I understand why I was having so much trouble. I didn't think
> to download the script and modify it. I downloaded the script and
> tried to add your code at the specified location but it kept returning
> no results. I modified it to the following:
> 
>    var link = this.createLink_(entries[i].link,
>                                entries[i].publishedDate + " - " +
> entries[i].title,
>                                this.options.linkTarget);
> 
> and I get the following results:
> 
>          Wed, 02 May 2012 21:00:00 -0700 - News Release Title Blah
> Blah Blah
> 
> Which is soooo much closer than I was but how can I remove that time
> stamp and move the day after the month? I tried tweaking the code you
> gave me and I tried some parsing samples I found online but I can't
> get anything to work.
> 
> Thanks a ton for the help, I definitely feel like it's within reach
> now.
> 
> Trevor
> 
> 
> On May 3, 12:56 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
>> The dynamic feed control displays feed entry titles in a list form, and then 
>> flashes more detailed information on a slideshow-like thing. I am assuming 
>> you're talking about altering the list. If that is indeed the case, then you 
>> need to download the gfdynamicfeedcontrol.js file and alter the code on and 
>> around line 406 appropriately. Something like this (starting on line 404) 
>> would probable work:
>> 
>>     var theDate = new Date(entries[i].publishedDate);
>>     var link = this.createLink_(entries[i].link,
>>                                 [theDate.getDays(), theDate.getMonth()+1, 
>> theDate.getFullYear()].join('/') + " - " + entries[i].title,
>>                                 this.options.linkTarget);
>> 
>> Of course, you would need to alter the order of the date elements if you 
>> wanted MDY, etc.
>> 
>> 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 May 3, 2012, at 10:40 AM, Trevor wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> I'm not a programmer. I'm trying to help someone make a small change
>>> to their website. They currently have the following code to display
>>> recent news releases.
>> 
>>>  <script type="text/javascript">
>>>    function LoadDynamicFeedControl() {
>>>      var myfeed = [{title: 'XXX', url: 'XXX'}];
>>>      var options = {stacked : true, horizontal : false, numResults :
>>> 8, title : "Recent"}
>>>      new GFdynamicFeedControl(myfeed, 'feed-control', options);    }
>> 
>>>    google.load('feeds', '1');
>>>    google.setOnLoadCallback(LoadDynamicFeedControl);
>>>  </script>
>> 
>>> It works great and displays the 8 most recent press releases with the
>>> title hyperlinked to the actual release. Now they want to add the date
>>> that the news release was published in the results like so (05/03/2012
>>> - Most Recent Press Release Blah Blah Blah). I'm sure it's a super
>>> simple thing for an experienced programmer to do but I can't figure
>>> out the proper formatting. I've read through the documentation and
>>> tried various samples I've found but nothing seems to work. I'd really
>>> appreciate some help. Thanks.
>> 
>>> --
>>> 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-search-api@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> google-ajax-search-api+unsubscr...@googlegroups.com
>>> To view this message on the web, visit
>>> http://groups.google.com/group/google-ajax-search-api?hl=en_US
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
> 
> -- 
> 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-search-api@googlegroups.com
> To unsubscribe from this group, send email to
> google-ajax-search-api+unsubscr...@googlegroups.com
> To view this message on the web, visit
> http://groups.google.com/group/google-ajax-search-api?hl=en_US
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

-- 
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-search-api@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-search-api+unsubscr...@googlegroups.com
To view this message on the web, visit
http://groups.google.com/group/google-ajax-search-api?hl=en_US
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply via email to