473,387 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

403 Forbidden Error in Ajax / JSON submit call in Zend Framework

prabirchoudhury
162 100+
Hi

I am using Zend Framework and Ajax/JOSN. Ajax GET method return is working fine but for the PUT/POST update and Add method returning "403 Forbidden Error"
and access permission. please find the attached screenshot of error page.

I am using remote shared hosting and in this case "Allow from all" has been checked

This Ajax/ JSON call I am making
Expand|Select|Wrap|Line Numbers
  1.                     $.ajax({
  2.                     type: "PUT",
  3.                     url: url_server_project+'<?php echo $id;?>',
  4.                     contentType: "application/json",
  5.                     dataType: 'json',
  6.                     data: '<?php echo $post_json;?>'
  7.                     ,success: function(msg) {
  8.  
  9.  
  10.                         if(msg.success){
  11.                             alert( "Data Saved!");
  12.                             getProject(<?php echo $id;?>);
  13.                         }else{
  14.                             alert(msg.error + ' '+  msg.projects);
  15.                         }
  16.                      },
  17.                       //error: function (request, status, error) {
  18.                        error: function (msg, status) {                        
  19.                         console.log(msg.error);
  20.  
  21.                       }
  22.  
  23.                 });
  24.  
  25.  
Please do not hesitate to ask any information

Many thanks in advanced

Prabir
Attached Images
File Type: jpg error_403_2.jpg (54.5 KB, 167 views)
Aug 1 '12 #1
0 1982

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: R. Rajesh Jeba Anbiah | last post by:
The Zend framework preview release is out <http://framework.zend.com/> and I don't know why such PEAR like (yet another) framework is needed. At the same time, Rasmus' article...
1
by: pjSoni | last post by:
Hi I would like to know from where to start learning zend frame work I need to develop project based on zend framework so what tools of zend framework I should use like db, template handling...
4
by: chonny | last post by:
How to connect and query odbc database with zend framework db?
0
by: hzqij1978 | last post by:
I am a newer of Zend Framework, i write a program to test the speed of Zend Framework, code like this: /var/www/htdocs/index.php <?php require_once 'Zend.php'; require_once...
5
by: Sanders Kaufman | last post by:
I've been programming a long time, but I'm not very bright these days. I've been using Zend Studio for a couple of years (LOVING IT!!) to build a web framework. I've been *hearing* about a...
3
by: Peter Wang | last post by:
Hi, all. I recently encountered a very annoying problem while using Zend Framework(ZF). We use ZF in our web application, and it works fine at the beginning, but later when concurrent...
4
balajibirlasoft
by: balajibirlasoft | last post by:
Am using a default converter object in ajax to convert the tables collection to a JSON string. First Input for toJSON Method is strTempData(String Builder) Second Input is the object for which...
0
by: crocodilu2008 | last post by:
JSON vs. XML JSON and XML are basically used for the same purpose—to represent and interchange data. I'll try to show you why you might want to use JSON rather than XML in an AJAX context by showing...
5
gopan
by: gopan | last post by:
Hi All, I have my Ubuntu system installed with LAMP, Zend Optimizer and I installed the Zend Framework too... But when I run command root@sys1# zf show version then it returns an error like...
2
pradeepjain
by: pradeepjain | last post by:
i have a page post2.php which prints the json array like { page: 1, total: 239, rows: }, {id:'238',cell:}, {id:'237',cell:}, {id:'236',cell:}, {id:'235',cell:},
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.