Unable to Fire pagebeforecreate

Unable to Fire pagebeforecreate

I'm having a problem getting the my pagebeforecreate event to fire. I have the following code:

  1.  $(document).ready(function () {
  2.         <Code....>
  3.                 $('#login').live('pagebeforecreate', function (event) {
  4.                     alert('Page inserted into dom');
  5.                 });

  6.                 $('#login').live('pagebeforeshow', function () {

  7.                     if (datatimer != null || datatimer != 'undefined') {
  8.                         clearInterval(datatimer);
  9.                     }
  10.                     //clear the fields here before the page is shown.
  11.                     $('#fname').val('');
  12.                     $('#passwd').val('');
  13.                     sessionStorage.clear();
  14.                 });
  15.  <Additional Code...>
  16. });

  Is there a conflicting issue between the pagebeforecreate and pagebeforeshow? Does anyone know? The pagebeforeshow function works fine.