refresh

Detection of page refresh / F5 key in ASP.NET MVC 2

How would one go about detecting a page refresh / F5 key push on the controller handling the postback? I need to distinguish between the user pressing one of two buttons (e.g., Next, Previous) and when the F5 / page refresh occurs. My scenario is a single wizard page that has different content shown between each invocation of the user ...

Python/Tkinter Label bound to StringVar is one click behind when updating

I have a simple program I'm writing to try to get some skills with Tkinter. 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. To replicate: Start the program, label is blank. Click on any of the entries in the...

Django doesn't refresh my request object when reloading the current page.

I have a Django web site which I want ot be viewable in different languages. Until this morning everything was working fine. Here is the deal. I go to my say About Us page and it is in English. Below it there is the change language button and when I press it everything "magically" translates to Bulgarian just the way I want it. On the ot...

Refresh page isnt working in asp.net using treeview

Hi, I am trying to refresh an asp.net page using this command: <meta http-equiv="Refresh" content="10"/> On that page I have 2 treeviews. The refresh works ok when I just open the page, but when I click on one of the treeviews and expand it, the refresh stopps working and the page isnt being refreshed. Any ideas why this can happen?...

WPF: Refreshing the UserControls after changes

Hi, I'm doing a Microsoft Surface Application and I have this problem: I use the MVVM-pattern. When a user places his ID-Card (with a tag on it) on the surface, this user is set as "current user". When pressing a button the user can edit his adress and other stuff. He is shown a "save"-button and an "exit"-button then. On these buttons...

perl captcha doesn't refresh on windows 7

I have created a captcha which looks like this: <img src="/cgi-bin/rand.pl" /> The problem is that if someone navigates away from or back to the page with the captcha on it, it doesn't refresh which makes the captcha invalid (especially if they have already submitted the form before) Is there anyway to force a refresh as I suspect set...

Uiwebview refreshes after zoom and pinch

Hello, I have a uiwebview in my App. So far everything works fine, but when i zoom in or out for example the uiwebview refreshes the loaded page and then scrolls and zooms to the new page location and size. So the zooming works good, but I don't want the user to see the refresh and repositioning of the website. Is there a way to preve...

Textarea to refresh using jQuery/MySQL

OK so let's say I have a textarea on the top of my browser and a text input box on the bottom. I want to connect a MySQL database and also whatever I type in the input box to appear in the text area. Sorta like a text RPG... I know PHP, MySQL, good AJAX, and little jQuery. I just want to know how this is achieved. Thank you. ...

disable javascript popup on refreshing page

Hi all, I have written code like this to throw a pop up when my website is closed. But this throws the pop up even if i refresh my page. Please help me to throw popup only when i close the browser of that website. (disable popup on refreshing page) <body onunload="javascript: exitpop()"> <script type="text/javascript"> function exitpop...

Remembering active tab on refresh of ASPX page

I've got an ASPX page set up that loads and displays dynamic data from a local SQLite database. Since the data is being written to the database from a separate C# application, I've set up my ASPX page to refresh every 30 seconds when the database has flagged itself as actively receiving new data. On my ASPX page, I've got a TabContainer...

GWT refresh modifications

I'm new to GWT and therefore have a lot of "code and see how it behaves" going on. I'm wondering what are the minimal actions to take to load the modifications in my web browser. For example when I work on the xml I can just refresh my page. So when do I need to perform these and why: Refresh browser Reload web server Re build app ??? ...

How to stop automatic refresh of a WPF ListBox Databinded on a EntityFramework object

Hi, I have a Xaml Page with a Databinded ListBox and a detail grid to create or update selected element. My Page.DataContext is binded on a ADO.NET Entity Data Model table ("Univers"). private void Page_Loaded(object sender, RoutedEventArgs e) { SEPDC = new Models.SEP(); universViewSource = new CollectionViewS...

javascript function won't stop looping - It's on a netsuite website

I need to change the shipping carrier drop-down and shipping method radio button once via a javascript function, not forever. However, when I use this function, which executes when on the Review and Submit page when the order is < $5, it goes into an endless loop: function setFreeSampShipping(){ var options = document.forms['checkout'...

WPF: Update Listbox automatically C#

Hi, I have two WPF windows developed using the surface SDK, one that is a data entry form, and the second dispays the data in a listbox. The listbox displays the data perfectly but when I add a new record using the data entry form, the listbox is not updated until I reopen the window. Is there a way to automatically update the listbox t...

Does http-equiv="refresh" keep referrer info and metadata?

Hey guys, I'm posting this here because the Doctype community seems to be sleeping in. If I set up a page like this: <html><head><meta http-equiv="refresh" content="0;url=http://internic.net/"&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt; Will the browser send referrer info and other metadata when the redirection is performe...

How to stop page refresh when hit enter button from rich:inputNumberSpinner field?

Hi, I use rich:inputNumberSpinner tag. The problem is : I set cursor focus to inside of rich:inputNumberSpinner field, then i hit the enter button from my keyboard, that time page will be automatically refresh. But i don't need page refresh when i hit the enter button from my keyboard. The code : spinnerTagTest.jsp <%@page...

coldfusion flash form grid

I have a grid in a coldfusion flash form. Users do not enter information directly into the grid. They enter data into a "Details Section" which is a collection of form items (textbox, selectbox, etc) bound to the grid. I have actionscript which changes the values in the grid based on user entries. The actionscript works properly beca...

IE form input data disappear after browser refresh

Hi, I'm trying to achieve sticky forms without PHP. My setup is AJAX like javascript. The back/forward work fine on both IE and FF, but refresh only works on FF, not IE. Doesn't matter what cache options I use, I've even set IE's temporary files option to never check for updates, and the input value is gone after page refresh(the refr...

WPF - Redrawing a Context Menu when Items change?

I have a ItemsControl in a ScrollViewer, and when the items exceed the width of the ScrollViewer they are put into a ContextMenu and shown as a DropDown instead. My problem is that when the Context Menu is first loaded, it saves the saves the size of the Menu and does not redraw when more commands get added/removed. For example, a panel...

AJAX Div Retrieval every 60 seconds

Hello everyone! 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 ...