datepicker in php

I am using the jquery datepicker and I formated my date as "yy-mm-dd" and from PHP my date format is "Y-m-d". I did an alert and viewed the selected date in the "onSelect" event for the datepicker. Within this event I am using ajax via the jquery "load" function to load content into a div. My problem is very odd behavior! For some dates my action is querying the database and generating an array which I can iterate over and present names.(I'm using kohana PHP framework). On the other hand, other valid dates are not generating any results from the query when, in fact, it should.

This is my Kohana action query

$v->events = ORM::factory('simpleevent')
                ->where('eventdate', '=', $date)
                ->order_by('eventdate', 'desc')

This id my javascript for the date picker

       dateFormat: 'yy-mm-dd',
       onSelect: function(selecteddate){

Any ideas ?

Ok guys....its the cache. The ajax resuests are being recorded in the cache for IE. I added

    cache: false

before the document is read within the script tag. However this is not clearing the cache memory. Any proper way do do this ?



You can set HTTP headers in the PHP code that tell the browser not to cache that request:

header("Expires: Mon, 01 Jan 1990 00:00:00 GMT");
header("Cache-Control: no-cache");
header("Pragma: no-cache");

Need Your Help

CVS Branching + Binary Files

eclipse cvs binaryfiles branching-and-merging

I'm using CVS through the eclipse plugin. I have a .fla and a .swf file which I have committed in CVS. I created a new branch and made changes in the .fla and swf files and committed them on the new

Spring social login and redirect and return value

java spring spring-social spring-social-facebook

I am testing Spring Social Showcase and I wrote a similar application. While the Spring Social Showcase is a simple HTML application written using Spring MVC, my app is using angularjs and AJAX. Th...