Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML5 PUT/DELETE methods not working in Chrome?
    primarykey
    data
    text
    <p>I am trying to figure out why the put/delete methods, in an HTML5 enabled site, is not working with Chrome. From what i've searched for, it sounds like it has been working for some time with Chrome, so with that said i am just looking for a few pointers to narrow down my problem. Perhaps i am implementing the form wrong, perhaps my doctype is wrong, who knows. Any help is appreciated :)</p> <p>So, the code looks like this:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt; some_resource &lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="content"&gt; &lt;form method="put" action="/some_resource"&gt; &lt;div&gt; &lt;input id="title" name="title" placeholder="The Resource Title" type="text" value="" autofocus /&gt; &lt;/div&gt; &lt;div&gt; &lt;textarea id="body" name="body" placeholder="The Resource Body" required&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;div&gt; &lt;input id="submit" name="submit" type="submit" value="Submit" /&gt; &lt;/div&gt; &lt;!-- Resource Settings --&gt; &lt;ul&gt; &lt;li&gt; &lt;input id="listed" name="listed" type="checkbox" value="y" /&gt; &lt;/li&gt; &lt;li&gt; &lt;input id="template" name="template" type="text" value="resource.html" /&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/form&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Just a basic test for a form. Now i've tried it on the Latest Ubuntu Firefox (3.6.7), Opera (10.60 Internal), and the latest Linux Chrome Beta from Google (5.0.375.99 beta). None of them seem to send the proper put method to the server, when i submit the form. Now, i believe (not from any specific research) that Firefox has yet to support this, and that like a lot of HTML5, it is scheduled for the next version of FF. Opera i do not know about, but i often hear about it keeping pace with Chrome. So.. yea, i'm a bit confused.</p> <p>When submitting the form, they go to the url: <code>http://localhost:8080/some_resource?title=t&amp;body=b&amp;submit=Submit&amp;template=resource.html</code>. Note that, as expected, POST works just fine.</p> <p>Now does anyone have any pointers to get the put method working? It could be possible that the beta for Linux simply hasn't been updated to that of the Windows variety (<em>something i assume, is what people were talking about when i saw PUT working for Chrome</em>), but i'm really hoping it is an issue with my implementation.</p> <p>Do servers have to support PUT/DELETE? (I'm using AppEngine Dev Server currently). I dunno.. hopefully someone has some ideas :)</p> <p>Thanks to any replies, Lee</p> <p><strong>Note:</strong> Other HTML5 features i've tested so far are working. Eg, in that form you can see autofocus and required attributes. Those are working as intended in Chrome.</p> <p><strong>Edit1:</strong> Just to clarify, i understand support for these is sketchy. As i replied to an answer earlier, i don't care about current support in other browsers. Currently Chrome is what i want to work, and i expect Firefox to work in the upcoming release (i don't know, i just hear them pushing HTML5 a lot), and i have no idea about Opera.</p> <p>All of this is simply to test and learn the new wonderful world of HTML5 (Web Workers, localStorage, etc) and CSS3. I only care about bleeding edge browsers, which are matching bleeding edge technology :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload