php - One page website with CodeIgniter and jQuery(AJAX) -
I am looking to create a one page website, which runs on PHP
By the form of CodeIgniter
) and AJAX
(supported by jQuery
), at this time I have a menu that gets populated from the database, what catergories If the depening line is selected on the line, then create the URL using those results,
if (isset ($ main_menu)) {foreach ($ main_menu $ line form) In) {print "
My problem is that for this I need to run all the questions from the controller because the user can never leave the page, what I want to do effectively Yes, it is that if the user clicks on blog
for example, then I want to run a query, which selects all content related to the blog category from the content table in the database, then I this I want to display in an Aridion style, in my site's
Is more importantly possible, and where hell will start, I can use both CodeIgniter and
jQuery
and in fact theses technologies And want to push themselves.
Thanks
I do not know the codeigniter, but I think this is the most MVC is similar in situations
This is in Ruby and prototype, but you should get this idea.
Controller:
def get_blog # Find the item #Rend or either finish JS or Jason or XML or whatever
Javascript:
New Ajax Request ('http://yourdomain.com/get-blog', {onSuccess: function (feedback) {// do something with your feedback data}});
I'm sorry this is not in PHP.
Comments
Post a Comment