Questions tagged [rightjs]

19 questions
15
votes
4 answers

RightJS javascript library in daily use

Wondering if anyone here can offer any insight into the ups/downs of using the RightJS library, specifically as compared to jQuery, and generally compared to what you think a library ought to offer. I'm not so much looking for a feature to feature…
user113716
  • 318,772
  • 63
  • 451
  • 440
10
votes
3 answers

Switching from JQuery to RightJS

I am currently using JQuery and recently heard about RightJS. RightJS seems to be faster, lighter & more object oriented. But I was wondering if RightJS has somethings seriously missing compared to JQuery (Other than the huge plugin base). Update:…
Nahar
  • 255
  • 1
  • 9
7
votes
1 answer

Refreshing a div with the contents of flash[:notice] using right.js?

I am using inline haml templates in my sinatra app. I have a @@layout with a section like this: #message - if flash[:notice] %section.notice= flash[:notice] - if flash[:error] %section.error= flash[:error] When I use flash[:notice] =…
Don Wei
  • 431
  • 5
  • 16
2
votes
1 answer

Asynchronous Unit Tests in Ruby

I'm testing some javascript libraries I've built by using ruby's harmony. Everything is working perfectly except AJAX calls — does anyone have any ideas how to achieve this? My code looks something like this (I'm using RightJS): my.js function…
JP.
  • 5,507
  • 15
  • 59
  • 100
1
vote
3 answers

PJAX on RightJS

I was just reading around and got somehow interested in RightJS. I have been using jquery as my main javascript framework but now I wanted to learn something new. However I would like to know of RightJS could do PJAX. I am aware that as long as you…
Lester Celestial
  • 1,454
  • 1
  • 16
  • 26
1
vote
1 answer

Why do html form inputs automatically get disabled?

I am using the RightJS javascript framework. I'm not sure if that has anything to do with this behavior or not. I have a form on my page and I use $('some_form').send(); to send the form to the server via a Post. The form submission works fine and…
PICyourBrain
  • 9,976
  • 26
  • 91
  • 136
1
vote
1 answer

How to check if cards in hand match cards on table?

There are 8 cards on the table, with four faces visible and four hidden. Click on a card to turn it and if there's a pip-match or suit-match, show sparks around the associated cards. Problem is, I'm either doing something wrong logic-wise, or…
0
votes
1 answer

How do you use RightJS widgets within an existing JQuery app?

Well, title pretty much asks it all: How do you use RightJS widgets within an existing JQuery app? I've been looking over RightJS and I especially like like the Billboard and Sliderwidgets and would like to use them in an existing app, but I am not…
shamelesshacker
  • 185
  • 1
  • 7
  • 18
0
votes
1 answer

Parsing XML with RightJS in IE?

I am trying to use RightJS in a new project. What I am trying to do is: Having a XHR request to the server Retrieve a XML back Parse the XML and update the page accordingly The code works for Firefox and Safari but when I try to load it with IE I…
Nevin
  • 7,689
  • 1
  • 23
  • 25
0
votes
2 answers

Javascript framework (RightJS) as content-script in a page-mod

I'm new to the jetpack world (and firefox extension for that matter) and while doing some research on the possibility of jetpack, I found something strange. I did a simple test project that included a javascript framework (RightJS) in a pagemod…
nicon
  • 101
  • 1
  • 8
0
votes
4 answers

Is it good to use more than one forms on a page?

I want to use multiple forms in one page in my project because RightJS have many good methods for AJAX form handling. But I am afraid that it will lead to problems with speed. Does it really so?
uhbif19
  • 3,139
  • 3
  • 26
  • 48
0
votes
1 answer

Is RightJs (right-rails) ready for rails3

I'm wondering if right-rails(rightjs) is ready for rails3? I'didn't found any replacement for the default public/javascripts/rails.js Thanks
denisjacquemin
  • 7,414
  • 10
  • 55
  • 72
0
votes
1 answer

RightJs lightbox doesnt show long texts

I have a webpage that I want to pop-up a description in it. I've used rightJS light box 2.4.0. It works fine but the only problem is that it just shows a portion of my text. I have attached a sample file to check; As you can see it doesn't pop-up…
Pedram M
  • 1
  • 1
0
votes
1 answer

Is there a simple way to only reload an element if it content has changed?

I am using RightJS (very similar to jQuery) on a site I'm working on. I am loading an element on the page with the result of a request like so: var comp = $('completed_step'); if(comp != null) comp.load("/brew/completed_step"); This works but I am…
PICyourBrain
  • 9,976
  • 26
  • 91
  • 136
0
votes
1 answer

RightJS: getElementById vs $('element_id')

I am learning javascript and using RightJS. What is the difference between the following? var thing = $('thing1') and var thing = document.getElementById('thing1')
PICyourBrain
  • 9,976
  • 26
  • 91
  • 136
1
2