iraychen / jquery-vert-tabs

Automatically exported from code.google.com/p/jquery-vert-tabs
0 stars 0 forks source link

POST only HTTP method allowed on AJAX Request #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install jquery-vert-tabs in an application that needs to make an AJAX GET 
request to retrieve data for the tab
2.Set the URL for the tab in the view for the application
3.Click on the tab in the application.

What is the expected output? What do you see instead?
I would expect to see the page to load successfully with the response to the 
GET request. Instead, I see an alert popup with an error message and an the 
following HTTP error returned from the server:
Request URL:http://localhost:3000/projects/1/opportunities/11
Request Method:POST
Status Code:405 Method Not Allowed

What version of the product are you using? On what operating system?
I'm using 1.1.4 of jquery-vert-tabs on OS X.

Please provide any additional information below.
Well, I took a look into the source code and I noticed that line 221 of 
jquery-jvert-tabs-1.1.4.js has the following:

type: "GET"

I've hosted a copy of jquery_vert_tabs on my github account: 
http://github.com/trystant/jquery_vert_tabs and you can see the changes in 
http://github.com/trystant/jquery_vert_tabs/blob/master/js/jquery-jvert-tabs-1.1
.4.js, on lines 62 and 229. I'd like to merge these into the main project if 
possible. 

Thanks,
Mark Nyon

Original issue reported on code.google.com by nyonmark on 26 Oct 2010 at 2:43