FAQ Database Discussion Community


ListView in android for dynamic data

refresh
how to refresh List View dynamic data content in android? I tried loading dynamic data for the List View in android application but no luck .Any advice how to accomplish this?

Refresh a Servlet by another Servlet

java,servlets,iframe,refresh
I have to create a little webshop for a school-project, but entered in to a problem during the process by updating/refreshing the Servlets. Description: I created an index.html file which includes two servlets via iframes, the left side for Navigation-Servlet and on the right the Controller-Servlet does something to show...

Refresh page when press enter

jquery,refresh,imagebutton,enter
My code has few <asp:ImageButton> . But I want to make when I press Enter key, not others change but only submit button works . Now, when I press Enter key in my code , .calendar class button works and calendar come out. jquery $('form').keypress(function (e) { if (e.which ==...

Update div content using PHP and Javascript variables

javascript,php,ajax,refresh
I'm new to Ajax and need some help with this. The idea is simple, I have a list of directories within the div 'list' and when I click on one of the directories, the div 'content' must list the content of this directory with a php function. This is my...

How do you reload a variable shown in HTML when it changes value?

javascript,jquery,html,refresh,reload
My HTML shows a variable inside of a script tag, and I want to reload only that variable. <script class="scriptClass">document.write(myObject.myProperty);</script> <button>Go</button> When a function runs that changes the value of myObject.myProperty, it needs to be updated in the HTML. JavaScript is something like this: var myObject = { myProperty:"Initial" };...

Spring MVC refresh database beans in application context

spring,singleton,refresh,javabeans,apache-commons-dbcp
I am developping a Spring MVC web application that use the dbcp database connection pool. <bean id="datasourceAR_XXX" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" scope="singleton"> <property name="driverClassName"><value>oracle.jdbc.driver.OracleDriver</value></property> <property name="url"><value>jdbc:oracle:thin:@XXX.XXX.com:1500:SERVICE</value></property> <property name="maxActive"><value>100</value></property>...

Set Eclipse “Refresh using native hooks or polling” to true through java code?

eclipse-plugin,refresh,workspace
Is there a way to set "Preferences -> General -> Workspace -> Refresh using native hooks or polling" to true through java code? I'm developing an eclipse plugin that changes the resources a lot and therefore, the projects are always out of sync.

Chrome applies height property of media query only on refresh

css,google-chrome,height,media-queries,refresh
I have a header with varying height by media queries. When I resize window on FF or even IE, it applies new height value immediately. The problem is, that Chrome only does it on browser refresh. It applies any other value immediately (like background-color), but not the height. Also this...

CSS not loading after refresh in Rails

html,css,ruby-on-rails,refresh,page-refresh
I'm new to rails, I have created an app in which user has a profile and that can be edited with edit profile option. In controller I have, ProfilesController In Views I have, index.html.erb edit.html.erb It all works fine for index page, but for the edit page it's cool for...

JFrame/JPanel refreshing and text fields

java,jframe,jpanel,refresh,textfield
I'm trying to switch between displaying different JPanels in BorderLayout.CENTER in a JFrame. The JPanels each contain a JTextField and a JTextPane. Calling revalidate() and repaint() on the JFrame, I get a very strange result: the first time I switch to secondPanel by clicking secondButton, everything works as expected. Then...

How to refresh form when I open?

forms,refresh,axapta,x++,dynamics-ax-2012
I have a CheckBox in my TabPage on my Form, if I select the checkBox, the value is saved in a Table field (present in my FormDataSource: ParametersTable). I want to refresh the form when I enter in TabPage, just Like pressing F5. Is it possible?...

How to get iFrame id from src with jQuery

jquery,html,iframe,refresh
What I want to do: I've got an HTML page with some iFrames in it. I need to refresh one particular iFrame after I click on a button. My problem: that iFrame I want to refresh, got a dynamic id, so I can't do this with document.getElementById(FrameID).contentDocument.location.reload(true); I would like...

Two datagridviews bound to the same table. Refresh not working

c#,mysql,datagridview,refresh,dataadapter
Situation: I'm writing a Winforms app using C# in VS2013 with .NET4.0. On a tabbed control I have two tabs. In the first I have a dgv bound via a data adapter to a MySQL "product" table and also a dgv bound to a MySQL "stock" table. These are related...

jQuery Mobile ranger / slider refresh not working

jquery,user-interface,mobile,slider,refresh
I am developing a mobile app based on HTML5 & CSS & JS, powered by jQuery mobile. I am creating a form programmatically. I use text fields and rangers (slider). After creating this inputs they aren't styled. No problem. For refreshing textfield style, I use: $(selector).textinput(); .. and all works...

UIProgressView and regular refresh (in Swift)

swift,refresh,uiprogressview
I need to parse quite a lot of text and wanted to provide some feedback to the user while this is taking place. The environment is Swift and while I do see some code in Obj-C ([self performSelector:@selector(.....)), it doesn't make a lot of sense. If I knew how to...

Background image flickering on chrome / jquery post + div refresh

jquery,google-chrome,refresh,flicker,blink
I have a problem when i refresh some data into a div, which contains background image. The background image flicker on chrome. Check by yourself on Chrome: EDIT: Check below, wait for 10 sec, the first 2 pics will start flickering. I hosted them on a similar server i use...

Refresh PHP session variables

php,ajax,session,refresh
How do I refresh session variables so after a user edits first and last name, they are immediately shown? Right now, I need to logout and login again so that I can see the changes entered, because session is restarted, right? What should I do? Ajax? Angular? I am truly...

Preserve painting after resize or refresh

c#,refresh,repaint,flood-fill
How can I preserve the painting I drew on a picturebox? I draw a circle, and fill it via the ExtFloodFill API. This works fine. When I resize the form (or minimize it) and resize it back to its original size part of the painting is gone. When I refresh...

Refreshing SQL view after adding a default constraint to one of its tables

sql,table,view,refresh
How exactly can I refresh the view after adding a default constraint to one of the tables that makes up the view? I tried to use the sp_refreshview stored procedure but that didn't actually update the view. Here is the code I wrote to update one of columns with a...

I can't refresh a div in my web

php,jquery,html,refresh
I'm trying to refresh a part of my web, a div, I found code about this, but It doesn't works. It seems it's correct but doesn't works. I don't understand what happens, I tried other jQuery codes and doesn't work too. This is the html file: <!DOCTYPE html> <html> <head>...

How to appropriately performFetch from NSFetchedResultsController after changes in another context?

ios,objective-c,core-data,refresh,fetch
When I make some changes in another top layer controller with own context then I post notification to UITableViewController class for update cells. This notification calls performFetch after setting fetchedResultsController to nil. But I have seen this changes only if I reload UITableViewController entirely. I'm not using cache. How to...

Reload grid selection after deletion of row in extjs

extjs,grid,refresh,panel
I have a grid with one column, which when the user selects, is used to display information in various textfields, checkboxes which are embedded in a panel on the right. I have implemented a delete feature at the row level in the grid. Now I wish either of these two...

How can I update the text of a JButton when I click on it?

java,swing,refresh,jbutton,jlabel
I assume there is a better way than removing every element from the JPanel and remaking them, because that's the workaround I had but now obviously when the button is clicked it's told to remove itself so the action never completes. Here's my awful code for adding the button action...

Angular render view after parameter changed in service

javascript,angularjs,refresh
High level I header view and a main view in my angular application. I want the header to have a "back" button that is show/hidden based on the page I'm on. What I did app.js (snippet) app.factory('globalServices', function() { return { showBack : false, back: function() { window.history.back(); } };...

Refreshing a folder that doesn't exist in the file system

winapi,refresh,intptr,shell-extensions,change-notification
In my shell extension I have folders that don't actually exist in the file system, but only appear so to the user. When the content of those folders is changed, I want to refresh them, and currently I do it in the same method I do for regular folders: Win32.SHChangeNotify(SHCNE_UPDATEDIR,...

How can I make an element not visible after refresh

javascript,jquery,refresh,removeclass
Basically I put a lightbox with a video in my website which shows at the beginning, you can skip it using a button or pressing "Esc" key, but what i want is it only shows once, I mean if I do a refresh on the site, or if I go...

Google maps API marker refresh

python,html,google-maps,gps,refresh
I'm building a web site service for a GPS localisation service using a Syrus GPS modem. I have two files, one python code to catch the info coming from the modem and another HTML file which is the webpage, the python script rewrites directly to the HTML using: def replace_line(file_name,...

Yodlee MFA site flow

refresh,yodlee
The yodlee documentation about the MFA flow is a bit blurry/outdated. I am following this flow chart to refresh a site with MFA: http://developer.yodlee.com/Aggregation_API/Aggregation_Services_Guide/API_Flow/Refresh_Site_Account On the flow chart, after calling getMFAResponseForSite, we are supposed to check if there is an errorCode field in the response, I don't see such field...

I can't get my UITableView to reload data in swift

uitableview,swift,ios8,refresh,reload
I'm using a UITableView to list a number of settings with the state of that setting displayed in the cell title. When the cell is selected it segues to another view where I change the setting. I use a navigation control to go back to the UITableView however I'm unable...

Refresh/reload textview from database | Button Tapped Function

ios,database,textview,refresh,reload
I have declare the textview outlet: @IBOutlet weak var messageView: UITextView! I have created the interface action, and place the logic: @IBAction func refreshTextViewTapped(sender: UIButton) { // logic } Reload/update textview with new content....

Refresh part of a form not the whole thing

vb.net,refresh
Basically I need the code that refreshes a part of the form, not the whole thing. I use visual basic and I often make very simple games. I often have a Player or different objects which move around, and since I'm not publishing my code I don't add textures. Instead...

Excel 2013 vba refresh chart content after each iteration of For Loop

excel,vba,loops,iteration,refresh
Problem: Refresh graphical representaion of Series in ChartObject after each iteration of for loop Ex. y=m*Cos(x) y - Values m - parameter I have some data counted from formula with parameter. I want to visualise what influence has the change of parameter on XYgraph. I want to do it in...

How to Update JFrame Components?

java,swing,jframe,refresh,listener
Well, i have this code. import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.ImageIcon; import javax.swing.SwingConstants; import javax.swing.JProgressBar; import javax.swing.SwingUtilities; import java.awt.Font; import javax.swing.JSeparator; import javax.swing.JTextPane; import javax.swing.JButton; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; public class Menu { private JFrame frmFelps; /** * Launch the application. */ public static void main(String[] args) {...

How to refresh only a image of a whole page, when the imagename is variabel?

image,load,refresh,onload
This is my puzzle i'm struggeling with: I have a website with a certain amount of images, and i'd like the images to be refreshed each say 20 seconds, this is the code I wrote so far for that: <IMG src="imgcam/mostasquare_1.jpg" border="1" name="refresh" id="img1"> <IMG src="imgcam/mriehelbypass_1.jpg" border="1" name="refresh" id="img2"> <SCRIPT...

AngularJS - How to Refresh Controller to change/Refresh JSON Call

javascript,ajax,json,angularjs,refresh
Here is another question from a new AngularJS Learner. My code is calling a JSON file and displays the output. However, I want the call to change the JSON call based on change in certain variable (i.e. KeyWord). Here is the HTML part: <body ng-controller="AppController"> <button type="button" class="btn btn-danger" ng-click="ChangeKW()">...

How can i delete and refresh my listview?

android,listview,delete,refresh
I have created a method deleteItem that would have to delete the row, but after i click the button the continues there and if i try again i got an exception. (Sorry for the english mistakes). public class WITHistory extends WITBase implements OnItemClickListener{ private ListView listView; public int del; @Override...

Meta refresh tag adds semicolons to URL (;)

php,forms,refresh,meta,semicolon
I have a PHP/HTML form that when the submit form button is pressed it is supposed make the database changes and redirect the page to another URL to view the form details. The next page requires receiving two variables via GET in order to load the information from the database....

need javascript or jquery function to wrap php code (window.setInterval bootstrap list group)

javascript,php,jquery,html,refresh
Thanks for all the answers, seems like AJAX is the solution, I'll give it a try. But what about JSON? Isn't JSON an even better solution? If it is, why is AJAX more preferable? I'm looking for a way to update this part of php code every 5 seconds, which...

Refresh custom container through a button inside it in Java

java,awt,refresh,components,containers
Good morning, I have a class that inherit from java.awt.Container. His scope is to wrap a list of Files showing them vertically as a "file name Labels + delete Buttons" list. files are shown properly and every time a new one is added, it refresh correctly. The component class's code:...

Yodlee: how to know if a MFA is required before a refresh

refresh,yodlee
Before fetching the latest transactions, I want to trigger a refresh via https://developer.yodlee.com/Aggregation_API/Aggregation_Services_Guide/Aggregation_REST_API_Reference/startRefresh7 but I can't find any information on the refreshMode. What is the difference between: MFA_REFRESH_MODE NORMAL_REFRESH_MODE I don't want to start the MFA flow if it is not necessary. Thanks for your help. PS: I am using...

Form manipulation via VBS - need form to update after 1st selection

forms,vbscript,asp-classic,web-scraping,refresh
I created a script to BEGIN to do what I need. This script interacts with the initial form. I can fill out the form and submit, but it errors. Upon further inspection, after a selection is made in the first dropdown field, the form is supposed to refresh with updated...

Refreshing elements inside ul that find place in a iframe

javascript,jquery,iframe,refresh,page-refresh
I have a div that contains a iframe from another website. In that website you can find a UL and its updates every time user adds a feedback. This is the ul: Is it any way I can refresh only this ul every x seconds so I get the feedbacks...

Refresh to repeat control not working normal after deleting 1 row

javascript,refresh,xpages,repeat
I have a field named "selectedTime" in a document, this fields stores the selected timings added by user.Adding times is working perfect.This is back-end. Now I will explain this issue of selecting date from front end.I have given a button add to add times.The custom control of date-time gets added...

refreshing/reloading image in a Java Application (Swing)

java,image,swing,refresh,repaint
I have made a programm to take a snapshot from the WebCam (via OpenCV) and safes it to the Project: Colordetection |__src | | | main.java | | Snapshot.png Now I would like to refresh the taken snapshot, everytime I re-take one and repaint it. String imgText = "Snapshot.png"; JPanel...

Store time in a session

php,session,time,refresh
I have a code that works just fine but I have a few questions about it. I don't understand the logic of something. The code is: <?php session_start(); if(!isset($_SESSION['t0'])) { $_SESSION['t0']=time(); echo $_SESSION['t0']."if<br />"; //why this is never printed? } else { if(time()>=($_SESSION['t0']+3)) { echo $_SESSION['t0']."else-ul"; $culoare="rgb(".rand(0,255).",".rand(0,255).",".rand(0,255).")"; $_SESSION['t0']=time(); } }...

Refreshing
with new results using jQuery

php,jquery,replace,refresh
I use an HTML form where I ask the user to select some data in a scroll menu. With jQuery and PhP I handle this data, then I display another scroll menu, depending of the item chosen in the first one. The second scroll menu is entirely echoed by a...

How to make a page redirect upon refreshing page?

javascript,html,css,redirect,refresh
From a HTML page, is there a way to auto redirect to the home page since the javascript don't run when i refresh the page? how do i add in a 3 seconds interval before redirecting it to another page? (at the end of my quiz) seconds = seconds...

HTML to grab new data on refresh

javascript,html,refresh
I have an HTML page with JavaScript that reads a JSON file and renders some data on the screen based on this JSON file. I need to refresh this page periodically (every 10 seconds) so that it captures changes from the JSON file. I am doing the following : <meta...

EditTextPreference value only refreshed after clicking ListPreference second time

android,refresh,listpreference
I've been struggling with this issue for a while now so I decided to ask here what I' m doing wrong. First of all: - I have a PreferenceFragment with a ListPreference on top and an EditTextPreference below - The ListPreference is filled with Objects, the values are stored in...