refresh

VB.NET and Microsoft Access: Old table entries stuck in DataGridView

孤街浪徒 提交于 2019-12-11 19:23:32
问题 I'm having a very strange issue with retrieving and displaying the contents of an Access table in a DataGridView. The problem is as follows: I'm working on an application in VS2010 that has two forms. The main form displays the second form upon a button press, and the second form contains a DataGridView that is linked to an Access table on my local PC using a BindingSource (or DataSet, or what have you). When I first set the Data Source property of my grid to the table as a new data source

How to identify if the child window has been closed in javascript?

让人想犯罪 __ 提交于 2019-12-11 18:36:19
问题 i have this page which opens up a popup. i want to refresh the parent after popup has been closed.. i used the function i found in stackoverflow var win = window.open("popup.html"); function doStuffOnUnload() { alert("Unloaded!"); } if (typeof win.attachEvent != "undefined") { win.attachEvent("onunload", doStuffOnUnload); } else if (typeof win.addEventListener != "undefined") { win.addEventListener("unload", doStuffOnUnload, false); } which didn't do anything after i closed the pop up... what

Trouble with dynamic refreshing div

时光毁灭记忆、已成空白 提交于 2019-12-11 18:18:19
问题 I make div which refresh when file is updated. But it continuously refresh (fade out and fade in every second). I't source test2.php <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js> </script> <script> $(document).ready(function() { $('#loaddiv').load('check.chat.php'); }); var auto_refresh = setInterval( function() { $.ajax( { type: 'POST', data:"id=100", url: "check.chat.php", success: function(result) { if($("#loaddiv").html() != result) { $("#loaddiv").fadeOut(

value from MySQL needs to be refreshed

北城余情 提交于 2019-12-11 18:04:42
问题 <!doctype html> <html> <head> <meta charset="utf-8"> <title>TEST</title> <script src="gauge.min.js"></script> </head> <?php //maak verbinding met MySQL server: $link = mysqli_connect("localhost","root","","opc") or die("Kan niet verbinden met de server " . mysqli_error($link)); //Haal waarde uit de database: $query = "SELECT * FROM test" or die("Er is een fout opgetreden" . mysqli_error($link)); //Sla de waarde op. $result = $link->query($query); //toon informatie: while($row = mysqli_fetch

null pointer exception during android listview refresh

眉间皱痕 提交于 2019-12-11 17:56:31
问题 i want to update my list view after downloading complete but it gives me Nullpointer Exception my code is as per under try { URL url = new URL(GlobalVariable.Getstr()); HttpURLConnection c = (HttpURLConnection) url.openConnection(); c.setRequestMethod("GET"); c.setDoOutput(true); c.connect(); int lenghtOfFile = c.getContentLength(); Log.d("ANDRO_ASYNC", "Lenght of file: " + lenghtOfFile); String PATH = Environment.getExternalStorageDirectory() + "/download/"; Log.v(LOG_TAG, "PATH: " + PATH);

My jquery slider refresh rate won't update live

两盒软妹~` 提交于 2019-12-11 17:55:16
问题 I am trying to develop a simple jquery slider, the slier switches between images and text each three seconds by default (var segundos = 3;), the slider has a button which acts as a play/pause action and a menu option which lets you increase or decrease the ammoun of seconds it will switch between images each time. This is done via the classes .resta and .suma(decrease and decrease). Now, the slider works good but there is a problem, when the segundos variable (segundos means seconds) changes

force app to refresh image (from URL)

假如想象 提交于 2019-12-11 17:50:53
问题 I have an image in my app (android) taken from an URL: <img src="URL"/> If i change the image on the server (keeping the same URL), the app does not refresh and keeps always the old image. How can i force the app to reload/refresh the right image (always on the same URL)? (the app is written with jquery) 回答1: Try appending a querystring to the image url with a random number that you change each time you display the image. This may for example be done with javascript. <img id="myImage" src=

AJAX refresh script

时间秒杀一切 提交于 2019-12-11 16:49:52
问题 I have some AJAX that refreshes my page but also makes the div that it is refreshing go up and down as it refreshes but i don't wont it to do that, I just wont it to refresh. How would I edit this code to take out the minimizing and maximizing of the div? var _v = 0; var _v2 = 1; function ajax_update() { var wrapperId = '#content'; var postFile = 'jquery.php'; _v++; _v2++; $.post(postFile, { v2: _v2 , v: _v}, function(data){$(wrapperId).slideUp('2000',function(){$(this).html(data).slideDown()

How can I solve when refresh my page then the flipclock.js coundown clock is reset?

回眸只為那壹抹淺笑 提交于 2019-12-11 16:30:02
问题 When I refresh my page then the the coundown timer is reset. Here is my code: var clock; clock = $('.clock').FlipClock({ clockFace: 'DailyCounter', autoStart: false, callbacks: { stop: function() { $('.message').html('The clock has stopped!') } } }); clock.setTime(2200880); clock.setCountdown(true); clock.start(); 回答1: When you refresh the page, then it is a new page, which means that it reloads the Javascript as if it was the first time the user goes on the page. If you need to keep the

Refresh page for all online users

和自甴很熟 提交于 2019-12-11 16:17:15
问题 When a user clicks the save button, I want all users currently in the page to be notified, or even better (or worse in a second thought) to enforce the page to refresh. So, I tried this in my script: function save_match() { ... alert("Saved slot " + slot + "! :)"); window.location.reload(); } but the refresh, of course, happens only for the user that actually pressed the button, the other users have no idea about the save the other user just made. Enforcing the reload of the page seems a bit