Displaying 20 results from an estimated 6000 matches similar to: "Rails and Dojo"
2006 Jul 21
3
Unobtrusive Javascript plugin
Hi,
I downloaded the unobtrusive_javascript pluing from this link
(http://www.lukeredpath.co.uk/index.php/2006/06/06/introducing-unobtrusive-javascript-for-rails/)
since I needed to have dynamic content in javascript (for a pop-up
menu).
Unfortunately I have been unable to make the plugin work. I followed the
instructions on the website, but for some reason the javascript doesn?t
work (for
2005 Aug 31
11
Documentation generator?
I''m looking for a documentation generator for JavaScript code that can
handle the coding style used in prototype.js and script.aculo.us. Any
recommendations for such a tool?
In a similar vein, does it make a noticeable difference in production
when comments are removed and several script files are combined into a
single one?
Michael
--
Michael Schuerig Most people
2007 Jan 24
6
dojo and prototype compatibility?
are there any compatible issues that exist when trying to use both
prototype and dojo at the same time?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this
2006 Nov 05
4
Why Struts2 use dojo instead of Scriptaculous?
Hi,
I''m using prototype/Scriptaculous in my open source project JSControlsTags
http://jscontrolstags.sourceforge.net/
I''m Struts user and in the new version Struts2, the framework integrate AJAX
with dojo
and not with Prototype/Scriptaculous. I asked in the Struts forum, why
Struts2 integrate
by default dojo and not scriptaculous.
Here Struts answer :
------------------------
2006 Jun 09
11
Adding routes from plugin
Can anyone tell me how to add routes from plugin? I know it is possible
because of this changeset: http://dev.rubyonrails.org/changeset/2967 but
i didn''t find way how to do it.
retro
--
Posted via http://www.ruby-forum.com/.
2006 May 18
4
Request Routing Plugin ( :requirements => { :subdomain => ''thing'' } finally works)
Hi All,
Just a quick note to say that I''ve released an intial version of the
request routing plugin which essentially allows you to use various
request object properties as requirements in routes. Most notably you
can do:
map.connect "thing", :controller => ''main'', :requirements => {
:subdomain => ''whatever'' }
..just like the wiki
2007 May 14
8
Problem with script.aculos.us script
I''m newbie to rails application.
I like to use script.aculos.us script in my app.
I faced the following problem.
1. first i creat my application.
2. Then I copied the files
scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and
slider.js
and prototype.js
into my app/public/javascripts/
3. Then included the <%= javascript_include_tag :defaults %> code into
head
2006 Mar 26
9
validate_uniqueness_of {combination of fields} ???
I''ve looked at the validates documentation and it appears that validates_uniqueness_of works on only one field at a time. So I can, for example, validate that "sam" is unique to the record set, and that "smith" is unique to the record set.
My problem is that each record includes two fields, the _combination_ of which must be unique to the record set, but each of
2006 Feb 10
7
convert rails object to javascript variables
Am i a total idiot to try and parse out a rails object for javascript
in this way?
<%
for i in interface_items[0].attributes
%>
var <%= i[0] %> = "<%=h( i[1] )%>"
<%
end
%>
Am I missing something really obvious?
Thanks,
Mark
--
--------------------------------------------------------------------
I am Mark Daggett and I approve this message.
2009 Nov 29
3
Views/index to views/show loses javascript functionality
I am testing a local copy of my website using Mongrel trying to
introduce a scriptaculous multi-level drop down menu. the menu is a
partial that is loaded into every layout I have many pages with their
individual layout file. When I jump from page to page(index to index)
all works OK. When I
jump from any "view/index" to "view/show" I lose the javascript and
the
drop down menu
2008 Apr 04
4
Auto Complete Problems
Hello All,
I''m a RoR newbiew, trying to experiment with Autocomplete, but I''m
having some difficulties. When I start typing in my input box, instead
of getting a nice drop down, the styling on my page is getting all out
of wack (ie my background colours change, link styling changes, etc) and
I''m not seeing any autcompletion data. Here are the steps I''ve taken
2005 Nov 08
2
Scriptaculous insertion fails when XHTML Strict used in FireFox
Hi !
I'm getting an uncaught exception requiring the Scriptaculous
libraries when everything says XHTML 1.0 Strict:
class ApplicationController < ActionController::Base
before_filter :set_content_type
protected
def set_content_type
response.headers['Content-Type'] = 'application/xhtml+xml;
charset=ISO-8859-1'
end
end
<?xml version="1.0"
2006 Jan 12
3
Introspecting Active Record Associations
Hi,
I''m looking into write scaffold generators that will, amoung other
things, scaffold active record associations (eg. generate select
boxes for belongs_to where you can choose a parent object) for quicker
prototyping. But...
My question is: Is there anyway of finding out what associations
exist from examining the lodel classes themselves or indeed any other
way of finding out this
2006 Mar 05
7
whatever happend to unobtrusive javascript in Rails ?
Don''t get me wrong, JavaScript/Ajax helpers in Rails are a huge
timesaver and they have helped me to finally overcome my irrational
aversion to js libraries like prototype and such. However, all this
goodness seems to come at quiet a price. The resulting code is
littered with inline JS, including ubiquitous script tags and onload
attributes etc.. It seems that just when i found
2005 Nov 28
5
Rails on lighttpd through proxy
Hi All,
We have a PHP site running on apache 1.3 and Im trying to graft typo
onto it at /blog/. Ive got the running using the symlink method but
apache/fastcgi are clunky to say the least so I want to move typo over
to lighttpd. Ive got this all working and Im now trying to get a
proxy working through from apache. Im using this:
RewriteRule ^/blog/?(.*)$ http://blog.myorg.net:8080/$1 [P]
2006 Apr 05
7
AdminPages Rails CMS is now an engine
Hi all, I just released the new version of my CMS AdminPages as a Rails
engine.
It uses the Dojo Toolkit for UI elements.
Features:
Manipulate pages and content with Drag n Drop,
Pages in a sortable tree,
easy to define new page elements,
"Nice" URLs,
Page Caching,
Rich Text Editor,
multiple columns per page,
custom content types,
Layout scaffolding
BSD license
2006 May 12
7
RJS and page.select collection size
I need to implement a conditional in my RJS template which looks
something like:
if (page.select(''row1'').first != null)
page << "new TableRow.MoveAfter(''row1'', ''newrow'');"
else
page << "new TableRow.MoveAfter(''row2'', ''newrow'');"
end
Now, dumb question.. My
2006 Mar 29
4
Why doesn''t Rails 1.1 have all the Script.aculo.us 1.6 files?
Why aren''t builder.js, slider.js, and scriptaculous.js part of the
Rails 1.1 javascripts?
rab:javascripts $ pwd
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.0/html/javascripts
rab:javascripts $ ls -l
total 288
-rw-r--r-- 1 root wheel 148 Mar 28 08:56 application.js
-rw-r--r-- 1 root wheel 28036 Mar 28 08:56 controls.js
-rw-r--r-- 1 root wheel 23613 Mar 28 08:56 dragdrop.js
2006 Feb 10
1
Rails is the devil on your client-side shoulder
Hi Everyone,
Sorry for the inflamatory title, just trying to get your attention.
Ive been thinking alot about the JavaScript helpers and I''ve written
my thoughts on my companies blog if any of you are interested:
http://www.vivabit.com/bollocks/2006/02/09/rails-is-the-devil-in-your-client-side-shoulder
I know people have brought this up a number of times but I really
think it needs
2005 Dec 15
2
link_to_remote and browser compatibility
link_to_remote generates the javascript: new Ajax.Updater(...). Have I
missed something or doesn''t this handle browsers with javascript support
but without XHR support?
What I''d like to do is:
1. If the browser supports XHR, use XHR
2. If the browser supports javascript (and perhaps even if the XHR
request fails) do a POST via javascript
3. If the browser doesn''t