I have a web application that allows a user to view family members.
When the user clicks on a family member, it displays the member’s basic info. There is also a grid displaying that family member’s related family members. (e.g. User can click on the Father link. From that popup, they can then click on the Father’s Father link, then click on the Father’s Father’s Grandson link, etc.).
To reduce the number of popups that appear on the screen, I want to prevent the user from continually clicking on family links past three members.
What is the best way to keep track on how many data forms have popped up? Or can this reliably be done with a web application?
Of course there are many ways to do this, all probably valid. I would maintain a number on each window (not global). I’d use the Querystring of each popup to increment and push this number onto new windows. Each window will increment this count by one and embed it in the links on its page. Once the count is 2 in a window, don’t render anymore hyperlinks in that window. That way they only have 3 open at a time, but can still close one to go back a level, and then click a different link to continue.