Displaying 20 results from an estimated 10000 matches similar to: "AJAX and Rails, creating flyover forms?"
2005 Jul 19
0
quick dragdrop question
Hi,
I want to do some custom logic on items being dragged and dropped - I need an
event callback that has a reference to both the element being dropped (the LI),
and the target element that it''s being dropped onto (the UL). I''ve found the
Sortables.create option for creating an onUpdate and onChange handler, and done
the following:
function selectItem(target){
2009 May 12
3
forms & link css classes - not working
I used a scaffold to create an interface. I''m trying to style it and
I''m having trouble. In my css I have:
#content a, a:link, a:visited{
color: #ff8400;
}
#content a:hover{
background: #ff8400;
color: #FFFFFF;
}
#content a.urgent, a.urgent:link, a.urgent:visited {
color: #FF0000;
}
#content a.urgent:hover {
color: #FFFFFF;
background: #FF0000;
}
#content input.m_title{
2007 Feb 15
3
Re: Incremental Updates
As an alternative to polling the client, as Ryan describes, you could
consider piggy-backing the status updates on the back of other ajax
responses. Which way you go depends entirely on the nature of your app, in
particular:
1. how frequently it generates ajax traffic anyway
2. how long the server-side process is going to take
If the server-side process takes, say, 20 seconds, polling is a
2005 Aug 21
0
[PATCH] in-place-editor, AJAX loading
I sent this on Friday but somehow managed to email it to the wrong email
address!
----
Attached is a patch to add external (AJAX) loading of content to the
InPlaceEditor.
2 extra options have been added:
loadUrl:
a URL to load the content from. If this is present, it will be used
instead of the innerHTML.
fieldId:
I had to add this so we know what the text field is when we''ve
2007 Mar 10
2
Managing PeriodicalExecuters in an Ajax app. How?
Hi all
I have to deal with multiple PeriodicalExecuters over several
Interfaces. Each has it own. Now this all works, but i when i go back
and forth between them i spawn another and another etc...
I tried to push the instance of PE to a global array and on each
change in the interface invoke a stop() on them. This sounds okay, but
it is obviously not working 100% of the time.
Any ideas how to
2005 Jul 20
3
examples of drag n drop
Sorry if this sounds cynical, ( i do love script.aculo.us scripts ) ,
but I am wondering if people know of some good real world
examples of uses of drag n drop and sortable lists.
such a cute script will likely be *ab*used as much as it is used.
obviously the point here is to use script.aculo.us to improve
the user interface rather than just have some k00l eFX.
e.g. the drag n drop instantly
2007 May 17
5
AJAX, PHP and scriptalicious
Hey,
I''m brand new to AJAX and scriptalicious, so i''m hoping for some help.
inside hello.php
I have this piece of code to grab and loop out users in the database:
function test(){
$query = mysql_query(''SELECT * FROM `testing`'');
while($i = mysql_fetch_row($query))
{
echo''<div class="testie">'';
2007 Mar 01
3
Ajax.PeriodicalUpdater using Effect.Highlight to highlight newly loaded div
Hi folks. So far I have managed to get dataloading into a div froma
php script. This script just passes the time on the server in a div to
the javascript below. I am trying to get the last loaded data to call
Effect.Highlight but it seems to highlight the 2nd last data instead.
Can anyone see what''s going wrong here? I''ve tried everywhere to solve
this.
Check the code in action
2006 Jan 11
0
RE: Event.observer - unordered list problems
Hi Marco (I forwarded this also to the mailing list and removed the
picture as it wasn''t necessary to include to the mailing list so
everyone can hear the general techniques),
I recently had a very similar problem with my project. The problem
arises because whenever you move the mouse to ANY element, the previous
element that the mouse was over gets a mouseout event, even if it
2012 Jun 13
0
ZFS NFS service hanging on Sunday morning problem
>
> Shot in the dark here:
>
> What are you using for the sharenfs value on the ZFS filesystem? Something like rw=.mydomain.lan ?
They are IP blocks or hosts specified as FQDNs, eg.,
pptank/home/tcrane sharenfs rw=@192.168.101/24,rw=serverX.xx.rhul.ac.uk:serverY.xx.rhul.ac.uk
>
> I''ve had issues where a ZFS server loses connectivity to the primary DNS server and
2006 Jan 11
0
RE: RE: Event.observer - unordered list problems
I just realized I made a mistake... in the first numbered solution, the
!= should be ==
________________________________
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan
Gahl
Sent: Wednesday, January 11, 2006 2:28 PM
To:
2007 Jan 19
0
About that auto-complete select box ...
Cross posted from the "RoR:Talk" board...
This is more a CSS question than a Rails one.
In AWDwR, in the script.aculo.us section talking about auto-completion,
it says
"It is worth highlighting that there is no JavaScript to enable the
arrow-up, arrow-down, highlight behavior of the list. It is enough to
provide the stylesheet above; it turns out that all <ul> tags support
2006 May 24
2
Which JS/Ajax library to use with RoR
Hello,
I am beginning to soak myself into JS/Ajax stuff and I am quite confused
because of the myriad of AJAX books/frameworks - Its even worse than RoR
in this sense (i.e. in the case of RoR, half of the people are writing
books on it, and i believe this value is even higher with AJAX ;-) Of
course this is not a bad thing, but if a newbie has to choose something
it can be really hard.
So my
2006 May 19
1
validates_presence_of and ajax-forms
Hi.
I have "validates_presence_of :login, :password, :firstname,
:lastname" in my user-model. I enter the information in
new_user.rhtml:
<%= error_messages_for(:user) %>
<%= form_remote_tag :url => { :action => :register }, :html => { :id
=> ''new_user'' } %>
I have a register.rjs with :fade.
Omitting firstname or any other required field
2006 May 31
1
Phrase Query vs AND Query? Why don't these find the same things?
PHRASE QUERY
Xapian::Query((MBOX:12345678-1234-1234-1234-1234567890ab AND
(LP:backup:(pos=1) PHRASE 6 LP:c::(pos=2) PHRASE 6 LP:program files:(pos=3)
PHRASE 6 LP:Mozilla Firefox:(pos=4) PHRASE 6 LP:res:(pos=5) PHRASE 6 LP:
table-add-column-after-hover.gif:(pos=6))))
AND QUERY
Xapian::Query((MBOX:12345678-1234-1234-1234-1234567890ab AND
LP:backup:(pos=1) AND LP:c::(pos=2) AND LP:program
2007 Mar 08
2
Form.Element.select
Hi there,
is there any way to select part of an input element, not the whole of it,
keeping the cursor at the start of the selection?
As far as i can remember, about a year ago i saw a working page using this
feature, but i cannot find it now...
I hope someone can help me to find an answer to my question.
Anthyon
--~--~---------~--~----~------------~-------~--~----~
You received this message
2011 Mar 22
0
Error on ajax forms/links in jQuery UI tabs
I''ve implemented jQuery UI tabs, and I get an error:
When i submit a ajax form or link, it gets submitted multiple times.
As seen in this Doom console output:
DELETE http://localhost:3000/innmeldings/101 404 (Not Found)
DELETE http://localhost:3000/innmeldings/101 404 (Not Found)
DELETE http://localhost:3000/innmeldings/101 404 (Not Found)
DELETE http://localhost:3000/innmeldings/101
2006 Apr 04
3
Forms, view & AJAX best practice help
What i''m trying to get working is I have a controller called
"permissions" and a view "permissions.rhtml". This view has a hidden div
that contains a form for adding new roles. Its just a single textfield.
Also on the page I have a dropdown list of roles and then underneath
that a div that contains a list of permissions for the role selected in
the dropdown. I
2006 Jun 05
1
:onChange and AJAX forms
Hi,
I have this:
<%= form_remote_tag (:update => "item_type_list", :url => {:action =>
:list_item_type_for_brand}, :id => "form1") %>
<div>
Brand <%= select :current_brand, :id, @all_brands,{},{:onchange =>
"submit()"} %>
<input type="submit" value="Change" />
</div>
<%=
2006 Jan 16
1
redirect_to is not working with ajax forms
I''m having trouble using redirect_to in an action called by a
remote_form_tag.
The log shows the redirect, and rendering of the redirected page, but the
browser
won''t redirect. If I set :update in the form_remote_tag, the page that was
supposed
to be redirected to will replace the :update elements content, and crash
FF1.5
Running edge rails, and utf8 encoding
joshua