Welcome Guest, Not a member yet? Register   Sign In
Need help w/ Dynamic content and passing data around
#2

[eluser]toopay[/eluser]
[quote author="int21h" date="1303746218"]I've been told to look into Jquery and JSON.[/quote]
Look deeper ;-)
[quote author="int21h" date="1303746218"]The problem stems from someone else writing all the code that handles the information, but it must be passed to the view, like when it is passed into a view using: $this->load->view('member_view', $data);
because the page uses variables like "$rows" which are passed as $data['rows'][/quote]
The general scenario would be :
1. You have a js function, which make an ajax call to server.
2. You have separated controller function to handle the call, proccess it, then generates the data (that would be JSON).
3. The success function on your ajax call, will modify/manipulated your content by DOM mechanism.


Messages In This Thread
Need help w/ Dynamic content and passing data around - by El Forum - 04-25-2011, 04:43 AM
Need help w/ Dynamic content and passing data around - by El Forum - 04-25-2011, 05:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB