search for: ajaxform

Displaying 5 results from an estimated 5 matches for "ajaxform".

2010 Sep 21
1
[PATCH] Fixing a loading issue with the Start On form
...content_for :description do -%> Please choose a Host to start the Virtual Machine. Leave the selection blank to allow oVirt to choose the most appropriate starting host. <%- end -%> + +<script type="text/javascript"> + $(function() { + + $('#start_vm_form').ajaxForm({ + dataType: 'json', + success: afterVm + }); + + }); + + function start_vm_select(selected_rows) { + var selected_ids = new Array(); + for (i=0; i<selected_rows.length; i++) { + load_widget_select(selected_rows[i]); + selected_ids[i] = selected_rows[i].id...
2010 Aug 26
1
[PATCH] Adding the ability to select a Host to start a VM
...n_data', "" %> + <% end %> + </div> + <%= popup_footer("$('#start_vm_form').submit()", "Start Virtual Machine") %> +</form> +<script type="text/javascript"> + $(function() { + + $('#start_vm_form').ajaxForm({ + dataType: 'json', + success: afterVm + }); + + }); + + function start_vm_select(selected_rows) { + var selected_ids = new Array(); + for (i=0; i<selected_rows.length; i++) { + load_widget_select(selected_rows[i]); + selected_ids[i] = selected_rows[i].id...
2010 Sep 01
1
[PATCH 1/3] Adding the VM Pool migration for vms
...ool.name, pool.id] } %> + <% end %> + + </div> + <%= popup_footer("$('#change_vmpool_form').submit()", "Change VM Pool") %> +</form> +<script type="text/javascript"> + $(function() { + + $('#change_vmpool_form').ajaxForm({ + dataType: 'json', + success: function(data, status) { + afterVm(data, status); + if (data.alert) { + $.jGrowl(data.alert); + } + } + }); + + }); +</script> diff --git a/src/app/views/vm/show.rhtml b/src/app/views/vm/show.rhtml index...
2009 Oct 06
0
[PATCH server] new host networking wui
...hosts_selection', + '<%= url_for :controller => "host", + :action => "show" %>', + <%= @host.id %>) + } + } + }; + + // bind form using 'ajaxForm' + $('#host_network_form').ajaxForm(opts); + } + + // handle network select box clicked event + $(".host_network_table_select_net"). + livequery('click', on_network_select_box_clicked). + bind('click', on_network_select_box_clicked); + + // handl...
2009 Feb 22
8
dynamically changing a form from POST/CREATE to PUT/UPDATE
For the life of me I can''t figure this one out, although I can''t find anyone else who''s attempted to do this, and probably with good reason. Context: blog using AJAX What I''m trying to do: when the user initially saves a blog entry, or when auto-saving, I want subsequent saves to not create a new blog entry Why I can''t just reload the partial: -