帮忙解释一下下面这段ruby代码!

[code="java"]
<% form_remote_tag(:url => load_wsdl_soap_services_url,
:update => { :success => 'soap_service_after_wsdl_load' },
:success => "new Effect.Highlight('soap_service_form', { duration: 1.5 });",
:failure => "alert('Sorry, an error has occurred.');",
:loading => "Element.show('spinner')",
:complete => "Element.hide('spinner')") do %>

<div>
    <p style=" margin-top: 0;">
        <%= text_field_tag "wsdl_url", params[:wsdl_url], :style => "width: 550px" -%>
        <%= submit_tag "Preview" -%>
        <%= image_tag icon_filename_for(:spinner), :id => "spinner", :style => "display: none; vertical-align: middle;" -%>
    </p>
</div>

<% end -%>
[/code]

尽量说详细点,谢谢!

查看全部
xxxbt
xxxbt
2011/10/14 12:10
  • ruby
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

0个回复