Solved

Is it possibe to preserve a flex tree component position with a client session using php or an alternative.

Posted on 2008-06-25
4
317 Views
Last Modified: 2010-04-21
I have a flex tree component I am using as a menu to find specific products.  When the user double clicks their desired product they leave that page and they view the chosen products.  What I would like to happen is as long as their current session is active and they navigate back to the categories page the tree will stay in the position it was before they left rather than going back to it's default position.  The tree is being used with a php e-commerce driven site and all the shopping cart details are stored using the current session.  I have thought about making a pop up window instead so they root page stays on the tree, but I do not care for that. I would rather the position stay fixed until you close the session.
0
Comment
Question by:aduvall
  • 3
4 Comments
 
LVL 20

Accepted Solution

by:
virmaior earned 500 total points
ID: 21868420
well depending on what  you mean, there are different solutions:

(1) if you are okay with URL staying the same, then you can use IFRAMES or FRAMES to do this.  Just have the menu target the other frame, and it will remain the same while the content switches.


(2) if you want the URL bar to change, then the navigation bar will need to be restored every time.  you will need to store the current postions / open and closed information in a cookie in the browser (via javascript).  And then reset its position after it loads.


a good illustration of the complexity of  this problem is MSDN's website.
0
 

Author Comment

by:aduvall
ID: 21869918
I am thinking that the cookie would be the way to go because when a user selects a certain item in the tree it will send them to a new page with the results of the query.  Could you direct me to any code examples?
0
 

Author Comment

by:aduvall
ID: 21887665
I decided to use iframes and it worked rather well. Still searching for a example of storing the current postions / open and closed information in a cookie in the browser (via javascript).
0
 

Author Closing Comment

by:aduvall
ID: 31470663
Thank You for the help.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Often people are aiming at development of perfect Magento websites. Though, it is easier said than done. You know what’s much easier? To ruin everything. It can be done in seconds. Many of us experimented with design, tried to change some values dir…
Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now