Re: Caching ajax / dhtml

2011-09-14 Thread Matt Williams

I switched to cffeed. I'm afraid we'll hit Twitter's limit too easily.
I've already seen it in on the staging site.

Thanks, I knew that about the client side javascript, I was just
thinking that somehow the CF could pre-render that.

Working too late, too many hours

-Matt

On Tue, Sep 13, 2011 at 8:24 PM, Michael Grant mgr...@modus.bz wrote:

 Not on the client side. Either way you have to hit a server. Better
 Twitter's than yours I'd say.



 On Tue, Sep 13, 2011 at 7:12 PM, Matt Williams mgw...@gmail.com wrote:


 I have some divs that are populated with tweet.js (jquery plugin for
 twitter). So on document.ready(), the divs are populated by the
 plugin.

 I don't want to hit twitter on every page load and want to cache the
 populated divs somehow.

 Is there a way to take those populated divs and cache them? Simply
 saving the content to html is still saving the javascript too and not
 the actual output.

 I guess I may have to switch to grabbing the feed using cffeed or
 something, but this code is already done and styled, so I was hoping
 for something else.

 Thanks,

 -Matt



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347457
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Caching ajax / dhtml

2011-09-14 Thread Michael Grant

Well, cf can pre-render it. Two ways you could accomplish this are a) use
twitter's api to get the tweets on the server side and cache it. or b)
create another js function that takes the tweet results and passes them back
to the server for caching, thus avoiding api development.

On Wed, Sep 14, 2011 at 7:13 AM, Matt Williams mgw...@gmail.com wrote:


 I switched to cffeed. I'm afraid we'll hit Twitter's limit too easily.
 I've already seen it in on the staging site.

 Thanks, I knew that about the client side javascript, I was just
 thinking that somehow the CF could pre-render that.

 Working too late, too many hours

 -Matt

 On Tue, Sep 13, 2011 at 8:24 PM, Michael Grant mgr...@modus.bz wrote:
 
  Not on the client side. Either way you have to hit a server. Better
  Twitter's than yours I'd say.
 
 
 
  On Tue, Sep 13, 2011 at 7:12 PM, Matt Williams mgw...@gmail.com wrote:
 
 
  I have some divs that are populated with tweet.js (jquery plugin for
  twitter). So on document.ready(), the divs are populated by the
  plugin.
 
  I don't want to hit twitter on every page load and want to cache the
  populated divs somehow.
 
  Is there a way to take those populated divs and cache them? Simply
  saving the content to html is still saving the javascript too and not
  the actual output.
 
  I guess I may have to switch to grabbing the feed using cffeed or
  something, but this code is already done and styled, so I was hoping
  for something else.
 
  Thanks,
 
  -Matt
 
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347458
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Caching ajax / dhtml

2011-09-13 Thread William Seiter

JavaScript is run on the client side, so unless that JavaScript is pointed to 
your server to get the information...

You will need to find another way. 

--
William Seiter 

On Sep 13, 2011, at 4:12 PM, Matt Williams mgw...@gmail.com wrote:

 
 I have some divs that are populated with tweet.js (jquery plugin for
 twitter). So on document.ready(), the divs are populated by the
 plugin.
 
 I don't want to hit twitter on every page load and want to cache the
 populated divs somehow.
 
 Is there a way to take those populated divs and cache them? Simply
 saving the content to html is still saving the javascript too and not
 the actual output.
 
 I guess I may have to switch to grabbing the feed using cffeed or
 something, but this code is already done and styled, so I was hoping
 for something else.
 
 Thanks,
 
 -Matt
 
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347451
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Caching ajax / dhtml

2011-09-13 Thread Michael Grant

Not on the client side. Either way you have to hit a server. Better
Twitter's than yours I'd say.



On Tue, Sep 13, 2011 at 7:12 PM, Matt Williams mgw...@gmail.com wrote:


 I have some divs that are populated with tweet.js (jquery plugin for
 twitter). So on document.ready(), the divs are populated by the
 plugin.

 I don't want to hit twitter on every page load and want to cache the
 populated divs somehow.

 Is there a way to take those populated divs and cache them? Simply
 saving the content to html is still saving the javascript too and not
 the actual output.

 I guess I may have to switch to grabbing the feed using cffeed or
 something, but this code is already done and styled, so I was hoping
 for something else.

 Thanks,

 -Matt

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347453
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm