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 | By : Lee | 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.
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.
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.
Hopefully if I can keep my promise and will be rolling a set of screencast on this site and part of them will be to do with the Codeigniter Framework.
I though it would be best to start with codeigniter installation. This would be a base to start for future screencasts on codeigniter. Hopefully this screencast will demonstrate how to setup CI in a secure and safe method.