0
Є відповідь

Getting a page to "remember" changes.

Clint Sutton 11 років тому оновлено Alin Alexandru Matei 10 років тому 4
Hi

Is there any way to have items on a page remain the same if the page gets refreshed or you come back to that page?  If for example, I have items that I want the viewer to move around on that page, then I want them to stay as the viewer has arranged them if they leave that page.  This would also apply to items I have that are added to that page from other pages and display on the page.

I don't want the items to disappear each time they leave the page.  I want the page to remember what has happend there.

Is this possible?


Відповідь

Відповідь
Є відповідь

This is possible by deselecting Refresh on Load.



Since you refresh the page the element will move to the original position. From what I know there are no ways to memorize the position of an element. But if you have a preset location of where the element should be it will work like this:First we will need an app counter.When element A intersect with location B we will set  the app counter value to 1. And on page load we will need a Move behavior (to the location B)  with target being element A but with condition that the app counter is 1. I've attached a sample app showing this :

101 - Preset Move.zip


Є відповідь

This is possible by deselecting Refresh on Load.


Thanks, I have done that.  But I notice that the icon says that only will work on the iOS platform.  So I won't be able to test it in the Windows player then?  Just checking.

Thanks Alin,  But I think the problem I am having is with moving an object on that page.  I want the viewer to be able to move the various objects around to wherever they want on the page, and then for those objects to remain were they moved them when they come back to that page.


At the moment, if I move the element, it goes back it to the default position every time I refresh.


It's def not working in the Win player.  or the "interact" mode in Builder

Since you refresh the page the element will move to the original position. From what I know there are no ways to memorize the position of an element. But if you have a preset location of where the element should be it will work like this:First we will need an app counter.When element A intersect with location B we will set  the app counter value to 1. And on page load we will need a Move behavior (to the location B)  with target being element A but with condition that the app counter is 1. I've attached a sample app showing this :

101 - Preset Move.zip


Відповідь
Є відповідь

This is possible by deselecting Refresh on Load.



Since you refresh the page the element will move to the original position. From what I know there are no ways to memorize the position of an element. But if you have a preset location of where the element should be it will work like this:First we will need an app counter.When element A intersect with location B we will set  the app counter value to 1. And on page load we will need a Move behavior (to the location B)  with target being element A but with condition that the app counter is 1. I've attached a sample app showing this :

101 - Preset Move.zip