Displaying 3 results from an estimated 3 matches for "create_button".
2009 Feb 09
0
submit_to_remote change from 2.1 to 2.2 now gives wrong number of arguments
Hi,
this snippet
<%= submit_to_remote(''create_button'', ''Add Phone'',
:submit =>
"phone_form",
:url =>
send( "#{@phonable_type.to_s.downcase.singularize}_phones_path",
@phonable_id),...
2008 Jun 07
2
Rails integration tests without stories
I''m looking to drive the development of a rails app that does nothing
but serve a JSON API. All of the models are well tested elsewhere, so
I needn''t worry about that. My only immediate goal is to be able to
fire off requests to a path and check the returned JSON.
I''ve tried a number of methods for this today, without being
particularly enthused about any of them.
I
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...if (p) {
+ process_key(p);
+ }
+ return;
+ }
+
+ if (p=="") {
+ alert("The clipboard seems to be empty");
+ return;
+ }
+
+ if (confirm('Click OK to "type" the following into the terminal:\n'+p)) {
+ process_key(p);
+ }
+}
+
+
+function create_button(label,fn) {
+ var button=document.createElement("A");
+ var button_t=document.createTextNode("["+label+"] ");
+ button.appendChild(button_t);
+ button.onclick=fn;
+ return button;
+}
+
+function create_img_button(imgfn,label,fn) {
+ var button=document.createElem...