Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Javascript hook: reference field save
#1
I know we have popup hooks for Javascript, but I'm running into something else. I load some content in a custom block through AJAX. When I open a popup on a UI10 field on that record and select a related record through the inline edit (so NOT opening the entire record for editing) There is some AJAX reloading of the page that empties my custom block. Is there a way I can hook into that action so I can reload my content as well?
Reply
#2
inline edit reloads the whole detail view body. it calls DetailView.php again and loads the result into the contents of the detail view div
it then scans that HTML for javascript and executes it.
so you have to make sure that the code your block needs to work is loaded inside the detail view body
Joe
TSolucio
Reply
#3
You're right. I had it in an external JS file in a window.load handler. Moved the init function to the custom block and it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)