Recent Posts by Adkron

Subscribe to Recent Posts by Adkron 3 post(s) found

Jun 25, 2007
Avatar Adkron 3 post(s)

Topic: Help/Bug / Top bar of windows doesn't display correctly, and not dragging

The top/bottom of windows are short and to the left. They do not size to the window, and I can’t drag the window. Do you have any idea why? I have no css for my page I’m trying it on. I’m using the mac_os_x theme for the window. I’m doing this in Rails. I included the js that came with prototype-window and nothing else. I have the same issue even if I copy the code directly from the sample page. If you want a screen shot just let me know.

 
Jun 25, 2007
Avatar Adkron 3 post(s)

Topic: Help/Bug / Prototype.Browser has no properties

Solved it. I just replaces all Prototype.Browser to Prototype.BrowserFeatures.

 
Jun 24, 2007
Avatar Adkron 3 post(s)

Topic: Help/Bug / Prototype.Browser has no properties

I’m trying to open a new url in a window. I’m using Rails, and keep getting the error in the subject.

//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.