Developing Multi-Version (with and without Javascript) of a site.

0 views
Skip to first unread message

Satish Kota

unread,
May 21, 2008, 9:15:41 AM5/21/08
to bangal...@googlegroups.com
Hi All,
 
I have a requirement and require inputs from all...
 
We are to build a web application where the application has to be designed RESTful. Whereever Ajax has to be used and whenever Ajax script is used a non-Javascript Fallback version for the users with disabled javascript  has to be implemented.
 
Now my question is how I should go ahead doing this activity.  All ideas are really welcome

Thanks and Regards
Satish N Kota
 
 

Pratik

unread,
May 21, 2008, 9:19:45 AM5/21/08
to bangal...@googlegroups.com
Look into unobtrusive js libs such as lowpro, jquery.

--
Cheers!
- Pratik
http://m.onkey.org

Satish Kota

unread,
May 21, 2008, 9:22:41 AM5/21/08
to bangal...@googlegroups.com
Hi Pratik,
 
If we use unobtrusive JQuery, how well can we build the javascript and non javascript parts... also one question to you is what is the idea on using tools such as EXTJS. will they solve the problem?
 
Regards
Satish N Kota
 

Nilesh Chaudhari

unread,
May 21, 2008, 11:07:55 AM5/21/08
to bangal...@googlegroups.com
To make javascript really unobtrusive, you'll have to stick to Lowpro with jQuery/Prototype. EXT JS is a UI widget framework. It will not give you any unobtrusiveness. To see whether Lowpro fits your needs, try it out --

Unobtrusive Javascript for Ruby On Rails

-Nilesh

Subbu

unread,
May 23, 2008, 10:32:41 AM5/23/08
to BANGALORE RUG-Ruby Users Group
I think there are 2 questions here.

Question 1: Unobtrusive JavaScript. This happens at the client side.
When the browser (or client) can't understand JavaScript for some
reason then it will fall back on HTML. This is where Unobtrusive
JavaScript comes in to play. Your views are responsible for this. Some
links to help you with this:
http://www.railway.at/articles/2008/05/19/guide-to-unobtrusive-javascript-part-1
http://simonwillison.net/static/2008/xtech/

Question 2: Serving to multiple formats. Could be js, xml, html or
whatever. In other words this is being RESTful. Your controllers are
responsible for this. You should be using respond_to block extensively
and serve the content according to the incoming request.

-subbu
Reply all
Reply to author
Forward
0 new messages