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
321 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Node.js 11 80
how to use jquery variable in mysql query 20 74
What kind of script/language created this graph? 6 65
Form submit takes only for one form 23 53
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn about the eCommerce marketing trends for the year ahead.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

734 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