{"id":86,"date":"2011-03-29T05:33:08","date_gmt":"2011-03-29T02:33:08","guid":{"rendered":"http:\/\/meekconsulting.com\/?p=86"},"modified":"2011-03-29T05:33:08","modified_gmt":"2011-03-29T02:33:08","slug":"refreshing-jquery-ui-tabs-using-php-xajax-calls","status":"publish","type":"post","link":"https:\/\/meekconsulting.com\/?p=86","title":{"rendered":"Refreshing jquery-ui tabs using php xajax calls"},"content":{"rendered":"<p>I have a jquery-ui tab displays information that can be edited using a  xajax pop up dialog.<\/p>\n<p>After saving the dialog I wanted to &#8220;refresh&#8221; the current tab.<\/p>\n<p>This little bit of code in the server did the trick.<\/p>\n<blockquote><p>\n&nbsp;<br \/>\n$objResponse-&gt;addScript(&#8216; $(&#8220;#dialog&#8221;).dialog(&#8216; . &#8220;&#8216;close&#8217;);&#8221;);<br \/>\n$objResponse-&gt;addRemove(&#8216;dialog&#8217;);<br \/>\n$mycmd = &lt;&lt;&lt;MY_DELIMITER<br \/>\n$(&#8220;#tabs&#8221;).tabs(&#8216;load&#8217;,$(&#8220;#tabs&#8221;).tabs(&#8216;option&#8217;,&#8217;selected&#8217;));<br \/>\nMY_DELIMITER;<br \/>\n$objResponse-&gt;addScript($mycmd);<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I have a jquery-ui tab displays information that can be edited using a xajax pop up dialog. After saving the dialog I wanted to &#8220;refresh&#8221; the current tab. This little bit of code in the server did the trick. &nbsp; &hellip; <a href=\"https:\/\/meekconsulting.com\/?p=86\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9,7,8],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-jquery","tag-php","tag-xajax"],"_links":{"self":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86"}],"version-history":[{"count":2,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions\/88"}],"wp:attachment":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}