Can I use scriptlets inside the success callback of $.ajax() ?
Hi,
I am migrating an existing web application, that uses JSPs, javascript and scriptlets heavily, to use JQuery to ajaxify certain form.submits. The application mainly has search page (with search results in a table), then upon clicking any record, it navigates to view record page and from there modify record page, etc., so here we are trying to bring the view and modify record pages in separate dialogs so that the user still remains in the search results page. In the existing view and modify pages, there are some scriptlets and onload js functions that are called on body onload function.
When I moved the view and modify pages to use Jquery dialog and jquery ajax functions, the main setback was with those onload js functions which accessed some variables and objects computed in the scriptlets on the view and modify page.
My query is can i use scriptlets inside the success callback functions, or is there a way i can mimic the existing behavior in the callback functions.
Please advise.
Thanks
Learner.