Specifically mentioning IE in my title because my code functions correctly on Chrome. The "Maintenance" view I have is responsible for creating, editing, and deleting. The form is located in a partial view named "_MaintenanceForm" with its own GET/POST methods for form submission. If you'd like to view the form, you can access it here. I apologize for using Pastebin instead of inline code blocks due to character limit constraints.
The form is identified by the id #maintenanceForm
. Instead of utilizing an AJAX call to submit the form, I make use of jQuery function $("#maintenanceForm").submit();
to avoid passing all fields as data. You can view the JavaScript code for the Maintenance page here.
Although I am aware that the .submitForm
click function is redundant since it is defined twice, I had initially set it as a separate function causing issues, hence defining it anonymously inline. Once I resolve the IE compatibility issue, I can focus on code cleanup.
The Maintenance view is straightforward, represented by a
<div class="maintenance-form"></div>
where the MaintenanceForm partial is displayed using the first AJAX call. Link to my controller methods can be found here. The problem arises in Chrome where the MaintenanceForm POST method is followed by a call to the Maintenance GET method, resulting in view re-rendering. Subsequently, the MaintenanceForm GET and SearchTable2 methods are recalled through AJAX. In IE, the Maintenance GET method is executed, but the AJAX calls are not triggered causing the form not to refresh. This forces a manual page refresh to view the changes made.
While everything functions correctly in Chrome, the issue persists in IE, indicating a potential compatibility problem that I am struggling to resolve. Any assistance is greatly appreciated, and feel free to let me know if providing additional code would aid in troubleshooting!