This is beginning to annoy me!
I've got a webpage that's a grid of sections. Each section has a preview view and an edit view which contains a form. When I have an edit view open, all other sections display the preview.
Now, when I move away from a section to another I have it run a javascript function that updates the relevant preview based on the new information in the form. This works fine. However, when I try to run this function when the page loads initially, I get errors stating that it cannot find the form fields in question. Now this would make sense because the forms are created via an ajax call, however the update function is getting run after the ajax call, I've tried a window.setTimeout after the construction of the page before trying to update the previews and I get the same.
Anyone experienced similar with this? Any ideas?
Thanks![]()


LinkBack URL
About LinkBacks
Reply With Quote