Displaying 20 results from an estimated 7000 matches similar to: "Datagrid with RJS"
2006 Mar 05
2
Article: Creating a Live Datagrid
I just finished posting an article on creating a lightweight but very
functional web grid that does a slick job of live updating whatever content
you put in. Much like Rails itself, I pulled the code from an active project
effort, in the hopes that others would find it useful.
http://unspace.ca/discover/datagrid
Or, for the impatient, give the demo a shot:
http://unspace.ca/datagrid
Feedback
2006 May 11
5
crating a ajax datagrid
hi,
Im looking to build a live data grid, where you can add delete rows
using dhtml.
and was just wondering if anyone is aware of any plugin''s taht may help
me.
Ive found this example but if anyone is aware of any other plugin''s
please let me know
http://unspace.ca/datagrid/update
thanks
scott
--
Posted via http://www.ruby-forum.com/.
2006 Nov 02
5
RJS error in internet explorer
hey all,
got a rails app i''m finishing up. i have a little ajax on one of my
pages where the person can choose a doctor from a drop down list and if
the doctor isn''t there they can click a link which blinds down a little
form to add a doctor. after they submit that mini-form the page updates
the div which houses the drop-down so the doctor shows up. works very
nicely IN FIREFOX.
2006 May 29
1
Re-orderable column DataGrid + Patches for Sortable.delay and Sortable.ignorePositionXY
I would love to get some feedback and test a patch to rev. 4380.
First, the money shot - check out this demo of a scriptaculous DataGrid:
http://development.finetooth.com/?p=13
I''m using the <tr> as a sortable with the <th>''s as the sortable elements.
The Patch file:
http://www.commoner.com/~lsimon/scriptaculous/delay_and_ignorePosition_forSortables.diff
The patch
2006 Jul 22
4
Visible elements in RJS
How can I know if a an element is visible or hidden in RJS
I''m trying to hide/show some data but it does not work
Error => parse error, unexpected $undefined.
#show_doctor.rjs
if($("#{@element}").visible())
page.hide "hide_#{@element}"
end
Any ideas?
@element contains the value of the html element
--
Posted via http://www.ruby-forum.com/.
2006 Jan 11
3
DataGrid (Table) using tables/Scriptaculous Sortable
Hey yall,
I wanted to share some code I''ve been working on as it seems up the
alley of folks on this list. It''s not rails, per se, but one day...
DataGrid: http://development.finetooth.com/?p=6
This also showcases the option.delay perameter I''ve submitted into
scriptaculous - hold down your mouse for one second on any column other
than Vendor and then drag away ;) The
2006 Apr 20
7
AJAX/RJS Updating of Table Rows
I''m trying to update a table row (i.e. replace a <tr></tr>) using
AJAX/RJS but of course this cannot be done in IE (works fine in
Firefox). I have googled but have not found any solutions, only a lot
of discussion. Does anyone have a solution to this problem?
Cheers,
Nicholas
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 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 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 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 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
2006 Jan 13
1
Rendering an RJS template within another RJS template
Is there a way to render an RJS template within another?
I''ve put my simplified code below. No errors are generated, but the
partial isn''t rendered. I also tried using render :action =>
''update_actions''
destroy.rjs---
page.visual_effect :fade, comment_container(@object.id.to_s)
# update the number of comments(below is another rjs template)
render :partial
2005 Dec 28
1
RJS and :loading
Hi,
I''m a newbie with Ajax and RJS and have one basic question.
When contents in .rjs are exceuted in a Ajax sequence?
.rjs seems a kind of alternate for .rhtml view file, so I guess they are
in action after the controller action completed.
The contents of .rjs file are :complete scenario, right?
if so, can''t I write some on :loading action in .rjs?
like disabling
2006 Apr 22
0
RJS question - Query DOM/CSS from RJS?
I understand that I wouldn''t be able to directly query into the
DOM/CSS of a page from within an RJS file because it runs on the
server but is there any way to populate a variable from the controller
or something to gain access to DOM information?
What I want to do is this:
I have some RJS to blind_down an error message panel, but if the form
is resubmitted and there are still errors,
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
2007 Feb 08
1
RJS throwing 'rubycode' exception
All,
In an RJS template, how could I pass ruby variables values to the
javascript without getting the RJS Exception: rubycode? This is what I''m
doing (as an example) and is throwing the exception:
index.rjs
=========
names = ["ruby", "ajax"]
page << "alert(#{names})"
You think that wouldn''t work because its an array, right? Ok, so if I
2006 Jun 17
2
RJS templates - newbie
I am trying to test drive RJS templates in Rails 1.2. Here is what I
did:
create table categories (name varchar(255) );
rails RJSTest
cd RJSTest
rake update_javascripts
script/generate controller home index add
script/generate model category
Note: When I did a rake update_javascripts, I did not see any output.
I configured database.yml to talk to mysql.
Next I wrote