{"id":5696,"date":"2016-06-14T17:11:09","date_gmt":"2016-06-14T14:11:09","guid":{"rendered":"http:\/\/www.karadere.com\/blog\/?p=5696"},"modified":"2016-06-14T17:11:09","modified_gmt":"2016-06-14T14:11:09","slug":"jquery-mobile-open-dialog-popup-javascript-function","status":"publish","type":"post","link":"https:\/\/www.karadere.com\/blog\/jquery-mobile-open-dialog-popup-javascript-function.html","title":{"rendered":"jquery mobile open dialog popup javascript function"},"content":{"rendered":"<p>&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta charset=&#8221;utf-8&#8243; \/&gt;<br \/>\n&lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1&#8243; \/&gt;<br \/>\n&lt;title&gt;<br \/>\n&lt;\/title&gt;<br \/>\n&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;http:\/\/code.jquery.com\/mobile\/1.0.1\/jquery.mobile-1.0.1.min.css&#8221; \/&gt;<br \/>\n&lt;style&gt;<br \/>\n\/* App custom styles *\/<br \/>\n&lt;\/style&gt;<br \/>\n&lt;script src=&#8221;http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.6.4\/jquery.min.js&#8221;&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script src=&#8221;http:\/\/code.jquery.com\/mobile\/1.0.1\/jquery.mobile-1.0.1.min.js&#8221;&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script type=&#8221;text\/javascript&#8221;&gt;<br \/>\nfunction doStuff() {<br \/>\n\/\/alert(1)<br \/>\n\/\/ var updatedText = getUpdatedText();<br \/>\n\/\/ $(&#8220;#myMessage&#8221;, &#8220;#myDialog&#8221;).html(updatedText);<br \/>\n$.mobile.changePage(&#8220;#myDialog&#8221;);<br \/>\n}<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;div id=&#8221;myPage&#8221; data-role=&#8221;page&#8221;&gt;<br \/>\n&lt;div data-role=&#8221;header&#8221;&gt;<br \/>\n&lt;a href=&#8221;#&#8221; data-icon=&#8221;arrow-l&#8221; data-iconpos=&#8221;notext&#8221; class=&#8221;ui-btn-left jqm-home&#8221; onclick=&#8221;backButton_Click();&#8221;&gt;Back&lt;\/a&gt;<br \/>\n&lt;h1&gt;My App&lt;\/h1&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;div&gt;<br \/>\n&lt;input id=&#8221;saveButton&#8221; type=&#8221;button&#8221; value=&#8221;Save&#8221; onclick=&#8221;doStuff()&#8221; \/&gt;<br \/>\n&lt;a href=&#8221;#&#8221; onclick=&#8221;doStuff()&#8221; &gt;deneme&lt;\/a&gt;<\/p>\n<p>&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p>&lt;div id=&#8221;myDialog&#8221; data-role=&#8221;dialog&#8221;&gt;<br \/>\n&lt;div id=&#8221;myMessage&#8221;&gt;&lt;\/div&gt;<br \/>\n&lt;input id=&#8221;button1&#8243; type=&#8221;button&#8221; value=&#8221;Button 1&#8243; data-theme=&#8221;b&#8221; onclick=&#8221;someJS1();&#8221; \/&gt;<br \/>\n&lt;input id=&#8221;button2&#8243; type=&#8221;button&#8221; value=&#8221;Button 2&#8243; data-theme=&#8221;c&#8221; onclick=&#8221;someJS2();&#8221; \/&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;html&gt; &lt;head&gt; &lt;meta charset=&#8221;utf-8&#8243; \/&gt; &lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1&#8243; \/&gt; &lt;title&gt; &lt;\/title&gt; &lt;link rel=&#8221;stylesheet&#8221; href=&#8221;http:\/\/code.jquery.com\/mobile\/1.0.1\/jquery.mobile-1.0.1.min.css&#8221; \/&gt; &lt;style&gt; \/* App custom styles *\/ &lt;\/style&gt; &lt;script src=&#8221;http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.6.4\/jquery.min.js&#8221;&gt; &lt;\/script&gt; &lt;script src=&#8221;http:\/\/code.jquery.com\/mobile\/1.0.1\/jquery.mobile-1.0.1.min.js&#8221;&gt; &lt;\/script&gt; &lt;script type=&#8221;text\/javascript&#8221;&gt; function doStuff() { \/\/alert(1) \/\/ var updatedText = getUpdatedText(); \/\/ $(&#8220;#myMessage&#8221;, &#8220;#myDialog&#8221;).html(updatedText); $.mobile.changePage(&#8220;#myDialog&#8221;); } &lt;\/script&gt; &lt;\/head&gt; &lt;body&gt; &lt;div id=&#8221;myPage&#8221; data-role=&#8221;page&#8221;&gt; &lt;div data-role=&#8221;header&#8221;&gt; &lt;a href=&#8221;#&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[2],"tags":[2524,1241,1246,1494,2591,2590],"class_list":["post-5696","post","type-post","status-publish","format-standard","hentry","category-2015-2016","tag-function","tag-javascript","tag-jquery","tag-mobile","tag-mobile-jquery","tag-open-dialog-popup","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"views":1254,"_links":{"self":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/5696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/comments?post=5696"}],"version-history":[{"count":1,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/5696\/revisions"}],"predecessor-version":[{"id":5697,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/5696\/revisions\/5697"}],"wp:attachment":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/media?parent=5696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/categories?post=5696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/tags?post=5696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}