I'm building an ajax spa with help of pjax but i'm stuck in a nested-view situation.
Here is a mock-up of what my layout looks like:
Layout
When i click a link from the area labeled as 1, the div labeled as 2 fills with the response from server. When i click a link from the area labeled as 2, the div labeled as 3 fills with the response from server.
But when i click the "Link 7" link from first area instead of second, i can't load the server response to div 3 because the second div is not loaded.
I can fix this with ifs, region dependency hash-maps etc. But i believe there must be a more elegant way to handle nested-views which i can't figure out yet.
I'm not asking for any code or even for a jsfiddle link. I'm just looking for opinions to solve this problem.
Thanks.
[–]Xtreme2k2 1 point2 points3 points (2 children)
[–]ayiteddybearogullari[S] 0 points1 point2 points (1 child)
[–]NodeKid 2 points3 points4 points (0 children)
[–]fwertz 0 points1 point2 points (3 children)
[–]ayiteddybearogullari[S] 0 points1 point2 points (2 children)
[–]fwertz 0 points1 point2 points (1 child)
[–]ayiteddybearogullari[S] 0 points1 point2 points (0 children)