similar to: Strategies for updating multiple parts of the page with AJAX

Displaying 20 results from an estimated 1000 matches similar to: "Strategies for updating multiple parts of the page with AJAX"

2006 Jul 24
2
Thread.new with ActiveRecord under Mongrel vs. FastCGI
Hi All, I''m going to end up hosting a site on a server in a fastcgi environment, but I''ve been doing most of my development under mongrel. I have a bit of code that spawns a thread, and in the thread it makes some remote calls (openuri) and does some database inserts via activerecord. When I do this under FastCGI, everything appears to work as expected. When I do it under
2006 Aug 12
2
Very weird counter_cache behavior
Hi All, I''m using a counter_cache, which I believe I''m doing correctly because I can see this SQL query being executed in the development.log file: UPDATE gifts SET bookmarks_count = bookmarks_count + 1 WHERE (id = 276) However, in the gifts table, the bookmarks_count field isn''t incremented (it''s zero). If I literally copy and paste that query into the
2008 Feb 13
8
comparing ajax.updater div in js
This is really bugging me no matter what I''m trying. In javascript, I''m using the ajax.updater, and it (obviously) writes back out to a div. I want to then compare what was echoed out into this div (which came from the php file I listed in ajax.updater) with a string. test should equal "SomeString" because that is what is being echoed out to
2008 Mar 25
7
Facebooker::Session::SessionExpired (Session key invalid or no longer valid)
Hi All, I''m having horrible problems with this exception, which seems to happen as soon as I access the session object. Does anyone know what the path is to recover from this? This post looked to be the most promising: http://rubyforge.org/pipermail/facebooker-talk/2007-December/000047.html And I followed all of the steps except switching my session store, and modifying the default
2005 Dec 29
2
Can''t get scriptaculous to work
I''m just getting up and running with rails, but I''m pretty sure I''m using the scriptaculous library correctly. However, when I try to call an effect I get and endless loop of these errors... Undefined Value line 486 I''m using these libraries... <%= javascript_include_tag "prototype" %> <%= javascript_include_tag
2006 Apr 05
23
how to create RJS visual effects callbacks
I''m trying desperately to get visuall effects callbacks working in rjs templates to no avail What I''m trying to do is fade an image, change the div with the image to a new image, and then fade the new image back in. How would I go about this in RJS Here''s a simple line from my rjs that I can''t get to work. It is not using callbacks so the
2006 Aug 14
1
Relationship not saving
Hi All, I have a one to many relationship between images and gifts (one image can be assigned to multiple gifts): class ProductImage < ActiveRecord::Base has_many :gifts ... class Gift < ActiveRecord::Base belongs_to :product_image ... I''m trying to associate an image with a gift, and for the life of me ActiveRecord will not associate them. Here is some test code and the
2008 Apr 10
7
Facebooker and existing website?
Hi I am trying to use facebooker with an existing website that already has a model named ''User''. I therefore created a model called BkUser for use with facebooker. Also I have different controllers for all facebook requests. I am using acts_as_authenticated for handling login etc for my website and everytime a user is logged into my facebook app and tries to also browse the
2001 Feb 01
1
constructing a vector from a dataframe and another vector
Hi All, I have a dataframe, divs, that looks like this: > divs date ticker dividend 263 20010322 ADBE 0.025 264 20010628 ADBE 0.025 265 20010927 ADBE 0.025 4308 20010212 ED 0.550 4309 20010514 ED 0.410 5416 20010330 GE 0.137 5417 20010629 GE 0.137 5418 20010928
2005 Aug 24
2
Developers Wanted
Hi, I recently won the Railsday contest and the response has been overwhelming. I''m currently looking for: 1) Rails programmers with at least A FEW COMPLETE Rails applications under their belt 2) Front-end XHTML/CSS developers who are comfortable working with Rails and all the Ajaxy goodness to help me finish up several of my current projects and stick around for the next
2006 Feb 13
3
Getting Rid of Error Divs around fields that have errors
Is there a way to get rid of the divs around an error field. These divs are causing me headaches. Any suggestions :-)? John Kopanas http://www.kopanas.com ===================================================================== http://www.soen.info - source of the freshest software engineering information on the net http://cusec.soen.info - software engineering conference
2006 Aug 04
2
Newbie Question: fom_tag_remote return HTML
Hi Everyone, I am still only 1 week old on Rails and I am trying to implement an AJAXy "Add comment" sheet. On the post for a new comment, I want to use form_tag_remote. I would like to use a partial that I want to render for the newly posted comment once the Submit happens. What is the syntax to say, render a partial once the submit happens? Thanks, Vinod
2008 Feb 25
4
A more idiomatic way to write this
Hello, I have a vector of 1,000,000 numbers and another vector of 1,000 divisors. What I'd like to do is to divide the first 1,000 numbers of the first vector by the first divisor, then the next 1,000 by the second divisor and so on. I came up with this, but I was wondering if there is a more idiomatic, R-like way to write it: x <- ... divs <- ... for (i in seq(from = 1, to = 1000000,
2006 Apr 11
1
IE Sortable Style Problem
Hi Guys, I am having a problem in IE (tested versions 6 and 7 beta) with sortable divs in a container div with overflow set to scroll. It looks like all of the divs have their position set to relative after the sortable initializes, and also after being dragged. When a div (any element?) has a relative position in a containing div with overflow set to scroll, all of the divs with relative
2006 Jun 15
6
[OT] Tables VS divs for form layout.
I''ve been using tables to get my forms to line up. ( I have usually one column for labels, and a column for values ). Should I be using divs instead? I''ve been reading some CSS design books lately. They tend to recommend divs over tables for general page layout stuff. But, what about the forms elements? What''s the ''best practice'' in this regard?
2005 Jun 24
3
flashing divs in IE with use of BlindUp and BlindDown
I''m having an issue with flashing divs in IE (firefox is fine and the only other browser I''ve used) My scenario is as follows. I have 2 divs (initially hidden) and using the BlindDown and BlindUp functions (possibly others) the divs flash when starting to roll down in BlindDown (due to the Element.show call) and also at the end of the BlindUp call (due to the Element.hide call)
2006 Feb 09
4
Theme wanted for new Rails CMS
Hi all, I just finished building a CMS (open source, MIT license, same as RoR) that is aimed at people with portfolios: graphic designers, photographers, web developers, etc. Since this fits the Rails demographic well, and I plan to continue actively developing the project, I expect it to be a hit. Some features: * 100% semantic XHTML * Built on Ruby on Rails * AJAXified administration *
2008 Apr 12
2
Sequence of multiple background process submissions
I have a question on how multiple b/g processes that are kicked off get handled in terms of sequence/schedule. On my site, a user enters an RSS feed to be processed and since this takes about 5-10 secs, I pass the process off to a background job and meanwhile do some Ajaxy spinners and tap-dancing until the job completes and then redirect_to the appropriate page. This works great. I also need to
2008 Mar 20
2
onUpdate problem with div
I hav the following code: <div id="puzzle"> <div id="divImage" style="float:left; cursor: move;>test 1</ div> <div id="divImage" style="float:left; cursor: move;>test 2</ div> <div id="divImage" style="float:left; cursor: move;>test 3</ div> <div
2008 Jan 24
10
sorting divs by class
I have a script that pulls in a bunch of data to my page and parses it out into the following format: <div id="container"> <div id="myID1" class="new">stuff</div> <div id="myID2" class="new">stuff</div> <div id="myID3" class="read">stuff</div> <div id="myID4"