Hi All,
Right now I can refresh a page by pressing F5.
What if I want to create a button, when a user click on it, it will
refresh a page.
#content
%h2
/== Your #...@book_marks.length} bookmarks
== Play Responsibly
%p= @lotto.printLottery
%form{:method => "post", :action => "/"}
/ input{:type => "hidden", :name => "_method", :value => "post"}
%input{:type => "submit", :action => "/refresh/", :value => "Get"}
I had the code above, but it's not working. I am using this with
Sinatra web framework.
Thanks,
Luan
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.