reload

Is it possible to dynamically reload PHP code while script is running?

假如想象 提交于 2019-12-23 09:01:59
问题 I'm having a multiplayer server that's using PHPSockets, and thus is written entirely in PHP. Currently, whenever I'm making any changes to the PHP server-script I have to kill the script and then start it over again. This means that any users online is disconnected (normally not a problem because there aren't so many at the moment). Now I am rewriting the server-script to use custom PHP classes and sorten things up a little bit (you don't want to know how nasty it looks today). Today I was

Why doesn't my view reload?

陌路散爱 提交于 2019-12-23 05:39:11
问题 So I have two search bars, a couple of buttons and a tableView below those (yes, all these) in one view. And I also have a navigation bar on top of it all with a back button. For a particular operation, I remove all search bars, buttons and I display only one uitableviewcell in my view. If I press edit, I want the whole view to be reloaded, not just the tableView but I want the view to have the search bars and buttons and the navigation screen. I did [self.view reloadInputViews] in the

Mouseenter and Mouseleave to trigger timer on/off

此生再无相见时 提交于 2019-12-23 04:04:37
问题 How would I code a mouseenter event to trigger timer off and a mouseleave event to trigger the timer on ? If the timer interval is reached then webpage will refresh. I've tried to do it but couldn't work it out: <script> $(document).ready(function() { var timer; function start() { timer = setInterval(function(){refresh()}, 5000); } start(); $('body').mouseenter(function() { clearTimeout(timer); }); }).mouseleave(function(e) { var pageX = e.pageX || e.clientX, pageY = e.pageY || e.clientY; if

Overriding units on a jQuery Knob does not redraw correctly on page reload

只谈情不闲聊 提交于 2019-12-23 03:54:05
问题 I have a readonly jQuery Knob. I have been able to add units to the numeric display (as per How to display units with Jquery Knob ), but the foreground (ie. graphical value indicator) of the dial is no longer displayed when the page is reloaded. Here's my HTML: <input class="knob" id="workload" data-angleoffset=-125 data-anglearc=250 value="{{ workload }}" > ( {{ workload }} is a floating point Django template value - it is being substituted correctly ) Inside my jQuery ready function, I have

JQuery DataTables - AJAX Reloading Not Working

别说谁变了你拦得住时间么 提交于 2019-12-22 10:26:25
问题 I am using DataTables to display some data. When a new record is added (via AJAX), I am trying to reload the table on success. I get the error "oTable is not defined" whenever I try to call either oTable.fnDraw() or oTable.fnReloadAjax(). What am I doing wrong? I have tried both fnDraw() and fnReloadAjax() and both return the same error. $(document).ready(function(){ var oTable = $('.admin_users').dataTable({ "bProcessing": true, "sAjaxSource": 'sql/admin_users.php', "aaSorting": [[ 0, "asc"

Reload page with different anchor

不羁岁月 提交于 2019-12-22 07:09:01
问题 Just got stuck with one problem. I have a page with Jquery UI tabs. Each tab can be accessed from different page by adding a hash tag to the link and it loads the page with the tab that I need. However, I also need to access different tabs within the same page. What I came up with is to add target="_parent" to the link with hash tag: <a href="pictures.htm#tab2" target="_parent"> and it does what I need but only in IE. It reloads the page with different hash tag but for some reason Chrome and

HTML5 reload page when moving back

时光毁灭记忆、已成空白 提交于 2019-12-22 00:56:22
问题 I'm working with Moodle 2.6, but this isn't really a Moodle question. An activity is defined as an URL. That URL is just a custom-built video player. When the video ends, it goes back to the Moodle course page. That all works just fine, but the Moodle page doesn't reflect that this activity has been completed until the page is refreshed/reloaded using F5. Here is the javascript code that I've used to detect the end of the video: video1.addEventListener("ended", function() { history.back(1); }

iphone sdk - reload tableview data - from a separate class

荒凉一梦 提交于 2019-12-21 22:42:35
问题 I'd like to run the code [tableView reloadData], except I want to call it from a seperate class to the view controller I want to reload the data in. (Note. If there is something more effective to reload a tableview than reloadData, chime in). Say the view I want to reload is 'RootViewController', and I am currently in 'DetailViewController', what do i need to do to make it work. My best attempt right now is [RootViewController.tableView reloadData], but its not right. (I get error: expected '

Playframework reload not working Mac OSX

眉间皱痕 提交于 2019-12-21 16:52:31
问题 Since I installed the last Mac OS update (Mac OS X 10.8.3), auto reloading stopped working in Play 2.1.0. When I change a file and save it, the file is compiled (when running with ~run) but when I hit reload on my web browser (already tried with Chrome and Safari) Play Framework don't reload the page. I already tried clean, clean all, reboot my Mac, but nothing resolved the problem. Do you have any solution for this? Thank you, Filipe 回答1: I have the same problem with play 2.1.0 and I think

Spring-Boot-Devtools doesn't want to reload process (doesn't pick up proper classpaths?)

孤者浪人 提交于 2019-12-21 11:23:05
问题 I have a small Spring Boot project (from spring-boot-starter). Everything configured, i want to use Spring-Boot-Devtools for automatic reloading. When i launch my project (mvn spring-boot:run -X) from my git repo working dir, i can see: maven logs: DEBUG] Classpath for forked process: C:\Users\razor\git\spring-boot-starter\target\classes;........ that's ok, path looks good. and then app logs: 2016-09-21 23:47:59.568 DEBUG 13528 --- [ restartedMain] .b.l.ClasspathLoggingApplicationListener :