Unable to Fire pagebeforecreate
I'm having a problem getting the my pagebeforecreate event to fire. I have the following code:
- $(document).ready(function () {
- <Code....>
- $('#login').live('pagebeforecreate', function (event) {
- alert('Page inserted into dom');
- });
- $('#login').live('pagebeforeshow', function () {
- if (datatimer != null || datatimer != 'undefined') {
- clearInterval(datatimer);
- }
- //clear the fields here before the page is shown.
- $('#fname').val('');
- $('#passwd').val('');
- sessionStorage.clear();
- });
- <Additional Code...>
- });
Is there a conflicting issue between the pagebeforecreate and pagebeforeshow? Does anyone know? The pagebeforeshow function works fine.