As we have seen in our previous Ajax requests we can grab data from different sources to output the the page. But what happens if the client has logged timmed out ? Trying to send the client to a login page can be a little more tricky than it sounds.
In this screencast I will show you a quick way to listen for unauthorized access and send the client to a login page.
Posted on : 18-06-2009 | In : Codeigniter, PHP
Screen scraping with PHP Curl has always been a pain in the arse but Simple Html Dom makes the job a walk in the park.
Being that Simple HTML Dom is a class you would normally create a library fot it, but in this case it fits perfect as a helper. let me show you.
Hopefully this will be a fun screencast for you. We will be using Jquery $.ajax GET request combined with the Codeigniter Pagination Library.
Im sure you will be suprised how easy this is achieved.
Hopefully by now you will have had a better understanding on how to use Jquery with Coedigniter. We have looked at the $.post & $.get request so far and have passed some simple data between them.
In this the last part of this series we will take a look at the $.ajax request. The $.ajax request is very powerfull and far to much to talk about in this one screencast so I would strongly suggest you take a look at the JQuery Documentation
So now we have looked at the $.get request we now are going to look at the $.post request.
In this screencast we can see how we can submit form data through this request.
Following on from part one in this screencast we will take a look at one of the Ajax functions $.get.
We will take a look at how to perfom a $.get request and how to handle the callback.
I thought before I do my next screencast with pagination I would do an introduction with Jquery Ajax.
OK so we have now covered setting up Codeigniter Pagination and passing some simple data through it. We have also managed to add categories to our posts to make it a little more interesting.
I thought in this screencast I will cover the other variables which are available to us and a real quick way to get it styled to.
So leading on from the last screencast we now have some simple data being pushed through the pagination library.
Now were going to look at adding categorys to our posts and hopefully will pick up the next common mistake people make.
One of the biggest things I see being asked around the codeigniter forums & IRC channel is pagination. So I have decided to create a set of tutorials from basic setup to move advanced techniques on how to use this library.
In this screencast I will discuss how to get basic codeigniter pagination working with some simple data.