To be honest, I'm not entirely sure what's going on here. I'm trying
to figure out someone else's code, so I'm just going on a hunch about
what the problem might be. I have some data stored in an html file
that represents locations on a map. When the script tries to load the
file, I get a 405 method not alowed message for the POST, but the GET
is allowed.
-
Scott
On Oct 15, 3:23 pm, James wrote:
> I think that by default inIIS, .html filetypes will not accept POSTs.
> load() in jQuery is GET by default but if you put something in the
> data parameter, it will a be converted to a POST. Do you think that's
> what's happening?
> Unless your .html file has be configured to do server-side processing,
> I don't think it's necessary to POST data to a .html file.
>
> On Oct 15, 10:55 am, Scogle wrote:
>
> > Thanks, I'll look into that. I had a feeling that it was a setup
> > issue, but I wasn't really sure yet. I'm just trying to load() an
> > html file, which is why this issue seems so strange.
>
> > On Oct 12, 7:45 pm, James wrote:
>
> > > Sorry, I meant VERB, not VERY:
>
> > > GET (and maybe POST) VERB
>
> > > On Oct 12, 3:42 pm, James wrote:
>
> > > > It sounds like a server setup issue. What is the file type/extension
> > > > of the file that you're trying to load()? You have to set up the
> > > > server so that the GET (and maybe POST) VERY is allowed for that file
> > > > type.
>
> > > > On Oct 12, 12:53 pm, Scogle wrote:
>
> > > > > I'm working on a project that uses the load() function to grab data
> > > > > from external files, but I keep getting a "405 Method Not Allowed"
> > > > > error and the data won't load. I'm wondering if this is a problem
> > > > > with the server or if it's a sloppy mistake on my part. Any help
> > > > > would be greatly appreciated.
>
> > > > > Thanks,
> > > > > Scott