FAQ: When I checked [Use Ajax for Record Transitions] or "Edit with dialog", the script stopped running
## Answer
Please use "$p.events.on_editor_load".
---
## Overview
If you check the following column, the script that is executed once after HTML is loaded (hereafter referred to as "script") may not be executed.
|No.|Target column|Example of the problem|
|:---|:---|:---|
|1|"[Use Ajax for Record Transitions](/en/manual/table-management-ajax-transfer)" in [Manage Table]-[Editor]|If this check is enabled, the script will not be executed when you change records using the "< Previous" and "> Next" buttons on the record editing screen.|
|2|"Edit with dialog" in [Manage Table]-[Grid]|If the check is enabled, the script will not be executed when a record is selected on the list screen.|
There are two ways to display the record editing screen in Pleasanter, and if you check the above columns, the record editing screen is displayed in the following method 2. Therefore, the script will not be executed because Ajax is used.
|No.|Display method|
|:---|:---|
|1|The record edit screen is displayed by requesting a URL through user operation and loading HTML.
|2|The record edit screen is displayed by updating some HTML through Ajax using JavaScript through user operation.
The above events can be avoided by writing a process in the [$p.events.on_editor_load](/manual/script-events-on-editor-load) event handler.