activate_subpage events

activate_subpage events

I had earlier an app, where I used pagebeforeshow events to prepare ajax calls and put some data on page.
But now I make an other one, wish to use subpages instead of pages (due to side slider menu, to have the same toolbar in the header.
My searches dont bring results.

Are they some events like pagebeforeshow for activate_subpages?

  1. $(document).on('pagebeforeshow', '#overview', function (event) {
  2. or $("#overview").on(...same

nothing works. Working will be checked with alert or console.log. But the data have to be made at least by pageshow, because the date is done with ajax success function, where .innerHTML = var

If no DOM element is present, I will have trouble with realizing the ajax.

What can I do there?

JQM 1.4.2 used.

overview is ID of the subpage.

Upd: it can be made without events at all, but I am still interested to know, if the events for activate_subpages are possible.