History management in Flex
I am trying to do some history management in a flex app but I am getting strange behaviour on my test server. I have a history enabled tab control and if I press back it returns to the previous tab but it does it like I clicked to navigate to it so the forward button does not work. This also means that the back button will effectively just switch between the current tab and the previous one no matter how many times you press it or what other tabs you clicked on before that.
The strange thing is it works fine in firefox (though for some reason history never works in chrome) and it works in IE when being run locally on the asp.net development server. The test server is running IIS.
When in chrome the history button doesn't actually do anything until you get to the point where the app was loaded, you then get send to the page before the app as expected.
Newbbie question: How do you know if you have the latest?
If not, can you update only those two files & how?
I'm working with Flex3 & experiencing same behaviour - FF fine for Browser Back/Next, Chrome Fails
Similar Messages
-
Problem with history manager on internet explorer
Hello,
I'm using the flex's history manager to save a state of my
application. When I use firefox everything works almost fine, but
when I use internet explorer nothing works. I tried both 6.0 and
7.0.
Do anyone know why does this happen and how can I workaround
it?Hi Konstantin,
Searching through our bugbase, I found this bug which sounds
like the issue you're having:
history management doesn't work when previewing a local file
in IE:
http://bugs.adobe.com/jira/browse/FB-443
This should work fine when using an http url. If not, can you
please log a bug?
thanks,
Sharon -
Revision: 4910
Author: [email protected]
Date: 2009-02-10 11:51:58 -0800 (Tue, 10 Feb 2009)
Log Message:
Implementing workaround for history manager rendering issue (Firefox/Mac) caused by a long standing player bug.
Bugs: SDK-17020.
QE Notes: None
Doc Notes: None
Reviewer: Alex
Tests: DeepLinking
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17020
Modified Paths:
flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/managers/BrowserManagerImpl.as
flex/sdk/branches/3.x/templates/html-templates/client-side-detection-with-history/history /history.js
flex/sdk/branches/3.x/templates/html-templates/express-installation-with-history/history/ history.js
flex/sdk/branches/3.x/templates/html-templates/no-player-detection-with-history/history/h istory.js -
State cache and History management
I am working on states management in Flex. Currently if I log
in to the application and do some search, this is basic
functionality of my application, results are shown in Datagrids.
Now if I click logout from the application (which is just a button
to close the main application window) and re-login into the
application it still shows the previous results. On re-logging into
the application I do not want to show previous data i.e., I want to
show a clear new state. I am not using any wrapper.
How can I solve this problem?Hi there,
Maybe this can help you.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid =1338322&highlight_key=y&keyword1=history
Greetz, J. -
History Manager - FFox - Debug Player
Hi,
I'm getting a weird security exception. My setup is:
1 main application
2 load external module through the moduleloader
3 use a view state component in the main module to enable the
history
management.
I am getting:
Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047:
Security
sandbox violation: LocalConnection.send: mydomain.com cannot
access
http://local.mydomain.com/home.swf.
Where home.swf is the main module.
This only happens in Firefox.
Does somebody ran accross that and got it to work?
Thanks,
JGI will just reply to myself :-) I figured it out, Flex does
some weird
things. I suspected that some class was not included or
instanced at the
beginning of the application to handle the history manager.
The setup I had
was:
main app:
<mx:ModuleLoader url="home.swf" ready="progressBox.visible
= false"
id="home" left="0" right="0" bottom="0" top="0"/>
home module:
<mx:ViewStack id="views" horizontalCenter="0"
verticalCenter="0"
width="100%" height="100%"
historyManagementEnabled="true">
</mx:ViewStack>
That's when I was getting the bug. So, my quick fix is:
main app:
<mx:ViewStack height="100%" y="0" width="100%" x="0"
historyManagementEnabled="true">
<mx:ModuleLoader url="home.swf"
ready="progressBox.visible = false"
id="home" left="0" right="0" bottom="0" top="0"/>
</mx:ViewStack>
home module:
same as before
and voila :-)
JG
"Jose Guevara" <[email protected]>
wrote in message
news:eubtog$5l5$[email protected]..
> Hi,
>
> I'm getting a weird security exception. My setup is:
>
> 1 main application
> 2 load external module through the moduleloader
> 3 use a view state component in the main module to
enable the history
> management.
>
> I am getting:
> Error #2044: Unhandled SecurityErrorEvent:. text=Error
#2047: Security
> sandbox violation: LocalConnection.send: mydomain.com
cannot access
>
http://local.mydomain.com/home.swf.
>
> Where home.swf is the main module.
>
> This only happens in Firefox.
>
> Does somebody ran accross that and got it to work?
>
> Thanks,
> JG
>
> -
Revision: 14751
Revision: 14751
Author: [email protected]
Date: 2010-03-14 12:20:05 -0700 (Sun, 14 Mar 2010)
Log Message:
Bugfix for history management with navigation interceptors
Modified Paths:
cairngorm3/trunk/libraries/Integration/pom.xml
cairngorm3/trunk/libraries/Navigation/src/com/adobe/cairngorm/navigation/core/NavigationM essageProcessor.as
cairngorm3/trunk/libraries/NavigationTest/src/NavigatorSample1.mxml
cairngorm3/trunk/libraries/NavigationTest/src/sample1/Sample1Context.mxml
cairngorm3/trunk/libraries/NavigationTest/src/sample1/presentation/NavigationBar.mxmlAlex,
On the mac, I've been attempting to check out the Navigation project but I keep getting prompted for credentials. This is using Subclipse within Flex Builder3 on the Mac.
Jeff -
HI MASTERS,
WHY WE UUSE HISTORY MANAGE CHECK BOX IN ASSET MASTER, AND IN ASSET CLASS,
I THINKING IT IS USED FOR UPLOADING THE ASSETS TO ASSET HISTORY SHEET IS IT. PLEASE GIVE REPLY THIS , POINTS WILL B ADDED.Hi Gov
What do you mean by?
"I have to upload asset history from the date of its acquisition."
As far as I know there is no upload to be done. If you do not set this
indicator you will not have detail information for assets of that asset class (created when the indicator was set) in report RAHIST01 / 02.
You can test it in one of your systems.
Regards
Javier -
after reinstaling the firefox browser i have the following information when attempt to install facebook chat history manager addon:
This addon has been disabled by the administrator (something like that).If you lock a pref then it is impossible to change such a pref on the <b>about:config</b> page.
*http://kb.mozillazine.org/network.proxy.type
*http://kb.mozillazine.org/network.proxy.%28protocol%29
*http://kb.mozillazine.org/network.proxy.%28protocol%29_port
You can compare a copy of prefs.js before and after having changed a setting to see which pref(s) to lock. -
Use-network and history management
Hi everyone
I'm currently working on an application with Flex Builder 2
and as i was trying
to run it locally i noticed a strange behavior.
When i use the option -use-network=false my application works
nicely on my
computer except for my control bar : whenever i click on a
link in the linkbar the
history.htm page opens for no reason, and the back and
forward buttons of my
browser don't work anymore either.
It's not a atrocious dilemna but it tickles me though, so if
you have any idea
where that could come from please tell me.
Best regards.
Vianney BaronI think we tried contacting that company from the UK but the pricing and monthly payments were really out on our budget. We've tried the Leopards Parental Controls server based where you need to setup OD and control the computer/accounts using WGM but it does not meet our needs for example we want a specific site be access on a specific time.
Is there like an software emulator of any hardware/network management device on (OS X) leopard? -
PopUp Manager and Flex Forum PopUps
I wanted make sure I understood what someone on the Forum told me about the PopUpManager and TitleWindow.
My question was: "How are the PopUps that appear when you hover over a person's image/profile on the left side of this Adobe Forum's page done? Did you use Flex for this, or are they some type of Ajax thing? If Flex was used was it done with the PopUp Manager based on the TitleWindow. This is exactly the kind of PopUp I need, especially because it has a larger hit area than most PopUps which dissapear when the mouse exits the button or textarea acting as a button.
Thanks and Sorry for the long version.
DougHi,
Same thing is simple to acheive in flex.You can try the code below.Let me know if you have any issue with this.
MainApplication.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
verticalAlign="middle">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
private var bool : Boolean;
private var myPopUp:MyPopup;
private function onMouseOver():void
if(bool == false)
if(myPopUp != null)
PopUpManager.removePopUp(myPopUp);
myPopUp = null;
myPopUp = MyPopup(PopUpManager.createPopUp(this, MyPopup, false));
myPopUp.move(700,400);
var infoObject : Object = new Object();
infoObject.imagePath = 'assets/img1.png';
infoObject.name = "David";
infoObject.country = "United Kingdom";
infoObject.profession = "Software Developer"
infoObject.domain = "Banking";
myPopUp.info = infoObject;
bool = true;
private function onMouseOut():void
bool = false;
if(myPopUp != null)
PopUpManager.removePopUp(myPopUp);
]]>
</mx:Script>
<mx:Image source="assets/img1.png" mouseOver="onMouseOver()" mouseOut="onMouseOut()"/>
</mx:Application>
MyPopup.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" width="250" height="300"
title="Author Information">
<mx:Script>
<![CDATA[
private var _info:Object;
public function get info():Object
return _info;
public function set info(value:Object):void
_info = value;
if(value != null)
imgImage.source = info.imagePath;
nameLbl.text = info.name;
countryLbl.text = info.country;
professionLbl.text = info.profession;
domainLbl.text = info.domain;
]]>
</mx:Script>
<mx:VBox width="100%" height="100%" horizontalAlign="center" verticalAlign="middle">
<mx:Image id="imgImage" buttonMode="true" useHandCursor="true"/>
<mx:Label id="nameLbl"/>
<mx:Label id="countryLbl"/>
<mx:Label id="professionLbl"/>
<mx:Label id="domainLbl"/>
</mx:VBox>
</mx:TitleWindow>
with Regards,
Shardul Singh Bartwal -
I am using Flex as UI and Java as backend with Spring framework. In my application communication is happening because of BlazeDS using Remote Object.
Please explain how I can manage with session.Flex apps retain state on the client. Why do you need a
session? Sessions were invented because html apps are stateless.
Flex apps are stateful. Use SharedObject across flex app sessions.
Tracy -
Hi,
How could I enable back and next navigation from my own
button (for continers implementing IHistoryManagerClient)?
I saw there is a loadState method that gets the state, does
that meas i should manage the states?
Thanksthanks,
The following code do what i want, but i thought that the
HistoryManager, or the container itself save the states (here i
used the states stack to push and pop the selecting order):
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
verticalGap="10">
<mx:Accordion id="ac" width="100%" height="50%"
change="ac.states.push(event.oldIndex)">
<mx:VBox label="View 1">
<mx:TextInput text="View 1"/>
</mx:VBox>
<mx:VBox label="View 2">
<mx:TextInput text="View 2"/>
</mx:VBox>
<mx:VBox label="View 3">
<mx:TextInput text="View 3"/>
</mx:VBox>
</mx:Accordion>
<mx:Button id="backButton" label="Back"
click="ac.selectedIndex = ac.states.pop()"/>
</mx:Application> -
Right now, our application is a main app that loads modules in as I need them, but I need to figure out how to register each module with the same HistoryManager.
The problem is that the URL is being appended whenever I call HistoryManager.save() rather than replacing the information.
For Instance:
Main App - creationComplete calls mx.managers.HistoryManager.register(this);
Each Module - creationComplete calls mx.managers.HistoryManager.register(this);
Each Module - creationComplete calls mx.managers.HistoryManager.save()
For each module, saveState():Object looks something like this:
var o:Object = new Object();
o.module = thisModulesName;
o.state = currentStateOfModule;
The URL will do something like this though:
#app=ca1a&21f8-module=Gallery&21f8-state=start&55b6-module=EmailGreeting&55b6-state=editor
I am under the impression that the saveState should actually register with the browser and replace the key,value pairs, if I am trying to overwrite them.
Any help would be great.
Could this be because it is a Singleton Enforced class and I need to do something else in the main app?
Thanks!Any help, along with any information of the right way to implement this and the expected flow would be great!
-
I have
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical" horizontalAlign="center"
creationComplete="initApp();"
implements="mx.managers.IHistoryManagerClient">
<mx:states>
<mx:State name="partners"/>
</mx:states>
I also have an accordion on currentState="" as follows:
<mx:Accordion width="100%" height="90%"
id="toppage_accordeon" historyManagementEnabled="true">
I also have loadState ans SaveState as follows:
public function initApp() :void
HistoryManager.register(this);
HistoryManager.register(toppage_accordeon);
addEventListener(StateChangeEvent.CURRENT_STATE_CHANGE,
handleStateChange);
initCollections();
* Implementation of saveState() method required by
* the IHistoryManagerClient interface.
public function saveState() :Object
var historyState:Object = new Object();
historyState.currentState = currentState;
return historyState;
* Implementation of loadState() method required by the
* IHistoryManagerClient interface.
public function loadState(historyState:Object) :void
// Temporarily ignore currentStateChange events.
removeEventListener(StateChangeEvent.CURRENT_STATE_CHANGE,
handleStateChange);
if (historyState == null)
{ // TRICKY: Null value indicates that initial state is
required.
currentState = "";
else
currentState = historyState.currentState;
// Listen for currentStateChange events again.
addEventListener(StateChangeEvent.CURRENT_STATE_CHANGE,
handleStateChange);
public function handleStateChange(event:StateChangeEvent)
:void
HistoryManager.save();
When I launch and change the accordion state I get an error
as follows:
TypeError: Error #1009: Il est impossible d'accéder
à la propriété ou à la méthode d'une
référence d'objet nul.
at
mx.managers::HistoryManagerImpl/save()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framew ork\src\mx\managers\HistoryManagerImpl.as:555]
at
mx.managers::HistoryManager$/save()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework \src\mx\managers\HistoryManager.as:140]
at
mx.containers::Accordion/commitSelectedIndex()[E:\dev\flex_3_beta2\sdk\frameworks\project s\framework\src\mx\containers\Accordion.as:1775]
at
mx.containers::Accordion/commitProperties()[E:\dev\flex_3_beta2\sdk\frameworks\projects\f ramework\src\mx\containers\Accordion.as:1056]
at
mx.core::UIComponent/validateProperties()[E:\dev\flex_3_beta2\sdk\frameworks\projects\fra mework\src\mx\core\UIComponent.as:5552]
at
mx.managers::LayoutManager/validateProperties()[E:\dev\flex_3_beta2\sdk\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:517]
at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\flex_3_beta2\sdk\frameworks\pro jects\framework\src\mx\managers\LayoutManager.as:667]
at Function/
http://adobe.com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\flex_3_beta2\sdk\frameworks\projects\f ramework\src\mx\core\UIComponent.as:8338]
at
mx.core::UIComponent/callLaterDispatcher()[E:\dev\flex_3_beta2\sdk\frameworks\projects\fr amework\src\mx\core\UIComponent.as:8281]
Is this my mistake or an issueon FB 3?
Thx for help.By the way I aso tried with
<mx:Accordion width="100%" height="90%"
id="toppage_accordeon" historyManagementEnabled="false"> since
implicitly it is enabled. Same result. -
Manage History Indicator in Asset Master
Hi,
Could any one please tell
what s the use of manage historically indicator
what would happen is i have not ticked on it.
Thanks
Moderator: Press F1 on the fieldHi,
Asset is managed historically
Set this indicator if you want the system to manage the asset with a history. Active history management has the following effects:
The asset is displayed in an asset chart.
The asset and the values/transactions belonging to it cannot be reorganized until the asset is deactivated.
Regards
udayakumar
Maybe you are looking for
-
My MBP can't open some web pages
Hello. I have problem with opening some web pages. It doesn't matter on the browser. It happens as in Safari as in Chrome. All browsers are updated. My MPB is updated. Problem is not in router. My gf has the same MBP and she can open the pages which
-
I currently run Solaris 2.5.1 on my SS5, does anyone think I will have problems running Solaris 8 on a SS5? Thanks! Matt
-
Lock button barely works/extreme over heating
Okay, today when I woke up I went to go check my Nokia Lumia 520, I pressed the wake up button, nothing happened, tried again, nothing happened, kept trying until I tried about 10 times, then it finally turned on, I don't know what could be wrong? Al
-
Hi,All, I have a urgent requirement for my BPM project i just giving the scenario:- I have a initiator who initiates the process,after initiating the process a instance goes to the next level who is the Team Leader .Now this team Leader has a UI asso
-
My 15g ipod 2 freezes (won't start to load tunes) after updating itunes. I've tried everything. Thrown plists away, updated ipod etc. Hours and hours. Do I have to go back to an older version of itunes. Does anyone know?