refresh

Prevent any form of page refresh using jQuery/Javascript

Once the user is on my page, I do not want him to refresh the page. 1) Anytime, the user hits F5/refresh button on top. He should get an alert saying "You cannot refresh the page". 2) Also if the user opens a new tab and tries to access the same url in prev tab he should get an alert "You cannot open same page in 2 tabs" Anyway I ca...

how do i get python's mechanize to stop following meta refresh redirects?

I have a script which gets a webpage with a meta refresh. I need to parse the retrieved page but mechanize seems to follow the redirect. How do I get it to stop following it? ...

vb.net 2010 Usercontrol scrolling problem

Hi, I have a usercontrol that i am working with based on a project i downloaded that displays a calendar. I am trying to adapt it to show a week to view like in Outlook 2007 where the columns are the days and the rows are 30min segments. The problem i am having is that when i turn on autoscrolling and scroll down, it fails to correctl...

Force a refresh/reload of the page when the user navigates "back"

You know how when you're in some type of online banking and you press back and you get a white screen with the text saying you have to do a resubmit on the page to do a complete refresh? I want to do that in one of my applications. How does one do it? I've tried the following meta tags, but it's not working: <meta http-equiv=expires c...

Refresh and unload event

In my page, i have some functions registered to unload event. The functions are called, when i refresh the page, meaning the unload event happens. But this fails when i come to the page after submitting a form. When i refresh, it asks if it can send the data again (submit the form again) i give okay and the page reloads. But the function...

Refresh <div> element generated by a django template

How do I refresh a certain element within a django template? Example: {% if object.some_m2m_field.all %} <h3>The stuff I want to refresh is below</h3> <div id="the-div-that-should-be-refreshed"> {% for other_object in object.some_m2m_field.all %} <a href="www.example.com">{{ other_object.title }}</a> &nbsp; ...

TextBox - binding property doesn't refresh itself

Hi I have a textbox which Text property is bound like that <TextBox Name="txtBox"> <TextBox.Text> <Binding Path="Data"> </Binding> </TextBox.Text> </TextBox> The filed Data can be changed in various places in my program. However if I change filed Data in ahother control, the t txtBox Tex...

The contents of my JComponent only refresh after a manual resize

I am trying to figure out why my JComponent refreshes when I manually drag my window, but it doesn't refresh when I call repaint or revalidate. The data is ready to be displayed, but it just won't show until I manually resize. Can anybody give some suggestions about what I can do or does this sound like it isn't a Swing problem since I t...

Handling user driven resizing, position changes in Java Swing

Hello, I'm currently building a Java Swing GUI and I was wondering how user (mouse, say) driven resizing is handled. My problem is that when I try and resize my main window, or when some other window opens over my application, then my application's window gets distorted - all it's parts don't change well in response to the resizing o...

Correct operation of Table View and Table Detail View

I need a small help. In my project there is a tab bar. On one of the tab bar items there is a navigation controller, on the view there is a table view. For TableViewController there are the usual codes: (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; } (NSInteger)tableView:(UITableView *)tableView numbe...

Reload a page using jquery only when previous reload has finished

Hi, I have a page which currently refreshes itself every 10 seconds. The page runs a series of database queries and shows the results. The problem is that sometimes the queries take up to a minute to run but the page still refreshes every 10 seconds so I end up with 6 sets of database queries being run, and so on. I know this as I log ...

Submit form (Ajax style) when a radio button is selected -- Struts2

In Struts2 I wanted to refresh(submit) a portion of page on selection of a radio button (Ajax) retaining all the rows in table of rows. Can someone please help with the code for this. ...

WPF button with Focusable=False does not refresh if covered over by dialog opened in click event handler

I've noticed an odd behavior with WPF where a button that has the Focusable property set to false will fail to refresh its visual state if the button is occluded by a popup (ex: a file dialog). On to the good stuff, here is a minimal code example: XAML <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/wi...

Android update Widget from a button click

Hello everybody, I have a widget that shows some informations from database. The widget is periodically updated every one hour. But i also let user to update it manually by clicking a refresh button on widget.How can i perform the click action and refresh the widget? Note: The widget uses service to perform operations. Thanx in advan...

Silverlight C# force redraw

I've taken over a silverlight project from someone else. I should point out that I'm not a big .net person; most development I've done since graduating has been c++ and objective-c, but I'm just about getting the hang of it. I've been tasked with implementing a small on-screen control which can be used to change a time multiplication fa...

IE7 iframes swap / disappear upon hitting refresh but work perfect if I hit enter in address bar

As I can't really provide code examples at the moment I'm hoping someone's heard of this before. I've got two iframes; if I hit refresh ONLY in IE7, the lower frame's content will either appear in both iframes, or the lower iframe will disappear. If I hit enter in the address bar to refresh, it works perfect 100% of the time. ...

Android - Simple View Refresh

Hi there, I don't think my future lies in Android development, as I am consistently failing at the simplest things... I've got a button with the label "Game Slot 1". When the user clicks it, I succesfully take them through a couple of activities in which they create a new character. I save the game name in an SQLite database, and the...

Android: Refresh view problem

I am having a problem trying to refresh a View in an Android application. I have a button that have a image and what I need to do is to change the image when someone clicked the button. Where is the problem? The image don't refresh until the activity finished proccessing the code. Any idea how I can refresh the image as soon as It execu...

In Android how do you update the screen after you change the text with a setText?

Right now I am using the following cod eot update a textview: txtMain.setText("new text"); After that code executes, the screen does not update with the new text. Is there a way I can force the text to update right then and there? ...

notifyDataSetChanged() does not update listActivity ?

hello, i have a problem with notifyDataSetChanged() the data source (mData) has been changed, but the list did not change itself . i need your help. thx! public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.fairlist); mData = getData(); SimpleAdapter adapter = new SimpleAd...