refresh

refresh / reload a datagrid in flex

烈酒焚心 提交于 2019-12-11 16:06:46
问题 I am using a datagrid. It has itemEditor components, combo boxes, etc. as aprt of columns. Ideally datagrid.invalidateList() method works to reload the datagrid with new dataProvider data. But, for me it is appending to the old data and new data gets added below the older data. I am not able to fix this reload of datagrid. 回答1: Use ArrayCollection, not Array! ArrayCollection provides all the change notification machinery you need. Array does not. 回答2: I'm having a little trouble understanding

Run CGI application without redirecting from HTML

梦想的初衷 提交于 2019-12-11 15:31:38
问题 I have an html page populated from a cgi app. Right now when I make a change on my html page through a form <form action="/cgi-bin/Lib.exe" method=POST name="checks" ID="Form2"> It takes me from http://localhost/index.html to http://localhost/cgi-bin/Lib.exe where the CGI outputs some debug lines I put in there. I then have to manually go back to the index to see it updated. When the html form sends a request to the cgi application, the CGi application makes the update to the database and re

Eclipse opens old versions of my project

荒凉一梦 提交于 2019-12-11 14:56:49
问题 When opening Eclipse the project version is not the current one(it automatically opens the very beginning version of the project, not the current files on my drive). I tried modifying the refresh settings in Preferences->Workspace, no luck. Also, when I right click->Refresh the project nothing happens. I am using the last version of Eclipse Luna and the PyDev perspective. 回答1: Try to look that its clearly the Workspace you would to use. Do you have different Workspaces? 回答2: have you tried go

jQuery Auto refresh div messing up

心已入冬 提交于 2019-12-11 13:47:30
问题 I have a script that auto-refreshes a certain div on the page (That I got from another post on here) <script type="text/javascript"> var auto_refresh = setInterval( function(){ $('#refresh').load('index.php?_=' +Math.random()).fadeIn("slow"); }, 10000); // refresh every 10000 milliseconds </script> ............... <div id="refresh"> <!-- Some PHP Code --> </div> This refreshes, however when it does, I takes the entire html document and puts it into the div. Like this: As you can see, the

Change ItemList in a ComboBox depending from another ComboBox choice

那年仲夏 提交于 2019-12-11 11:22:20
问题 first I must apologize because english isn't my mother language, but I'll try to be clear in what I'm asking. I have a set of rows in a tableview, every row has diferent comboboxs per columns. So, the interaction between combobox must be per row. If in the Combobox A1, I select Item 1, in the Combobox A2 the itemlist will be updated. My problem is that every combobox A2, B2, C2, etc. Is being updated according the choice in A1... same thing with B1,C1 combobox. I need to updated just the A2,

Refresh div on Joomla 3

给你一囗甜甜゛ 提交于 2019-12-11 09:48:57
问题 I have script to refresh div. In this script loaded file test.php and display on div # welcome-desc in normal code this script is work, but not joomla. I need refresh selected one dive to all pages. Address to test.php is correct. The script JS works correctly but not work content to Joomla (3.X ) (custom html module ) What am I doing wrong ? <script> $(function(){ setInterval(function(){ $("#welcome-desc") .load("dc/test.txt"); }, 3000); }); </script> 回答1: Custom html module may filter the

Refreshing an android app activity

↘锁芯ラ 提交于 2019-12-11 09:18:00
问题 Is this A correct way to manually refresh an activity? .... case R.id.action_refresh: Intent i = new Intent(Homepage.this, Homepage.class); Toast.makeText(Homepage.this, "refreshing", Toast.LENGTH_LONG).show(); finish(); startActivity(i); seeing that this method destroys the activity and recreates it, i was wandering weither it may be to much of a costly method. 回答1: The method given by you is a standard one. But if you need another method you can use the following method onCreate(null) 来源:

How to code an animation for refresh icon

人走茶凉 提交于 2019-12-11 08:59:41
问题 Issue at hand: I am currently trying to code an animation function for the refresh icon and so far, through research I have only managed to source this code snippet out: LayoutInflater inflater= (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); ImageView iv= (ImageView) inflater.inflate(R.layout.spin_refresh, null); Animation rotation= AnimationUtils.loadAnimation(DownloadService.this,R.anim.accelerate_decelerate_interpolator); rotation.setRepeatCount(Animation.INFINITE); iv

updating/refreshing dojo datagrid with new store value on combobox value changes

[亡魂溺海] 提交于 2019-12-11 08:58:37
问题 I have a combo box and a datagrid in my page. when the user changes the combo box value i have to update the grid with children details of newly selected parent. How can I achieve this using Dojo combo box and datagrid. the following code snippet not working for me. when I use setStore method on the grid with new json data. <div dojoType="dojo.data.ItemFileReadStore" jsId="store" url="/child/index/"></div> // grid store <div dojoType="dojo.data.ItemFileReadStore" jsId="parentStore" url="

How can You refresh a vaadin grid after data change

好久不见. 提交于 2019-12-11 08:35:12
问题 How can You refresh a grid, when some new row was added to its datasoruce container or one of its rows has been edited? I have tried the hacks written about here (http://www.helpsforcoder.com/code/31861375-vaadin-refresh-grid-after-row-modification.html ) and here (deleted link to malicious advertisement) but with no positive result. I add / edit the row in a separate subwindow that 'pop-ups' over the view, where the grid, that should update its contents, is placed. 回答1: grid.getDataProvider(