[Rails-spinoffs] Re: Prototype doesn't support Cross-Site in FireFox3?

2008-03-31 Thread Wizz
Hi Rui, Firefox 3 implements the W3C Access Control working draft, which gives you the ability to do XMLHttpRequests to other web sites. This says it all if you ask me... it's still a working draft and it isn't wise to develop a fix for something that isn't finished yet and might change if

[Rails-spinoffs] mistake with params?

2008-03-31 Thread geoffcox
Hello, I am trying to add items for Ajax.Updater using var params = new Array(); params.groupnumber = group_number; params.emailaddress = email_address; etc etc in place of var params = ({groupnumber:group_number,emailaddress:email_address,etc}); but get error message from the server saying

[Rails-spinoffs] addClassName IE6

2008-03-31 Thread Roland
Here's some snippet code i use in my script: target.writeAttribute('class', '').update(''); if(Object.isString(this.opt.className)) target.addClassName(this.opt.className); then i use the following css rule; #target.opt_classname { font-size:20px;color:orange } FF and IE7 shows some nice

[Rails-spinoffs] Re: mistake with params?

2008-03-31 Thread Ken Snyder
geoffcox wrote: Hello, I am trying to add items for Ajax.Updater using var params = new Array(); params.groupnumber = group_number; params.emailaddress = email_address; etc etc in place of var params = ({groupnumber:group_number,emailaddress:email_address,etc}); ... You need to

[Rails-spinoffs] Re: mistake with params?

2008-03-31 Thread geoffcox
You need to use a vanilla object: var params = {}; Thanks for that help! Cheers Geoff --~--~-~--~~~---~--~~ 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

[Rails-spinoffs] Re: How to make a ajax (xhr) redirect?

2008-03-31 Thread Lori Olson
We use this, on a page with display preferences. When a preference change is going to change most of the page, it's just easier to redisplay the whole thing. Note that page.redirect_to(:back) doesn't work. render :update { |page| page.redirect_to(request.env[HTTP_REFERER]) } Regards, Lori On

[Rails-spinoffs] mouseover with observe-method doesn`t work on hyperlink

2008-03-31 Thread [EMAIL PROTECTED]
spend my whole day now on the following problem and can`t nail it down. i have to anchors : %= link_to_remote(, {:url = { :controller = filter, :action = male_users_selection }}, {:id = maleSelection}) % %= link_to_remote(, {:url = { :controller

[Rails-spinoffs] Trying to get Effect.Appear, Scale, Fade to work

2008-03-31 Thread HomeAutoM8
= Mon-03-31-2008, 11:04pm U.S.EDT Hello, I'm trying to get a website entry page to work properly, while learning Scriptaculous effects and javascript at the same time. I wanted to use a couple of effects to add a little flash-style animation. I

[Rails-spinoffs] Re: addClassName IE6

2008-03-31 Thread RobG
On Mar 31, 7:32 pm, Roland [EMAIL PROTECTED] wrote: Here's some snippet code i use in my script: target.writeAttribute('class', '').update(''); I expect it is because you are not adding Prototype.js's extra methods to the object that is target. Presumably it is a DOM object, so before the

[Rails-spinoffs] Re: Trying to get Effect.Appear, Scale, Fade to work

2008-03-31 Thread David Lam
i think you can put the onload function in the head element and that'll get rid of the flicker problem i.e. instead of this in the body script window.onload = function() { new Effect.Appear('entryimage',{duration: 4.0, from: 0.0, to: 1.0}) } /script you can do head onload=new

[Rails-spinoffs] Re: Trying to get Effect.Appear, Scale, Fade to work

2008-03-31 Thread David Lam
err what am i saying i mean put the onload on the body element dancing with the stars is distracting On Mon, Mar 31, 2008 at 9:28 PM, David Lam [EMAIL PROTECTED] wrote: i think you can put the onload function in the head element and that'll get rid of the flicker problem i.e. instead of