similar to: Dynamic JS updating / data-preloading using ajax

Displaying 20 results from an estimated 3000 matches similar to: "Dynamic JS updating / data-preloading using ajax"

2006 Feb 28
5
browser-crash with Ajax.Updater
Hi, on my page I start an ajax-request which returns rhtml-code (I use Rails) looping over some objects. When I place the following code within the loop my browser (FF) crashs: <script> var set_std_objekt = function (id) { new Ajax.Updater(''divname'', ''/dosomestuff'', { asynchronous:true, evalScripts:true }) } </script> <a
2006 Apr 06
4
Using RJS to call custom JavaScript class/method
The announcement for RoR 1.1 shows some nice examples of RJS calls. In particular I am interested in this one: # Call the custom JavaScript class/method AddressBook.cancel() page.address_book.cancel In trying to develop a "lightbox" style modal form, I have been successful in saving the form data via AJAX but I can''t seem to close the "lightbox". I am using the
2006 Mar 04
29
Getting RJS / EgdeRails working
Hi, using Rails 1.0 on windows (without svn yet) I just wrote "rake freeze_edge". Are the RJS-templates already included then ? When I write "rake update_javascripts" I receive this error: svn: ''.'' is not a working copy Any tipps for a newbie on how to get the update done (if neccessary) ? thx Jan
2006 Mar 07
2
How to sort execution of multiple ajax-calls
Hi, currently I execute 2-3 AJAX-Calls (located at the end of html-body) on loading the page. I run into problems now because they are executed parallel of course :) How can I garuantee that the Calls are executed when the page has loaded completely ? And, more interesing, how can I make one AJAX-Call start when the previous has completely finished ? I''ve read about Effect.Queues - is
2006 Jun 12
3
Ajax - preloading images
I could experiment to figure this out, but maybe the work has been done so I''m going to ask. Using Ajax, if I wanted to preload several (20) small (<1K) images, behind the scenes... would I... 1 - Queue the loading of the images with Ajax one at a time, asynchronously, and ignore the completion results. Would this result in the image being in the browser''s cache even if
2006 Feb 03
2
RE: help with syntax
I guess the first step is reading up on OOP in javascript... http://www.webreference.com/js/column79/ http://www.codeproject.com/aspnet/JsOOP1.asp Then, check out the definitive prototype.js guide... http://www.sergiopereira.com/articles/prototype.js.html -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005 Aug 08
7
JS Input/Validation Library
Does anyone has any thoughts about starting a project to simplify client-side form validation and input? I started thinking about this because I think date input in most web applications is broken. I really like Simon Willison''s demo: http://simon.incutio.com/code/js/date-parser/ I think this could be improved (by mapping say shift+left-arrow to the previous day, and
2006 Jun 27
2
Preloading results in Ajax App
Hello Rails lovers! I have a few general discussions that I have yet to find terribly active. Perhaps all of the people busy on this front are...uh...busy on this front. So! Ajax-only apps. No degration. Yes! Forget about degradation for a moment. Not willing to? Ok, well...this question is for those who are willing... Imagine developing an app that is one page - all actions render partials
2007 Mar 23
7
Lightbox-eske Dialogish Object
So, one of the things I''ve always wanted to do was expand upon the simplicity of the Lightbox Gone Wild! object that the coders at www.particletree.com put together months ago. I used it on an application I wrote to organize my own picture albums on my localhost web server, but I had to hack it apart to get it to do the things I wanted it to do. I looked at the Prototype Window
2006 Mar 10
3
Using Rails without a webpage
Hi, I''m thinking of how it may be possible to execute Rails code without having to load a webpage which invokes the controller/actions. Background is: I have a public-website which reads from a DB, nothing special yet ;) Due to internal processes in the company we thought of instead having an admintool to fill the DB we maybe could use a script or something which fills the DB. And to
2005 Dec 08
6
What does mean $(element) ?
Hi All, In scriptaculous scripts, I don''t understand this syntaxe : $(element) --8<--------------------------------- Effect.Highlight = Class.create(); Object.extend(Object.extend(Effect.Highlight.prototype, Effect.Base.prototype), { initialize: function(element) { this.element = $(element); ... --8<--------------------------------- I had never seen this syntaxe, I
2014 Aug 19
2
Missing patch for RODC user preloading
Hi, I've stumbled upon this message: https://lists.samba.org/archive/samba-technical/2013-November/096322.html Which includes a patch to make user preloading in a RODC actually work. I'm running SerNet Samba packages, version 4.1.11, and this patch has not been applied. Is it blocked for some reason? Thanks in advance, -- Roberto Su?rez Soto Allenta Consulting
2019 Jul 18
0
Re: Preloading shared library with libVirt
On Wed, Jul 17, 2019 at 13:33:08 -0500, Probir Roy wrote: > Hi, > > I am trying to preload two shared libraries while running Qemu using > libvirt. To preload the shared libraries I have added an environment > variable in the $domain.xml file with the following command: > > ``` > virt-xml generic --edit --confirm --qemu-commandline >
2006 May 16
0
Preloading models in Rails
Hi, I''m fairly new to rails and I need some advice on best practice. I''m working on an application that has a calendar section (I know, not another one of those!) and I was wondering, when is it best to query your database and when is it best to preload a model. In the calendar app the user will have a month view of entries and was wondering should I preload all the entries of
2006 Apr 20
1
multi level :includes for preloading objects from database
I am using :include => :assocation to preload data that I know will be used later in the UI over and over. However I have data like that that is an association of one of the associations. How would i preload that data too? e.g. grant has_many :people and person belongs_to :group I can''t include the :group association in a Grant.find because its not an association of grant,
2006 Feb 24
0
preloading children of child rows
I am working on a rails app to serve as the admin app for an existing java webapp. For this reason, I am constrained by the current database structure, which does not by any means conform to the ideal rails defaults. Anyway, I have the following models: class Provider... belongs_to: login class Login... has_and_belongs_to_many :demographics class Demograpics... ... Everyone has a
2009 Jul 28
1
WinHQ.org website - CSS preloading
Hi, I wasn't sure where to write this so thought I'd just put it in the forum. The WineHQ.org website is great, just I think pre-loading the hover images for the main menu section would make the site even better as it would no longer mean the hover images would need to be loaded when the mouse is hovered over them. I found a solution here:
2006 Apr 29
2
counter_caching clobbered when preloading association ?
Hi, I''m trying to use counter caching in a tree structure (in this case Bob Silva''s threaded list). This is the definition: class Folder < ActiveRecord::Base acts_as_threaded has_many :files end I would like each parent to have the total count of all the childrens member. So when inserting a new file I update the file_count following the parent_id through all the
2009 Feb 19
1
ActiveRecord-2.2.2, association preloading, joins and order parameter weirdness
Hello RoR Groupies, I''m seeing some weird ActiveRecord-2.2.2 SQL generation when doing eager association/preloading and using joins and ordering by said join table. Here''s an example: class Photo < ActiveRecord::Base end class User < ActiveRecord::Base has_one :headshot, :class_name => "Photo" end class Mail < ActiveRecord::Base belongs_to :user end
2006 Apr 10
3
preloading child rows just a level deeper...
hiho. following problem. i have 3 tables in my database with each representing an object. lets say A belongs_to B belongs_to C. when i do my_a = A.find(:all) i can access B as my_a.b and C as my_a.b.c thats fine but rails querys the database each time i do that so is use my_a = A.find(:all, :include => :b) works fine for my_a.b but not for my_a.b.c so i tried my_a = A.find(:all, :include