refresh

Refresh databases data

How can i refresh the data from my database(ms access) in c# using windows form aplication? part of the code where i insert the data : insertCommand.Parameters.Add("@ID_uporabnika", OleDbType.Integer).Value = Convert.ToInt32(textBox6.Text); insertCommand.Parameters.Add("@datum", OleDbType.DBDate).Value = DateTime.Now.ToShortDateString()...

Refresh of an Enity with a colllection throws a UnresolvableObjectException when an Element of the collection got deleted

We have a two tier Swing application using Hibernate. Sometimes we manipulate an object in one session (A), which we know in another session (B) as well (two different Java Instances, same database record). In this case after commit and closing of A, we refresh the object in session B, in order to show the updated state in the UI. Works...

Jquery auto refresh div

Jquery auto refresh is using up a LOT of browser memory. Is there a way to stop this. I had a 2 div refreshing every 3 seconds but I moved it up to 9 and 15 seconds, It helped a little bit the longer the window stays open on my site the more memory it takes until finally the browser crashes. <script type="text/javascript" src="http://aj...

How to fetch file contents via AJAX without visible refresh spinner on iphone

I am developing a web app for iphone which requires the application to check for changes in a text file, and as soon as a change is detected, to complete certain actions. The text file changes around once every 3 but the change has to be detected almost instantly and so I'm currently doing an ajax refresh every second. This works perfe...

How to update check boxes in a .NET checkListBox?

I've run into a problem where I want to display a list of items in a checkListBox and programmatically check them off one by one as each process I am monitoring gets completed. I will try to water my code down to the bare essentials so everyone can easily grasp what is happening. for (int i = 0; i < 10; i++) { SOME_FUNCTION(); ...

How to distinguish Unload Event triggered by Refresh or Window Close?

Unload Event can be triggered both by Refresh action and Window Close action. is there a way to distinguish which action that actually trigger it? In my situation, i want to ignore the Refresh action. Could you please give me some insight what the work around is? I noticed that there is already this sort of question asked, but it seems ...

Using standard refresh button

I'm trying to display a small refresh button using UIButton in a standard UIView using the refresh icon built into UIKit. If I use an UIBarButtonItem it can be created as a refresh button, but I've had no luck in using this icon in other places. So far I've tried to "steal" the refresh image of a UIBarButtonItem using the code below, bu...

Refresh updatepanel through triggers when other updatepanel does because the first must have UpdateMode=Conditional

Hello, I have some updatepanels in asp.net page. I want updatepanel 2 get refreshed when updatepanel 1 does, but UpdatePanel 2 has his UpdateMode attributed set to Conditional and ChildrenAsTrigger=False, because it has another updatePanels inside and i need to control the way it is refreshed. I was trying to make a trigger for the oth...

Visual Studio 2010 refresh not working

In VS 2008, I used to be able to create a file on the file system (like a .cpp file, for example), and then I could click the refresh button in VS and the file would show up. I have "Show All Files" checked. Note by "create a file on the filesystem" here, I mean like going out to windows explorer and creating a new file, in other words, ...

Drupal Views Ajax refresh rows

Hi! I have some view (Views 2 - list of invitations, table style) which uses embedded forms to edit records directly in view rows. I am using ahah to change values in records. What I need is to refresh all records dynamically (some calculations) after I change some checkboxes. Is there any way to refresh view using Ajax? To trigger reloa...

Static image on a mpeg video in pygame

Hi, I'm writing a game with using Pygame. The background of the game is a mpeg video and I draw a blank layer on this mpeg video. However to make visible the blank page all the time, I need to close the clock.tick function. As you can see without clock.tick() function my animations became too fast. So I want to draw a layer on an mpe...

Manually refresh project files on local server? (Netbeans)

I have a Netbeans PHP project set to run on a local server. I added some files in the filesystem; Netbeans detects and shows the changes in it's project view, but does not propagate the changes to the local server (based in a different folder). Hence project files on the local server are missing or out of date. Can Netbeans manually ref...

Do browsers always use the cached version of a page with .html extension?

I have a web page written in pure HTML (with a .html extension). Whenever I edit it and push "Refresh" in my browser, the page does not get updated. However, if I change the extension to .php this problem does not occur. Could someone explain to me what's going on? ...

JTable How to refresh table model after insert delete or update the data.

This is my jTable private JTable getJTable() { String[] colName = { "Name", "Email", "Contact No. 1", "Contact No. 2", "Group", "" }; if (jTable == null) { jTable = new JTable() { public boolean isCellEditable(int nRow, int nCol) { return false; } }; } ...

Refreshing a listview

I have a listview that's populated by rows that get their data from a web server. It all works totally fine except I want to have a refresh button to re-download the data. I'm getting the data through an asynctask (getting the data in doinbackground) and then setting the listadapter in onpostexecute. All I do to run the asynctask which s...

python - refresh with webbrowser module

Hi I need a code portion to refresh the current page. I get the controller object from webbrowser module and start my webpage. And at a certain point I want to refresh my page inside the python code. According to the documentation at http://docs.python.org/library/webbrowser.html, when I call the open() function of the controller objec...

Refresh layout while filling it

Hi guys, I have an activity with a HorizontalScrollView. When it opens, I start filling this view (or rather, a container layout inside it) with another views. This is done from another thread by using handler.post. The views are added in bunches of 15, and when there are no more views to add, I start updating them with new data (this...

Problem in refershing the outputpanel +jsf

Hi All, Ive a problem in refreshing the outputpanel entire page is getting refersed instead of panel. Here is my code <h:selectOneRadio id="radio1Id" value="#{bean.options}" valueChangeListener="#{bean.onChange}"> <f:selectItem itemLabel="Yes" itemValue="Yes" /> <f:selectItem itemLabel="No" itemValue="No" /> <a4j:support event...

Prevent ListView from reordering items

I have a ListView that is backed by a CursorAdapter. The cursor passed into the adapter is a MergeCursor. It is a MergeCursor because I have two tables, type1 and type2. I want to list all of the elements from type1 and type2 in a single ListView with all of the elements from type1 first, and all of the elements from type2 last. In a...

Meta page refresh not working for php page?

i am trying to redirect users without javascript enabled to our help page (help.php), specifically the part that talks about enabling javascript (help.php#nojavascript). however, my meta refresh is not working! it keeps on refreshing the same page! i tried redirecting to a different page with a .html extension instead, and that works, s...