<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>griefworker</author_name>
  <author_url>https://blog.hatena.ne.jp/griefworker/</author_url>
  <blog_title>present</blog_title>
  <blog_url>https://tnakamura.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>Ruby</anon>
  </categories>
  <description>jQuery Mobile を使った Web アプリ開発で、 フォームの submit で非同期に POST リクエストを送信 サーバー側でフォームデータを処理した後リダイレクトを返す クライアント側でリダイレクト先にページ遷移 という処理を実装するとき、data-role=&quot;page&quot; を指定したタグに、data-url=&quot;ページのURL&quot; も指定する必要がある。data-url を指定していないと、「画面は変わるけど、アドレスバーに表示されている URL は変わらない」という動きをしてしまう。サンプルコードは次の通り。 # coding: utf-8 require &quot;sinatra&quot; @…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F20120130%2Fjquery_mobile_form_post_redirect&quot; title=&quot;jQuery Mobile でフォームを submit 後にリダイレクトするとロケーションが変わらない - present&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-01-30 00:00:00</published>
  <title>jQuery Mobile でフォームを submit 後にリダイレクトするとロケーションが変わらない</title>
  <type>rich</type>
  <url>https://tnakamura.hatenablog.com/entry/20120130/jquery_mobile_form_post_redirect</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
