13
votes
6answers
2k views

Client-side or server-side processing?

So, I'm new to dynamic web design (my sites have been mostly static with some PHP), and I'm trying to learn the latest technologies in web development (which seems to be AJAX), and I was wondering, if ...
13
votes
3answers
895 views

AJAX and jQuery with MVC

How do you organize your controllers, methods, views when you use a MVC model with jQuery with lots of AJAX bits? Question 1 Do you have a separate controller just for AJAX calls, or do you mix the ...
12
votes
4answers
12k views

CodeIgniter and Javascript/Jquery Library

As title said, I'm trying to figure out how to use javascript and jquery libraries on CI. Following instruction in the docs, I load the library in my controller: ...
10
votes
3answers
534 views

Web app - slider showing days of the months feature

For a school project we have to build a web app. I'll be creating something where people can keep track of their classes, their homework, and their free time. A planner/calendar. (I'm making it sound ...
9
votes
4answers
5k views

How do I check if the request is made via AJAX with PHP?

How do I check if the request is an ajax? I am using codeigniter. I have a link that when it clicked, it'll open the pop-up dialog window this is done through ajax it requests to a controller name ...
8
votes
4answers
4k views

How to track user time on site

Hey, I'm looking to track users average time on a website (in the same way that Google analytics does) for internal administration. What's the easiest way to do this?
8
votes
3answers
2k views

Can I compress data in JavaScript?

I'm using some pretty heavy AJAX with lots of data going from client to server. How can I compress the data (mostly plain text) before sending to the server? And how can I uncompress the data on the ...
8
votes
4answers
2k views

JSONP in CodeIgniter

I have a problem with using the jQuery JSONP method $.getJSON in CodeIgniter. The URL from which the JSON is grabbed from is the following: http://spinly.000space.com/index.php/admin/isloggedin ...
7
votes
2answers
3k views

Codeigniter (CSRF) jQuery ajax problem

I’ve got a issue here, i keep getting a error when i try to post something with ajax (POST). I know it is the CSRF that gives me these problems and I’ve been tried back and forth trying to find a ...
6
votes
4answers
14k views

How to close a jQuery fancybox from button click

I'm using fancy box to create a popup and load another page on it using an iframe. here is my code <script type="text/javascript"> $(document).ready(function() { $('.calendar ...
6
votes
5answers
4k views

Codeigniter session bugging out with ajax calls

My CodeIgniter app uses the session library and saves data to the DB. I've been having some problems where blank sessions are created after a certain ajax call. Upon investigating, it seems that ...
6
votes
4answers
616 views

Codeigniter scrollpagination

I am using jquery plugin scrollpagination in codeigniter i am facing problem that my loop does not terminate and alos not giving accurate result. this is my html code <div id="main"> ...
6
votes
8answers
544 views

Adding exactly 100 values to database using ajax

Hey guys, 3:36am and I'm needing a mental boost. Simple question, what is the easiest/fastest way to add 100 points to a database. Please assume all writes will not work due to duplicates, bad data, ...
5
votes
3answers
5k views

jQuery in CodeIgniter, inside the view or in external js file?

I'm developing web application using CodeIgniter. All this time, I put the custom js code to do fancy stuffs inside the view file. By doing this, I can use site_url() and base_url() function provided ...
5
votes
5answers
577 views

how to differentiate ajax call and browser request in php (or codeigniter)?

is there a way to differentiate ajax call and normal browser request in php (or codeigniter to be specific)? this is my jquery ajax call: $(document).ready(function() { ...

1 2 3 4 5 85
15 30 50 per page