I am trying to have a “newResource” page that can call the same page (ie: stack) if needed.
It seems to work in my app except that when I modify it with Dom7("#id").html(…) , I believe that the underlying page is modified, rather than the stacked one. They share the same target id (and form ids), I suppose, but it would be hard to distinguish and I would have though it would reference the latest page? Is that possible, or do I need to get tricky with the ids.
I am trying to do it this way so that I can keep track of which resource is parent to which child, passing back id on save.
I have created a quick example here to illustrate what I am after:
Basically, I have a main page that can call “newResource” to navigate to a page on top. Each time it does this, a counter would be incremented and the latest id is added to the top page. I say would be, because it seems to get a 404 error in my example (unlike my local app)??
One other problem with the example is that the “go back one level” button does not work. I added a back arrow instead but would love to know why this button does not work as a related question.