[4.0.4] Calling functions in the event Handler onLoad

Posted by Meryk on 05-Jan-2016 03:53

Hello,

I have a function let's call it applyOnLoadChanges(), that I am calling on load of a view page, from the properties of the page, in the event handler "onload".

I just came across a strange behavior : When I keep refreshing that page, sometimes the function applyOnLoadChanges is not called. More specifically, it is called one time in two.

Another test, is when I call applyOnLoadChanges on document.ready on that page instead of calling it in the event "onload". In that case it is always called correctly, but when we click next or previous (to navigate through records ), the function is sometimes not called.

Ps : this function is hiding a button and changing the label of another one.

1st Question : What is the difference between calling code inside of document.ready and in the event handler 'onload'.

2nd Question : How can we make sure calling the function in the event handler onLoad will run it properly every time we refresh the page ? As we don't want to call it on document.ready.

Thanks,

Meryem

Posted by Mohammed Siraj on 06-Jan-2016 12:49

We are discussing this issue further as part of this post:

https://community.progress.com/community_groups/rollbase/f/25/t/22237

This thread can be considered as closed.

All Replies

Posted by Mohammed Siraj on 06-Jan-2016 12:49

We are discussing this issue further as part of this post:

https://community.progress.com/community_groups/rollbase/f/25/t/22237

This thread can be considered as closed.

This thread is closed