Displaying 20 results from an estimated 5000 matches similar to: "[Ajax] draggable_element with button inside"
2006 Feb 01
0
Using draggable_element doesnt work with update_element_function
Hi everyone,
I am writing a ruby on rails application, and making heavy use of AJAX calls
and evaluate_remote_response. In my remote responses I often have several
update_element_function calls going on, to update several divs on the page.
What I am doing is calling update_element_function, with the content as a
block. Inside the block I usually have html, or make calls to other partials
or
2008 Apr 03
0
draggable_element Messing up CSS for IE7
I am having trouble with draggable_element and come IE7 css. I have a
list where I want the items in the list to be draggable. I need the
list to have a fixed height so I would like a scrollbar. I use
overflow:auto and everything works great in Firefox and Safari. But
IE doesn''t respect the overflow:hidden. Well, it kind of does. It
creates the scroll bars but lets everything spill
2006 Apr 07
0
weird problem with draggable_element in a partial rhtml
Hi all,
I have an index.rhtml page which calls a partial called _tasks.rhtml. In
the latter i call <%= draggable_element("icon#{@tasks.id}", :revert =>
true)%>. The first display of my page works fine and I get
<script type="text/javascript">
//<![CDATA[
new Draggable("icon32", {revert:true})
//]]>
</script>
But then if I have an ajax
2007 Jul 26
1
Scroll Page While Dragging 'draggable_element'
Hi - I posted this on another list, but received no response, so I''m
trying this one. My apologies to those who have seen this question
twice.
I have two columns, one of draggable elements, the other of
droppable elements. These are used to add items to a particular
collection. (Story :habtm ''Assets'')
Column 1 (Assets) Column 2 (Stories)
==============
2005 Dec 30
4
AJAX Drag and Drop Detecting Drop Coordinates
This one''s kicking me in the *(&#^. All I want to do is create a draggable
item and then detect the coordinates where it is dropped. So my first
approach was to just use the draggable_element with :revert => false, like
so:
<%= draggable_element "my_element", :revert => false %>
That works great and lets me drag stuff all over the place. In the
scriptaculous
2006 Jan 14
3
link_to_remote where the url contain a javascript variable
Ok, so I am basically trying to use ''link_to_remote'' and pass the value
of a javascript variable as an argument. Something like that:
link_to_remote "my_link",
:update => ''my_div'',
:url => { :action => "my_action", :var =>
''my_var'' }
Basically,
2007 Jun 19
4
back button for AJAX in rails
Greetings all,
I am wondering are there any thing like link_to_remote(:update, :url) in
rails which preserves the navigation feature (back & forward button as
well as bookmarks) of the browser? Thanks very much!
Cheers,
Difei
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2006 Feb 22
0
Can you make an HTTP request inside an Ajax action?
I have a regular controller action which, when called, makes an HTTP
GET request to another server. That works fine. I''d like to throw
that inside an action called with link_to_remote, but that''s having
problems. The error I get follows. Any ideas?
Pat
http://localhost:3000/main/ -> /javascripts/prototype.js
[2006-02-22 06:08:11] ERROR ThreadError: timeout within
2008 Mar 19
6
Back button behavior has changed again in Safari 3.1, after doing a dom update via ajax/RJS
GAH!
Here is the firefox behavior, which is perfect:
1) View page 1
2) Update some text by using link_to_remote or remote_form_for, along
with an RJS replace or replace_html
3) Navigate to page 2
4) Hit back
5) Page was cached with dom updates, note that the page is show in the
same state as it was left
Safari 3.0 behavior
1..4) repeat
5) Page reloads, ending up in the state where it was left
2007 Nov 16
1
drag & drop list needs refreshing
Hello guys, I''m a scriptaculous newbie (I started working with it only
yesterday) and I have already the first problem.
I''m trying to implement a drag & drop list (fallowing the shopping
cart example http://demo.script.aculo.us/shop) and I''m almost done
but after dropping an item on the target div I need to refresh the
page to see that the item has been moved.
2006 Apr 13
1
Adding a title to an AJAX link.
Hello all.
I am trying to add a title to a link_to_remote created AJAX link.
What I want to create is:
<a href="#" title="VALUE-HERE" onclick="new Ajax.Updater(''content'',
''/area/show/28/40'', {asynchronous:true, evalScripts:true}); return
false;">Area Name</a>
However I cannot seem to get it to work, the API says
2006 Jun 01
1
link_to_remote renders Ajax.Updater, sometimes Ajax.Request
I''m new to Rails, but am really enjoying working with it.
But i just hit a brick wall...
I have two link_to_remote tags in two seperate _whatever.rhtml files.
The targets of the updates are in edit.rhtml which does a render
:partial to include the links. here''s some code:
<%= link_to_remote ''Destroy'',
:update => "libtable",
2007 Aug 12
0
Newbie: AJAX not working - Undefined Method error
Hello
I have included prototype in my Applications rhtml file
<head>
<%= javascript_include_tag "prototype" %>
<title>FLYPRO </title>
<%= stylesheet_link_tag ''flypro'' %>
</head>
I call link_to_remote in a page as follows
<div id="flypro-list">
</div>
<%= link_to_remote("Do
2006 Aug 01
3
Radio buttons and AJAX
Hi,
Here is what I would like:
2 radio buttons:
"yes" and
"no"
There will be 2 containers:
<div id="yes" style="display: none;">Yes stuff</div>
<div id="no" style="display: none;">No stuff</div>
What I want is whenever the "yes" radio button is selected, on the "yes"
div should be made
2006 Feb 20
0
Ajax and tables
Guys,
I want to be able to update the contents of a table without dedrawing
the entire thing. Basically, if the user clicks on the 2nd column then i
want to turn that cell red, the 3rd green and the 4th blue.
I have the table drawing correctly now but not updating correctly. I
can''t get the update to work on the div unless its inside the table
cell. I was hoping to have the div
2006 Feb 28
1
Ajax functions with embedded objects
Hi,
In my project, there is an rhtml page with an embedded SVG file. In my
javascript functions, I can find an object by id inside the SVG file
with the following:
ObjectInSVG =
top.document.embeds[0].getSVGDocument().getElementById("rect");
Now, I want to use Ajax methods, like link_to_remote, in the rhtml page
to manipulate the SVG objects. The problem is that link_to_remote
2006 Jan 11
0
AJAX: link_to_remote problem
I use:
<%= link_to_remote("Update",
:update => ''mydiv'',
:url => { :action => :create, :host => ''rails'' }) %>
which generates the following:
<a href="#" onclick="new Ajax.Updater(''mydiv'', ''/account/create'',
{asynchronous:true, evalScripts:true}); return
2006 Apr 15
0
drag&drop strangeness
hi people!
I have a view like this:
# list.rhtml
<form id="search">
<ul style="list-style: none;">
<div id="searchfields">
<%= render "contacts/search_fields" %>
</div>
<div id="trash">
trash me
</div>
</ul>
<%= drop_receiving_element
2006 Jul 21
10
Using an image button for "link_to_remote"
All,
I want to do an AJAX request using a custom image button. I currently
have this as a standard button action using "button_to".
What I need is the button equivalent of "link_to_remote". Is there a
helper that I can use, or do I need to build it by hand?
I see button_to_function(), but that sets me up to call a Javascript
function, not post to a Rails action.
Or can
2006 Jul 20
5
Need HELP changing link_to_remote to a button
I would really appreciate some help with changing a link_to_remote call to a button of some sort. Here''s a little background.
On the page there are two <div>s. One is a form that lets the visitor enter items. The second <div> is where the entered items get displayed, each in it''s own item <div>.
Each item <div> has two <span>s. The first one