Welcome Guest, Not a member yet? Register   Sign In
Dynamically loading content within a view
#3

[eluser]onecurlyfry[/eluser]
Thx for response. on my iPhone so spelling and grammar...will do my best Smile

My view def already has divs with ids or classes set to Twitter, flickr, YouTube, etc. So that parts taken care of.

Ajax URL: are you saying that my Ajax URL is just a CI URL? e.g. www.site.com/feeds/get_content?

Finally, in the get_content method (in a hypothetical controller feeds)...am I literally returning a long htm string?

Currently, within my layout view, I use a foreach loop to iterate through the results of a query (this->db->from('feeds')->limit('10,0)->where('feed_source', 'twitter'))

So now I'll do the same thing, except in this new function, but when I return the query results, I use the foreach to build the contents of my entire Twitter div as an HTML string?

thanks again.

Scott


Messages In This Thread
Dynamically loading content within a view - by El Forum - 10-12-2010, 12:17 PM
Dynamically loading content within a view - by El Forum - 10-12-2010, 12:38 PM
Dynamically loading content within a view - by El Forum - 10-12-2010, 01:26 PM
Dynamically loading content within a view - by El Forum - 10-12-2010, 03:03 PM
Dynamically loading content within a view - by El Forum - 10-12-2010, 07:18 PM
Dynamically loading content within a view - by El Forum - 10-12-2010, 10:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB