Posts

Showing posts from November, 2014

Featured Post

Cross Domain AJAX POST Call

Friends,        would like to discuss today about cross site AJAX post which is powerful feature n client side with out waiting for server response . I have used Jquery to make AJX POST call to my website  teknosys.in . the same code which I deployed in my blogs that is working great . would like to share the code with you .  server side code looks as follows ajax.php ----------------------------------------------------    switch ($_SERVER['HTTP_ORIGIN']) {     case 'http://vedicastrology-prognosis.blogspot.in': case 'http://sitarampv.blogspot.in':     header('Access-Control-Allow-Origin: '.$_SERVER['HTTP_ORIGIN']);     header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');     header('Access-Control-Max-Age: 1000');     header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');     break; } header('Content-Type:app...