refresh

Scrolling to load more cells in UITableView like Amazon app

我与影子孤独终老i 提交于 2019-12-18 13:42:26
问题 I am trying to create a UITableView where more rows loads automatically as I scroll to the bottom of the list. This is typically like the search function on the Amazon app for iPhone. It loads about 20 rows at a time and when I scroll to the end of the first 20, then the next 20 automatically load up. Once loaded, it remains in memory. I am not considering an option where the last row says "Load more items" like in the App store app. Here is what I am trying to achieve: My current app thread

Refresh the page after a postback action in asp.net

半城伤御伤魂 提交于 2019-12-18 12:16:42
问题 I have command button added in my asp.net grids. After performing an action using that button, we refresh the grid to reflect the new data. (basically this action duplicates the grid row). Now when user refresh the page using F5 , an alert message is displayed (to resend the information to server) if we select "retry", the action is repeated automatically. I know this is a common problem in asp.net, how can we best handle this? 回答1: Search for GET after POST - http://en.wikipedia.org/wiki

How to set size and layout in onSizeChanged?

纵然是瞬间 提交于 2019-12-18 11:03:18
问题 I can't get my elements, for example ListView , to resize properly. I got a ListActivity for searching, with a dashboard, an editbox and a listview. The idea is to hide the actionbar while the keyboard is showing. I extended LinearLayout , to listen to view size changes (as recommended here) : public class SizeChangingLinearLayout extends LinearLayout { //... @Override protected void onSizeChanged(int xNew, int yNew, int xOld, int yOld) { View actionbar = mainView.findViewById(R.id.actionbar)

retain dropdown selection on refresh [duplicate]

与世无争的帅哥 提交于 2019-12-18 08:55:06
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: retaining selected dropdown option on postback I have a dropdown when user selects the option, the value is passed on to the same url as querystring refreshing the page. after the page refreshes i wanna retain the selected value so user knows what was selected. How do i do this in jquery? <select id="hospitalDropDown" onchange="window.open(this.options[this.selectedIndex].value,'_top')"> <option value="http:/

gif animation not playing on refresh

旧城冷巷雨未停 提交于 2019-12-18 07:33:15
问题 First time I view the page with an animated .gif it plays fine on page load (lasts about 2 secs). On refresh (F5), the .gif no longer plays and only the last frame of gif animation is shown. Is there anything I can do do to make sure it plays everytime? 回答1: For the PHP the much better option then using date("Ymdgis"); is using time() , like this: <img src="picturePath.gif?<?php echo time();?>" /> 回答2: Strange behavior that's affects every browser.. I usually refresh it manually with this

Send a refresh request to another page opened in the browser

假装没事ソ 提交于 2019-12-18 07:24:00
问题 I have page A that creates a window with the page B. Page B asks the user some datas, inserts them in the database and then closes itself. After the insertion, I'm trying to make page A refresh automatically (it can be both from A seeing that B has closed, or by a function triggered by B itself before (or after?) closing) How can I do that? 回答1: JavaScript's window.open() returns reference to the instance of opened window. You may use it to set up onunload event handler, like this: var hWndB

Refresh entire Excel workbook (all data connections and calculations) every 15 minutes?

烂漫一生 提交于 2019-12-18 07:18:51
问题 I have the following macro to refresh my workbook. This is the same as clicking on the refresh all button. Is there a time element I can add to this code to refresh all data connections and all calculations on all the worksheets in my workbook every 15 minutes? The workbook has cells pulling data from SharePoint list items and contain typical formula calculations as well. Sub Workbook_RefreshAll() ActiveWorkbook.RefreshAll End Sub 回答1: Enter the following in a standard module: Public RunWhen

Force a page refresh when page visited from back button

旧巷老猫 提交于 2019-12-18 05:56:34
问题 How can I force a page refresh of page 1 when a user returns to it from page 2 by pressing the back button? Are there vbscript or javascript approaches or is it down to set the 'no cache' somehow? 回答1: Set a cookie on page 2. If the cookie is detected on page 1, reload the page. 回答2: What about doing something like this? <script> if (document.referrer == "http://www.page2.html") window.location.reload(); } </script> Just throw that at the top of your page 1 and this should work. Update I also

Modify active profiles and refresh ApplicationContext runtime in a Spring Boot application

帅比萌擦擦* 提交于 2019-12-18 05:55:53
问题 I have a Spring boot Web application. The application is configured via java classes using the @Configurable annotation. I have introduced two profiles: 'install', 'normal'. If the install profile is active, none of the Beans that require DB connection is loaded. I want to create a controller where the user can set up the db connection parameters and When it's done I want to switch the active profile from 'install' to 'normal' and refresh the application context, so the Spring can init every

How to refresh page on specific day at specific time in specific time zone?

时光怂恿深爱的人放手 提交于 2019-12-18 05:09:27
问题 I am developing a website that has two back to back web broadcasts. I have used PHP to display the time that the buttons should be enabled and disabled. Now I need to use Javascript to automatically refresh the page before the first broadcast, before the second broadcast and after the second broadcast. I implemented the following script and it does refresh the page at the given time, however, it doesn't work exactly as I need it to. I need to alter the script so that it refreshes the page on