refresh

Force Application refresh on back button

江枫思渺然 提交于 2019-12-11 08:32:29
问题 I have a web app which pulls in information via ajax after the page loads. When a user leaves the page, then hits the 'back' button in their browser, they see the page as it looked on initial load. What I need to have happen is have all javascript run as if they hit the 'refresh' button. I have tried setting the Cache-Control and Pragma headers, but this didn't help. I know this is possible, as Google does it in many of their applications, such as gmail and google reader. Any ideas? Thanks!

Improve android listview performance for refreshing and scrolling

让人想犯罪 __ 提交于 2019-12-11 08:04:45
问题 I have a ListView which onItemClick selected item changes its layout, pops different buttons. If any other item is selected, the previous selected one returns to normal. My ListView adapter works fine but refreshing the whole list with notifyDataSetChanged() in my adapter takes too much time. My problem is to refresh only the changed items in the ListView . And also I would like to have suggestions for better scrolling performance. 回答1: try to implement View Holder Pattern it increases the

AX 2012 - ListPage FactBox Part does not refresh on Sub Datasources selection change

旧城冷巷雨未停 提交于 2019-12-11 07:17:50
问题 my issue is on the ReqTransPOListPage, I added a FactBox Part related by ItemId When the user navigates in the Grid records - If the selected field on grid is one of the main DS ReqPO then the FactBox get refreshed! - But if the selected field on the grid is a field of any sub DataSource of Query, then PCDataSourceEventNotify.onRefresh() is not triggered and neither my FactBox. I can't even force refresh in ReqTrans_DS.active() since it's a ListPage based on AOT Query and datasource methods

Update JAR used by Android app in Eclipse

落爺英雄遲暮 提交于 2019-12-11 07:04:44
问题 My app uses an API from an external JAR file. This JAR file has been added into my project and added in the build path. My project builds and runs just fine, but now I need to update the JAR file (some code in those classes has changed). I created a new JAR and copied it into my project after removing the old one. Do I need to "re-import" the JAR file or is there some way for Eclipse to refresh/re-examine the JAR file Im removed and re-added ? 回答1: You should try to right click on the package

Android MediaController seekbar not refreshing

我怕爱的太早我们不能终老 提交于 2019-12-11 06:58:58
问题 I'm using a MediaController and MediaPlayer together, to create a simple audio player in Android, taken from an example I found here on this site. However, after much search I could not find the solution to my problem: the progress/seek bar doesn't refresh while the music is playing. It just updates itself when something on the MediaController is pressed (Play/Pause, forward, etc). Any easy fix for this that I'm not getting ? NOTE: My MediaController is declared in XML , and my

RAILS Auto refresh partial

旧城冷巷雨未停 提交于 2019-12-11 06:58:46
问题 I have a controller events with action show : def show @event = Event.get(params[:id]) if !connected? || !@event return redirect_to request.referrer || root_path end @requests = @event.get_requests end In view show.html.erb i have <script> $(document).ready( function() { setInterval(function() { $('#requests').load('/events/reload_requests'); }, 2000); }); </script> ... <div class="party-block" id="requests"> <%= render partial: 'requests' %> </div> ... The javascript function call controller

WCF RIA : LoadOperation Not Refreshing Data

谁都会走 提交于 2019-12-11 06:56:39
问题 I have the following code: LoadOperation<Clarifications> ClarificationsLP = context.Load(context.GetClearificationsQuery().Where(o => o.ProjectID == ((App)Application.Current).Project.ProjectID).OrderBy(o => o.RaisedOn)); ClearificationsLP.Completed += delegate {//Stuff }; When I execute this statement the second time, it does not pick up new changes from the database?? Any Idea? Thanks, Rick 回答1: Try this: (I broke out the GetClearifictionsQuery just to make the code more clear, it's the

JTable doesn't refresh after adding new row

妖精的绣舞 提交于 2019-12-11 06:46:04
问题 I have a JTable inside a JScrollPane. After calling my function which should populate the table I can't see any changes! I'v tried with table.repaint() , model.fireTableDataChanged() and probably some other stuff that I can't remember anymore - nothing worked. What am I doing wrong?? My function: public static void fillVodicTable(JTable table){ DefaultTableModel model=new DefaultTableModel(); //also tried (DefaultTableModel)table.getModel(); table.setModel(model); model.setColumnIdentifiers

jQuery mobile listview('refresh') doesn't complete enhancement

廉价感情. 提交于 2019-12-11 06:36:17
问题 I have a listview, all nicely displayed. I add an item to it, using the exact same function I used to put the original items in it with. If I don't refresh the listview, the new item doesn't get enhanced (no surprise there). But when I DO call refresh, the enhancement is incomplete. Here's the item as entered: <li data-role="fieldcontain" id="flip-li-38"> <div class="containing-element"> <label for="flip-38">A B:</label> <select name="flip-38" id="flip-38" data-role="slider" data-mini="true">

Force datasource to reload data in Angular 2 grid

北城以北 提交于 2019-12-11 06:18:05
问题 I am using Angular 2 and have a grid (ag-grid-angular) with enableServerSideSorting=true and it's working fine only for the first time: the data is loaded and placed in the grid view as expected. When I click on a column to sort that column (which happens automatically) the data is fetched again by calling getRows(params) . The problem is that I have several other input fields: Tabs: to change the type of elements displayed (for example persons or cars). Text field: which is used to enter