Displaying 20 results from an estimated 1200 matches similar to: "degrading ajax calls - how?"
2009 Mar 27
1
using pagination to group pages by attribute value
Hi -
I''m trying to group records based on some attribute they or an
association of their''s have. The simplest example I could think of to
drive my point is this:
Assume the following model associations (pardon my butchering of rails)
-
Faculty has_many :courses
Course belongs_to :faculty
I want to paginate courses based on the name of the faculty they belong
to.
The paging
2009 Jan 18
2
InvalidAuthenticityToken error with remote_form_for
Hi All -
I have a form_for that I''m trying to convert to remote_form_for, and I
keep get this error:
ActionController::InvalidAuthenticityToken
(ActionController::InvalidAuthenticityToken):
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/request_forgery_protection.rb:86:in
`verify_authenticity_token''
2010 Sep 29
1
nlminb and optim
I am using both nlminb and optim to get MLEs from a likelihood function I have developed. AFAIK, the model I has not been previously used in this way and so I am struggling a bit to unit test my code since I don't have another data set to compare this kind of estimation to.
The likelihood I have is (in tex below)
\begin{equation}
\label{eqn:marginal}
L(\beta) = \prod_{s=1}^N \int
2006 May 03
3
Graceful degrading AJAX show/hide
Ok i''ve done a bit of hunting around and I can''t find much
documentation on how ensure an ajax call through an rjs file degrades
with javascript off.
Essentially, if javascript is off, I want to refresh the page and pass
a variable from the controller to the page the user is on. Not use the
rjs file.
At the moment i have this:
<%= link_to_remote("Advanced Search",
2012 May 29
0
mlogit package inquiry
Dear all,
? I am implementing a stochastic utility model that will eventually
make use of multinomial logit. I found that there is a package in R
called mlogit. I am not sure whether I have already found the correct
package or software. May I ask am I correct?
? Basically, let's say
? I have observations of n outcomes, for each outcome 1<=i<=n, they
were selected by a choice from a set
2006 Jul 05
0
wifi network performance is degrading with iproute2
Hello,
I used iproute2 to do iif specific routing on wifi routers with 2 wifi
802.11b interfaces on non overlapping interfaces.
I set rule as follows on router-2 (shown below)
use table 100 if incomming interface is wlan0
use table 200 if incomming interface is wlan1
all routes in table 100 have wlan1 as oif
all routes in table 200 have wlan0 as oif
--wlan0--
2009 Sep 20
1
degrading performance
I've been playing with ocfs2 in local mode, and was really suprised
how fast it was. I was playing with extracting a linux distribution
on my hardrive that was tar gzipped (GZIP=-1) and extracting it onto
a different hard drive.
This was with kernel 2.6.28.
ocfs2-5m6s
reiser4-4m19s
reiser3-6m38
jfs-8m18s
ext2-4m7s
ext3-7m18s
xfs-6m29s
ext4m55s
I noticed the delete times were very slow with
2006 Jul 05
4
degrading gracefully - how to tell if JS is enabled?
Is there a RoR best practice wrt determing in a visitor''s browser has JS disabled? Is there even a way to find out? I''ve got a couple of pages in my app that are not going to degrade gracefully at all. I really need to point a visitor who has JS disabled down a seperate path. Any ideas?
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
2006 Apr 01
3
Gracefully degrading Ajax AND Drying up actions
Still a semi-newbie, but so far I''ve managed to solve most things with a
bit of help from the Agile book, some googling around, and a bit of
trial-and-error, but I''m really stuck with this one (very much an Ajax
newbie):
I know how to gracefully degrade an AJAX newpost type call so it can
appear inline or (for those without JS support) go to a new page (put an
":href
2005 Dec 19
1
Preserving fallback with RJS
Hi guys,
I really like RJS. I think they''ll replace partials in alot of
instances. Unfortunately, because they''re automatically used like
.rhtml and .rxml and are hard to specifically specify it makes it
messy to preserve fallbacks when using them. For instance, using
partials instead of rjs, my create method might look like:
def create
post = Post.new(params[:post])
...
2006 Mar 31
3
RJS templates outputting bloated code?
I''m an RJS newbie. I just did the tutorial at
http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates, and
then used wget to look at the output the RJS template generates. This is
what I got:
try {
new Insertion.Bottom("list", "<li>Fox</li>");
new Effect.Highlight("list",{duration:1});
Element.update("header", "RJS
2006 Jul 29
0
RJS templates, Safari 1.3
Hello,
I''m having a problem getting RJS templates working with Safari 1.3
(latest version available to OS X 10.3 and earlier). I''m using Rails
1.1.4, running on either linux or OS X.. same results.
My RJS pages work fine using Safari 2.0, IE and Firefox.. just not
Safari 1.3.
The twist is that the following RJS sites work fine in Safari 1.3:
http://depot.iamjp.com/demo
2005 Dec 17
0
No javascript fallback
AJAX is good for a lot of things, but javascript is not always
available.
I think the new RJS templates are very good:
http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates
And they could be used to create a simple, automatic no javascript
fallback. An example:
You have a controller called PostsController. There is an action "new".
The view displays a form. The form
2006 Jul 21
0
Ajax page.replace_html model validation errors
I have the following setup:
A model: that validates using helpers like: validates_presence_of, etc..
A view: called ''new'' which renders a partial
The partial: _form which has error_messages_for and a
form_remote_tag , submit_tag and end_form_tag
An action ''create'': that gets executed via the submit_tag in the
_form and which
in case it can''t
2006 Jul 24
0
Ajax page.replace_html model validation render partial errors
Hi; I have the following setup:
A model: that validates using helpers like: validates_presence_of, etc..
A view: called ''new'' which renders a partial
The partial: _form which has error_messages_for and a
form_remote_tag , submit_tag and end_form_tag
An action ''create'': that gets executed via the submit_tag in the
_form and which
in case it can''t
2006 Apr 22
3
rjs woes, any hints?
I''ve pared my rjs experiment down to what seems a bare minimum. When I click
on my link_to_remote, the rjs executes, returns the correct javascript to
the browser, but it doesn''t update the div I''ve specified. What appears to
be coming back from the controller is:
Element.update("my_form", "hello, rjs");
I''m tearing my hair out.
2006 Apr 21
3
rjs in multiple ajax page
Sorry for the long explanation but I''m having trouble integrating rjs into my
form page. Here''s my page:
<div id="posts">
<ul id="post_list"><%= render :partial => ''list_results'', :collection =>
@posts %></ul>
<p><%= link_to_remote(''+'',
:url => {:action =>
2006 Aug 02
0
"RJS Error: TypeError: $(element) has no properties"
i have lots of divs, which are added via link_to_remote. now i want to
delete them with a link_to_remote button for each. i am giving them ids
with the same name and a serialized number. when trying to access them
with javascript/rjs, strange things happen: "RJS Error: TypeError:
$(element) has no properties?. is this a rails, rjs or prototype bug? or
am i missing something?
see my code
2006 May 12
0
RJS questions
Hi!
1. Is it possible to execute rjs from onclick event?
2. Can i use rails code inside rjs? So i could easily add complicated
form elements like date_select etc?
3. If i have a form_remote_tag which calls action ''add_entry'', do i have
to somehow run render method to run rjs file or just create
add_entry.rjs file and it will be executed automatically?
4. Can i use rjs code
2006 May 17
0
RJS referring to window.parent
Hi all,
I''ve been doing some work on the Ajax Scaffold
(http://www.ajaxscaffold.com/), to make it work with file uploads
(more specifically, the file_upload plugin).
The first logical step was to get rid of form_remote_tag, since it''s
impossible to send files via XMLHTTPRequests (to my best knowledge).
So I referred to the iframe hack, similar to the upload progress bar
here