I had the same error and found that my prototype.js file was out of
date. Get the latest version and you should be fine.
-Adam
On Jun 24, 6:46 pm, "Amos King"
<amos.l.k...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m trying to open a new url in an ajax window. I''m using
> prototype-window (http://prototype-window.xilinus.com/samples.html),
> and keep getting this error
>
> Prototype.Browserhas no properties
>
> Here are some snipets from my app code
>
> //layout/default.rhtml
> <= javascript_include_tag :defaults %>
> <= javascript_include_tag ''window'' >
> <= javascript_include_tag ''window_effects'' >
> <= stylesheet_link_tag ''spread'' %>
>
> //index.rhtml
> <%= link_to_remote ''pop'', :url => {:action =>
''do_magic''} %>
>
> //do_magic.rjs
> page << "var win = new Window({className:
''spread'', title: ''Ruby on
> Rails'', top:70, left:100, width:300, height:200,
> url:''http://www.rubyonrails.org/'',
showEffectOptions:{duration:1.5}})"
> page << "win.show();"
>
> Does anyone know how I can get this working?
>
> --
> Amos King
> A. King Software Development and Consulting,
L.C.http://dirtyInformation.com
> --
> Looking for something to do? Visithttp://ImThere.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---