refresh

Refresh jquery mobile listview after ajax call in complete function doesn't work

。_饼干妹妹 提交于 2019-12-05 16:27:31
I am developing an application using jQuery 1.3.1 and phonegap 2.9.0. All the data ara loaded dynamically from the server using php. My problem is that the refresh call doesn't work every time the listview items changing. I've tried and searched a lot with no success yet. What i think, is that the refresh function is called before the listview is completed, but anywhere i try to put this line of code it doesn't work. Any help? here is my listview <ul data-role="listview" data-autodividers="true" id="listview1" data-divider-theme="b" data-split-theme="b" data-filter-theme="b" data-split-icon=

How do you force a WPF ListView to Requery its ItemSource?

故事扮演 提交于 2019-12-05 15:24:41
I'm rewriting its XML itemSource on the fly and want it to use the new data right away... Oscar Foley You should use an ObervableCollection. When this collection is updated, the ListView is updated. But if for any reason you don´t want to use one, use: listView.InvalidateProperty(ListView.ItemsSourceProperty); or listView.ItemsSource = listView.ItemsSource; Check A more elegant ListView requery for more info. hmm... listView.ItemsSource = listView.ItemsSource? or you could trigger the PropertyChanged event on the property of your viewmodel in case you are using MVVM. ListView.DataBind(); MSDN

Update properties of a kivy widget while running code

﹥>﹥吖頭↗ 提交于 2019-12-05 12:31:36
I want to update the properties of a kivy widget while running something... Example: class app(App): def build(self): self.layout = Layout() self.name = Label(text = "john") self.layout.add_widget(self.name) return self.layout def update(self): for i in range(50): #keep showing the update self.name.text = str(i) #maybe some sleep here obj = app() obj.run() obj.update() This is gonna show me only the final result of the loop. I'd like to keep updating the label.text while the loop goes. I looked for something like the bind(), setter() and ask_update() functions, but if are these funcs, I didn't

detecting the existence of window after reload

天大地大妈咪最大 提交于 2019-12-05 11:29:53
so suppose I do this var myWindow = false; $('someelement').click(function(){ var myWindow = window.open('url', 'name', 'width=100,height=200'); }); so the user clicks on the element on window A and a new window (call it window B) is opened... but then suppose window A gets reloaded...due to this, var myWindow is now set to false...but then window B is still open....how can I detect the existence of Window B from window A after window A gets reloaded I know that you can do this: var hasWindow = window.open('', 'name'); and it will return a reference to window B if it's already open.. But then

How to destroy cookies on page refresh

让人想犯罪 __ 提交于 2019-12-05 09:50:28
Hello I need to destroy javascript cookies on a page refresh. I need to set a new bunch of cookies on every page load which help me render the web page based on user options. Is there a method to destroy cookies on a page refresh?? May be you could remove cookies on page unload. For example, with jQuery: $(window).unload(function() { //Destroy cookies here }); You need to detect the page refresh, have a look at: Detecting Page Refreshes :: Using JavaScript on Client-Side Once you know that, you should be able to delete the cookies. 来源: https://stackoverflow.com/questions/3365178/how-to-destroy

Automatically refresh page when Dart source files change

寵の児 提交于 2019-12-05 08:50:33
How can you make Dartium automatically reload your web client application whenever a change is made to the source files? Related: How do I make Firefox auto-refresh on file change? EDIT: You can also skip all this and simply hit CTRL+R in the Editor. The script below may still be useful if you're using tooling outside of the Dart Editor (but are still relying on it for the build process) or want to code-and-preview without focus shifting to the Dartium window. Cut out keystrokes and automate your monkeys! This technique uses dart.build to "touch" your HTML file whenever you make a change to

Is there a way to reload/refresh a java applet from within the applet itself?

Deadly 提交于 2019-12-05 08:25:03
问题 I have a button on my applet (contained in a browser) that I would like to make reload or refresh the entire applet one of two ways: Refresh the applet itself without having to refresh the browser Refresh the entire browser Is this possible from within the applet? 回答1: Use the AppletContext.showDocument(...) method: applet.getAppletContext().showDocument(applet.getDocumentBase(), "_self") That will load the document containing the applet in the same window/frame the applet is already loaded

Android Background Service vs AlarmManager

依然范特西╮ 提交于 2019-12-05 08:24:19
Can someone give a little bit briefing or perhaps more elaborate details on differences Android background service with Alarm Manager? How they differ? And in which situation I should use each? I am developing an application that need to download data from Web Service at periodic time. The application has few modules and each modules has different interval time period to download / sync the data to Web Service. Let say + Module A need to sync in every 15 mins + Module B need to sync in every 1 hour + Module C need to sync in every day + Module D need to sync weekly + Module E need to sync

Reload javascript without refreshing page

孤人 提交于 2019-12-05 08:00:55
问题 Disclaimer: I am very new to this stuff so please bare this in mind. Hello, Im setting up a site using AJAX to load page content without having to leave the page. I have a few pages that use javascript to load list information. Here is link setup looks: #home #list.php?list=$list_id I have a variable called $list_id and use that with some javascript to load the list. The problem I am facing is that if I load one list (lets say list with ID 1) then go back and load another list (lets say list

Eclipse Android won't clean, won't refresh resources

老子叫甜甜 提交于 2019-12-05 06:02:25
I upgraded to Ubuntu 11.10, Eclipse 3.7.0, ADT 14.0.0. When I replaced a picture resource in the /res/drawable-nodpi directory on the desktop, or a sound resource in the /res/raw directory, both the recompiled program and the Project Explorer use some previously cached version. I tried the following, none of which worked: right-click on filename in project explorer: Refresh right-click on /drawable-nodpi dir in p.e.: Refresh right-click on /res dir in p.e.: Refresh right-click on Project in p.e.: Refresh Project -> Clean... Project -> check Build Automatically, Run->Run The program recompiles