refresh

How to schedule IE page reload

半城伤御伤魂 提交于 2019-12-01 14:38:58
Is there a mechanism i can use to force page reload every 'n' minutes? I can't modify the page code itself, "refresh" request should be issued from outside of the page itself var timedRefresh = setTimeout(function(){location.reload(true)},1*60000) That will refresh the page every minute. If you make it into a script for greasemonkey it will continually be injected into the page and keep executing every minute + load time. ANother way is to, as suggested, put the page in an iframe. e.g. if (self == top){ document.body.innerHTML = '<iframe id="meh" src="' + location.href + '" width="100%" height

WebBrowser control auto refresh

巧了我就是萌 提交于 2019-12-01 14:04:25
I want to make a program in Visual Studio 2008 in Visual Basic. It involves a web browser and I want to make it auto refresh and allow people to choose the time period in which they want to auto refresh. It won't take user input but I have checkboxes that are preset. I think this may be possible using a timer and the WebBrowser1.Refresh() method. If I am mistaken, please correct me and tell me how to do this. From what I gather, it seems that you are trying to create a WinForms application in VB.NET. To accomplish your goal, you can: Create a NumericUpDown or Textbox control to allow users to

AJAX Div Retrieval every 60 seconds

ε祈祈猫儿з 提交于 2019-12-01 13:36:27
问题 What I would like to do is retrieve the contents of a PHP file and insert it into a div every 60 seconds, basically refreshing the dynamic div. I've come up with the following code so far, however it doesn't seem to be working. The code is just like this, nothing extra, apart from the MYSQL login. PHP to grab: <?php $time = date("m/d/Y h:i:s a", time()); mysql_query("UPDATE djs SET requesttime='{$time}' WHERE username='{$djs['username']}'") or die(mysql_error()); $request_db = mysql_query(

how to use jquery or ajax to refresh a div at 10 second intervals

前提是你 提交于 2019-12-01 12:43:41
Any help at all is appreciated here folks. I'm building a web app in php and I'm using the Yii MVC framework which has a lot of built in tools. Just as the title says, i need to refresh a div every 10 seconds. At the moment I have this ajax function <script type="text/javascript"> function ajaxFunction(){ var ajaxRequest; try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){ // Something went

Refresh a connection in Excel to SQL Server (with password) using VBA

你。 提交于 2019-12-01 10:20:32
问题 I have 10 Excel files that are connected to a SQL Server by OLEDB and I need to refresh them everyday one by one manually. When I refresh them I need to insert a password. I tried to make a macro to automate this process, but I didn't succeed. I did this function to automate one of my workbooks: Sub updateABC() Workbooks("Teste").Connections("SQL Server_Azure1").OLEDBConnection.Refresh End Sub And the Excel ask for the password to SQL Server logon. Is there any way to put this password

Android auto refresh when new data inserted into listview

岁酱吖の 提交于 2019-12-01 09:30:48
I've been developing android application. I have back end ( Web Application ) and front end ( Android Application ). In my application, it has category that contain a bunch of list of items. When i choose a category, it will call a task that use to call all data in DB. Once task complete call all data, it'll direct to activity. And activity will show all data in a ListView. Now, for example i insert a new data from back end ( Web ). Let just say i insert a new row contain a boxing into sport category. So, in DB it'll have boxing in table sport. And in my android application, i'm currently in

Angular 2 RC 4 - hashlocationstrategy no longer working [duplicate]

橙三吉。 提交于 2019-12-01 08:29:37
This question already has an answer here: Location and HashLocationStrategy stopped working in beta.16 1 answer We have upgraded our Angular 2 project to Release Candidate 4. We are using HashLocationStrategy to be able to refresh a page in the browser (using BrowserSync). But with RC4 this no longer works. No component is loaded into the routeroutlet. However, using the routerlink of a menu item does work. Is the HashLocationStrategy for RC4 broken, or are we not using it correctly? We haven't found any information on the Internet yet. (right now just trying to find our way through the

Tkinter Label bound to StringVar is one click behind when updating

只愿长相守 提交于 2019-12-01 06:25:55
The problem I'm running into here is that, when I click on the different file names in the Listbox , the Label changes value one click behind whatever I'm currently clicking on. What am I missing here? import Tkinter as tk class TkTest: def __init__(self, master): self.fraMain = tk.Frame(master) self.fraMain.pack() # Set up a list box containing all the paths to choose from self.lstPaths = tk.Listbox(self.fraMain) paths = [ '/path/file1', '/path/file2', '/path/file3', ] for path in paths: self.lstPaths.insert(tk.END, path) self.lstPaths.bind('<Button-1>', self.update_label) self.lstPaths.pack(

Tkinter Label bound to StringVar is one click behind when updating

假装没事ソ 提交于 2019-12-01 06:05:12
问题 The problem I'm running into here is that, when I click on the different file names in the Listbox , the Label changes value one click behind whatever I'm currently clicking on. What am I missing here? import Tkinter as tk class TkTest: def __init__(self, master): self.fraMain = tk.Frame(master) self.fraMain.pack() # Set up a list box containing all the paths to choose from self.lstPaths = tk.Listbox(self.fraMain) paths = [ '/path/file1', '/path/file2', '/path/file3', ] for path in paths:

Detect browser refresh

风格不统一 提交于 2019-12-01 05:36:09
How can I find out if the user pressed F5 to refresh my page (Something like how SO implemented. If you refresh your page, the question counter is not increased). I have tested many code snippets mentioned in a dozen of tutorials, but none worked correctly. To be more clear, suppose that i have an empty web form and would like to detect whether the user has pressed F5 in client-side (causing a refresh not submit) or not. I can use session variables, but if the user navigates to another page of my site, and then comes back , I'd like to consider it as a new visit, not a refresh. so this is not