0
popitup = (url) ->
newwindow = window.open(url, "name", "height=200,width=150")
newwindow.focus() if window.focus
false
這是我的代碼,但我想彈出鏈接到一個HAML文件,而不是URL出現在我的彈出窗口的CoffeeScript和HAML在彈出窗口
%h1 popup
br
%input{:name => "option1", :type => "checkbox", :value => "Milk"}
Milk
%br
%input{:name => "option2", :type => "checkbox", :value => "Butter"}
Butter
%br
%input{:name => "option3", :type => "checkbox", :value => "Cheese"}
Cheese
%br
這是HAML文件 我'm using coffeescript