The thing is I load context menu items dynamically and it takes time to load, so context menu appears with default values the first time. But if you right-click again, yo see the loaded values.
Is there a way to refresh items while the menu is still opened?
or someway to reload it?
...
I am finding (noodling around in script/console) that if I add a new item to the associated collection, I don't have to call foo.reload to see the resulting change:
foo.bars
=> []
foo.bars_attributes = [{ :person_id => '288', :task_id => '1237' }]
=> [{ :person_id=>"288", :task_id=>"1237" }]
foo.save
=> true
foo.bars
=> [#<Bar id: 6, pe...
Hi,
I'm playing around with this application I got on last months Web Designer that's a very basic RSS reader. I would like to add a refresh button to the top navigation bar that refreshes all the content in the table but can't seem to work out how to do it. I've worked out it must somehow use the [tablename Reload] function, but have g...
I have a UITableView in an iPhone application which I am refreshing (by calling [self.tableView reloadData] in the action method for a UISegmentedControl dynamically embedded in one of the UITableView cells. The table view is refreshed to update a text value for one of the cells.
However, the following code seems to produce an unwanted ...
I have a fairly simple page that displays an image in a pop-up window. The onLoad event simply takes the querystring, populates an image tag with that value, then resizes the image and window to match.
For some reason, this only works for me when the page is reloaded/refreshed. Or, once the image has been displayed once, it will work ...
I'm trying to make a live, in-page css editor with a preview function that would reload the stylesheet and apply it without needing to reload the page. What would be the best way to go about this?
...
I have a form type deal where a user clicks a link and then it spawns a small form in a pop-up window. Is it possible to force a page reload when that popup window closes?
...
I am trying to update a list in a tableview controller. In viewWillAppear in that particular tableview controller, the tableView is setup with the code:
[self.tableView reloadData];
I am trying to do this refresh from an other Class (DetailViewController), which refers to another view controller.
In a method in DetailViewController I ...
Hi folks,
I want simply to refresh my tableView (on the iPhone) when I click on the related button in the tabBar...
So, I think this has to be done this way :
[self.tableView reloadData];
Right ? And done in the
(void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController...
hi guys
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 'DetailV...
Hi all,
I'm trying to write an application with Core Data, and I have been able to successfully read and write to the core data database. However, if I write to the database in one view controller, my other view controllers will not see the change until the app is closed then reopened again. This is really frustrating. I'm not entirely ...
Hi,
I'm trying to put together some jQuery code that will add form elements (input checkboxes) to a form, once the user performs a certain action. Later on the user can then submit this form.
I'm entirely new to jQuery, but I've managed to put together some code that almost works. Here's what I've got:
$("#someDivID").load("myPage.asp...
Hi,
I have an application that has a "parent" window. In the parent window there are menu items, like the following (using PHP here):
// sample link
echo "<li><a href=\"#\" onclick=openurl('covershift.php');>Shift Coverage</a></\
li>";
// logout link
echo "<li><a href=\"#\" onclick=openurl('logout');>Logout</a></li>";
Each link open...
Hi there!
I am a beginner using ajax and I always thought that it is completely asynchronous. But I discovered that a call can be interrupted by a page reload or a page change (like clicking on a hyperlink). I was under the impression that when an ajax call is started, it is carried out no matter what the browser does afterwards. Is tha...
Take this code snippet for example:
window.location.href = 'mysite.htm#images';
Already being on the site mysite.htm and triggering the reload thru location.href won't reload the page but jump to the anchor named within the URL.
I need a mechanism to truly reload the page. Any ideas?
PS: I tried location's other methods but none of ...
Hi all. I'm new to web programming in general so this is probably a really simple question. I couldn't find anything on the web however.
What I want to do is call my controller with the typed search string and return the results from a database and paginate the results. Right now I am using a function that is called when the button is p...
I have a multi-page flow of webpages (jsp).
After the user have done a lot of work i need to use an activex component, if not pressent on the machine the user is presented yellow bar at the top to accept the component, after accepting the page is reloaded and the user must repeat all the work, do to the fact that the page is reloaed - ca...
I'm creating a slideshow effect using hidden div's. Once a thumbnail is clicked, the corresponding div appears in a window and the other divs are hidden. However, I also need the page to reload. I attempted to use something like this:
$("a").click(function() {
location.reload();
});
However, this will reload the page without follo...
Hi! Newbie question: I'm wondering how to refresh/reload a page (or even specific div) once(!) using jQuery? Ideally in a way right after the "DOM structure" is available (cf. "onload" event) and not negatively affecting "back button" or "bookmark" functionalities. Please note: ''replace('' is not allowed due to third-party restrictions....
Is there a way to reload a page using prototype (or redirect to itself)?
...