Jquery Mobile - Go to top of page on transition - jquery-mobile

In jquery mobile when you do transitions to different pages is there a way to have the page its transitioning to show the top of the page? If the current page has a long list and you scroll down, then click to go to another page with the slide transition, then click back to the previous page it shows the middle of the page where you last were. I would like it to actually go back to the top of the page when going back. Is this possible?

Try this on triggering the back button?
http://jquerymobile.com/demos/1.0b3/#/demos/1.0b3/docs/api/methods.html
//scroll to Y 100px
$.mobile.silentScroll(100);
Or on triggering the active page:
if ($("#myPage").is(".ui-page-active")) { ... }
I additionally think this is a feature which is nice, the back button takes you back to the place you have been. You don't have to re-orientate yourself because you get back to the point you were, I think its a nice usability feature.

Related

How to disable back operation of Flutter's Navigator class

After a login page, a page gets replaced by an overview page like so:
Navigator.popAndPushNamed( context, MyApp.ROUTE_TESTER_TASK_OVERVIEW );
This removes the current page from the Navigator's stack and pushes the new page on it. Fine.
Q: But how to I disable, that a user performs a back navigation? The user shouldn't bee able to leave the Task Overview page.
Should I keep the stack holding one and only one page all the time.
Or does Navigator has another option to disable a back navigation?
Q: Additionally, I want to disable the swipe right gesture, so than it doesn't show the previous page [as I the user clicked Android's back button].
One possible (probably not the best) solution is to wrap the second page within a WillPopScope widget. In the onWillPop parameter you can just return Future.value(false) to intercept all pop actions.

Home button in PowerPoint to show on mouseover using VBA

I use a home button on most of my slides with a link back to the agenda for quick jumps during my presentation. That way I avoid flipping through the individual slides and get straight back to the overview.
However, I don't want the home button in my lower right corner to show on each page as it spoils the clean look. I tried to use the mouseover event in combination with a macro but can't get it to run. I thought about making the home button completely transparent and on mouseover I would set the transparency to zero so the button shows up. When I click on it, it would follow the link.
Any help to get me there is highly appreciated.
You do know that you can simply press 1 then Enter to return to the first slide in the show, right?
But to follow up on your "I thought about .." idea, why not add a shape on the slide master in a place that won't get covered up by content in any of the slides, then assign it a Go To Slide 1 action setting. After testing to make sure it does what you want, give it any color you like then make it 99% transparent.
As long as you don't forget where to click, you're good to go.

Scroll to top of the page after redirect rails

Look I have website prototype here you can check https://arcane-beyond-35849.herokuapp.com/about
For example if you scroll down about page and then click on some link to go to another page, let's say you click restore car process link on the left(but don't forget to scroll down the page)
So then you will go to another page. But browser (my definetely) remembers scroll position. So I go to the middle of another page. How do I fix this?

jQuery Tabbed UI using AJAX - switching between tabs previous view

Let's say I have two tabs tabA and tabB. When I click on tabA the first page of that section appears, call it tabA1. If I click on a link on that page then page tabA1 is replaced with tabA2. If I then click on another tab, say tabB, and then go and click on tabA again I get an image of tabA2 lingering for a bit.
How can I make it so that clicking tabA will always show tabA1 straight away? Is it saving it in the cookies for fast access?
Before switching additionally try setting the content in the tab (or equivalent wrapper) to display : none.
This is happened to me and that's how I fixed it. Although I know it fixes the symptoms and not the exact problem.

Blackberry TabScroll and Focus problem

I'm a newbe for Blackberry and finding it quite difficult, I'm working on the TabControl example. I have changed the tabs to scroll. Now when i scroll through tabs the focus changes and as soon as the focus shifts to the other tab, the data for that tab appears.
I want to make these tabs clickable only, though they shall scroll but should change only on click.
And also when i use UIApplication.getApplication.pushScreen(someScreen) in the tabs, this someScreen appears out of the tabs, whereas i want to show this screen below the tabs only.
please help
You have to override onFocus(int) to not do anything when focus is moved. (You may or may not have to override touchEvent to handle an actual CLICK event).
You can push a screen into tabs that is not part of the tabs already. If you want something new to appear, try switching managers within the screen instead.

Resources