{"id":118,"date":"2023-08-25T17:34:56","date_gmt":"2023-08-25T17:34:56","guid":{"rendered":"\/\/api.jquerymobile.com\/1.4\/?p=118"},"modified":"2023-08-25T17:34:56","modified_gmt":"2023-08-25T17:34:56","slug":"pagechange","status":"publish","type":"post","link":"https:\/\/api.jquerymobile.com\/1.4\/pagechange\/","title":{"rendered":"pagechange"},"content":{"rendered":"<article id=\"pagechange1\" class=\"entry event\"><h2 class=\"section-title\">\n<span>pagechange event<\/span><span class=\"version-details\">version added: 1.0, deprecated: 1.4.3<\/span>\n<\/h2>\n<div class=\"entry-wrapper\">\n<p class=\"desc\"><strong>Description: <\/strong>This event is triggered after the <code>changePage()<\/code> request has finished loading the page into the DOM and all page transition animations have completed. <\/p>\n<ul class=\"signatures\"><li class=\"signature\"><h4 class=\"name\">jQuery( &quot;.selector&quot; ).on( &quot;pagechange&quot;, function( event ) { ... } )<\/h4><\/li><\/ul>\n<div class=\"longdesc\" id=\"entry-longdesc\">\n\t\t<p>Note that any pageshow or pagehide events will have fired *BEFORE* this event is triggered. Callbacks for this particular event will be passed a data object as the 2nd arg. The properties for this object are as follows: <\/p>\n\t\t<ul>\n\t\t\t<li>\n<code>toPage<\/code> (object or string)\n\t\t\t\t<ul>\n\t\t\t\t\t<li>This property represents the page the caller wishes to make active. It can be either a jQuery collection object containing the page DOM element, or an absolute\/relative url to an internal or external page. The value exactly matches the 1st arg to the changePage() call that triggered the event.<\/li>\n\t\t\t\t<\/ul>\n\t\t\t<\/li>\n\t\t\t<li>\n<code>options<\/code> (object)\n\t\t\t\t<ul>\n\t\t\t\t\t<li>This object contains the configuration options to be used for the current <code>changePage()<\/code> call.<\/li>\n\t\t\t\t<\/ul>\n\t\t\t<\/li>\n\t\t<\/ul>\n\t\t<div class=\"warning\">\n\t<strong>Note:<\/strong> The triggering of this event is deprecated as of jQuery Mobile 1.4.3. It will no longer be triggered in 1.6.0.\n\t<p>The replacement for <code>pagechange<\/code> is the <code><a href=\"\/1.4\/pagecontainer\/\">pagecontainer<\/a><\/code> widget&apos;s <code>pagecontainerchange<\/code> event. In jQuery Mobile &gt;= 1.4.3, the two events are identical except for their name and the fact that <code>pagecontainerchange<\/code> is triggered on the pagecontainer, whereas <code>pagechange<\/code> is triggered on the page.<\/p>\n<\/div>\n\t<\/div>\n<\/div><\/article>","protected":false},"excerpt":{"rendered":"<p>This event is triggered after the changePage() request has finished loading the page into the DOM and all page transition animations have completed.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-118","post","type-post","status-publish","format-standard","hentry","category-events"],"_links":{"self":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":1,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":119,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/posts\/118\/revisions\/119"}],"wp:attachment":[{"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.4\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}