区域刷新,jQuery
Region refresh, jQuery
我有关于上传图像数据的经典报告。在同一页面我上传照片和更新经典报告。问题是当我刷新经典报告时 jQuery 选择器(动态操作)不起作用。 Table 在经典报告中有列 REMOVE_LINK
,值为 NULL
。该列有 link,目标是:javascript:void(0);
,属性:data-id="#ID#" class="remove t-Icon fa fa-trash delete-irrow"
。动态操作选择类型为 jQuery Selector
,选择器为 #REPORT_PHOTOS .remove
。我尝试使用 JavasSript 代码 $('#REPORT_PHOTOS').trigger('apexrefresh');
和刷新操作刷新该区域。结果相同 - 经典报告刷新后,links 不起作用。问题出在哪里?
您需要将动态操作的事件范围设置为动态。
Event Scope
Select the scope of the event, which determines when the event is evaluated a second or successive time.
Available options include:
Static (default)
Binds the event handler to the triggering element(s) for the lifetime of the current page, but is no longer bound if a triggering element is updated via Partial Page Refresh (PPR).
Dynamic
Binds the event handler to the triggering element(s) for the lifetime of the current page, irrespective of any triggering elements being recreated via Partial Page Refresh (PPR).
Once
Binds the event handler to the triggering element(s) only once. The dynamic action is not triggered again until after the page has been fully refeshed.
我有关于上传图像数据的经典报告。在同一页面我上传照片和更新经典报告。问题是当我刷新经典报告时 jQuery 选择器(动态操作)不起作用。 Table 在经典报告中有列 REMOVE_LINK
,值为 NULL
。该列有 link,目标是:javascript:void(0);
,属性:data-id="#ID#" class="remove t-Icon fa fa-trash delete-irrow"
。动态操作选择类型为 jQuery Selector
,选择器为 #REPORT_PHOTOS .remove
。我尝试使用 JavasSript 代码 $('#REPORT_PHOTOS').trigger('apexrefresh');
和刷新操作刷新该区域。结果相同 - 经典报告刷新后,links 不起作用。问题出在哪里?
您需要将动态操作的事件范围设置为动态。
Event Scope
Select the scope of the event, which determines when the event is evaluated a second or successive time.
Available options include:
Static (default)
Binds the event handler to the triggering element(s) for the lifetime of the current page, but is no longer bound if a triggering element is updated via Partial Page Refresh (PPR).
Dynamic
Binds the event handler to the triggering element(s) for the lifetime of the current page, irrespective of any triggering elements being recreated via Partial Page Refresh (PPR).
Once
Binds the event handler to the triggering element(s) only once. The dynamic action is not triggered again until after the page has been fully refeshed.