I've got the Silverlight app with 4 pages(wizard).
Usually user goes throught these 4 pages from /1 to /4. Navigation is implemented using Silverlight Navigation. There is a strange bug under some IE8 and 9, when user press Refresh or Forward/Back button.
In example user navagated to /1, then to /2, then to /3 and press refresh. He sometimes gets redirected to page 1. If I open the history, it contains only page /1, but I expect all three pages - /1,/2,/3.
Another way to reproduce is having been navigated to /3 press back, forward in the browser . This way history becomes broken the same way as described - it contains only one page and current pages is /1 instead of /3.
Can anyone tell me, what is the reason of such behavior and how to fix this bug ?
http://files.rsdn.ru/3693/SilverlightNavigationApplication.zip
The main thing, that bug is reproduced on some machines with IE8 and IE9
There were a lot of exceptions in the deep of silverlight. When I turned break on exceptions and fixed the reason all works fine.
Related
I am working on a site using cakephp 2.10. It appears that the pages do not update unless the browser is refreshed. For example, I sign in as a user, it redirects me to the last page I was on before I left the previous time. (Correct function). But, when I go back to the main page, it shows me signed out. If I then refresh the page, it shows me signed in. I have tried clearing the files in the folders under app/tmp/cache/.... (persistent, model, etc) and I even tried turning debug to 3 to try and get the cache to refresh that way. I am baffled why this is working this way. Any thoughts would be appreciated. I have experienced this on three sites I am working on recently.
I am developing a PWA using react JS
There is a requirement that we need to display the add to Home screen even after the App has been added to the Home screen for the first time
Can any body suggest if this is possible and how?
INFO: Mostly this app will be run on Google Chrome and Safari
Refer to this answer. You simply can't do that, unless you want to do it in specific development/test machines where you can set the below chrome flag,
chrome://flags/#bypass-app-banner-engagement-checks
You can't expect all your end users to set this flag, so this can't be a solution for all the real users.
I also don't see why you would have to show the banner even after adding to home screen, for any other use case. Browsers don't allow this for obvious reasons. It will be annoying the user, if the prompting is left to developers. Linked answer have more clarification on the same.
I recently updated from CefSharp 1.25.7 to the most recent (39.0.0-pre02) in the hopes that it would be easier to detect when a link is clicked. In 1.25.7 there was a navigation type but that was very unreliable and even directly clicking links would just count as "other" instead of "link clicked".
Basically my use case is that I have a hosted "start page" in my application that has many links. I would like to let the user open those links in their external browser, which isn't hard other than the fact that I don't know what is a link click and what is the page just navigating around. Most of our users (myself included) will have firewalls so when they open the first time it will redirect a bunch. Unfortunately some of those redirections and navigations have transition type of "LinkClicked" for some reason so I can't just check that in the IRequest in OnBeforeBrowse. Any ideas how I could tell that a link was actually clicked so I know to direct it to the system to open in their default browser?
I am working on a windows phone app right now.
In the app, I am handling an exception in page 1, that when there is no wifi connection, it will pop a XNA messagebox, user can choose to open the WIFI settings page. I have the following code:
ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();
connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.WiFi;
connectionSettingsTask.Show();
But the problem with this is, when user hit back key in the wifi settings page, they will be navigate back to page 1, which has a loading problem and can not display the proper content. In this case, I would like user to directly go to another page, call it page 2.
Is that possible? Thank you
++++++++++++++Update
Is there are way to customize the back key functionality when showing the XNA messagebox?
I don't know about XNA coding much, but I do know that if you return from wifi connection page to your app, the OnNavigatedTo function is invoked. Try setting out your flow of code according to the application flow. If there is some code you have executed at the constructor, shift it to OnNavigatedTo and vice-verse, which may solve your problem. Also if you want to shift to another page, do it in the same function (OnNavigatedTo) itself. Hope it helps.
Maybe you can change the navigation behavior: http://blogs.msdn.com/b/ptorr/archive/2010/08/28/redirecting-an-initial-navigation.aspx
However it is recommended to merge the two pages together (hide loading bar and show main page) as you will have less problems...
why not handle this code in the IsNetworkAvailable check? that way you'l avoid the exception altogether
When I have the Development mode enabled for my profile, and I open a custom VisualForce page, the code-editing window/frame appears on the bottom of the screen.
Problem: for 7-8 months now, this window does not disappear when I am done with the custom VF page and go on to strandard pages. It's just sitting there, and displays the code for the original VF page. In addition to that, it's keeping the custom VF's URL up in the address bar of the browser, which interferes with other VF pages which take a use of the URL data.
I have submitted this as an issue to SF Support, who had pounded on it for months, and did not resolve.
Have you experienced this problem before, or know how to fix?
I've had this problem before and found the Development Mode toolbar at the bottom of pages particularly annoying. It doesn't work with some of the Firefox plugins that I use. So, I turned it off.
To edit a page without Development Mode turned on, go to Setup > Develop > Pages (or Apex Classes for controllers).
If you'd rather keep Development Mode on you may want to try updating your browser, or try using a different browser (Internet Explorer, Firefox, Chrome).
You can also use the url parameter
core.apexpages.devmode.url=1
in the address of any VF page to temporarily disable the development Mode toolbar.