Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
John Gondek: "Your software is amazing. I consider myself a novice at PHP and JS and with your software I have a web page that is truly fantastic. Thank you so much ".
Olivier Auverlot: "At my work (a universitary computer research laboratory), I'm alone to create all applications and databases. I don't know how I could do all the work without it. It's really a very productive software. I can focus on the database schemas and create quickly the user applications with a minimal amount of code to maintain".

More

Add your opinion

PostgreSQL PHP Generator online Help

Prev Return to chapter overview Next

OnBeforePageLoad

This event occurs before page loading. It allows you to declare functions and global variables to be used in other client-side events.

 

Example:

To get the details of the first master record expanded on opening of a certain page of the generated application, define the expandFirstDetail function within the OnBeforePageLoad event handler as follows:

 

window.expandFirstDetail = function() {

  var $firstExpandDetailsButton = $('a.js-expand-details').first();

  if (($firstExpandDetailsButton.length > 0) &&

   (eventData = $._data($firstExpandDetailsButton.get(0), "events")) &&

   (eventData.click))

  {

    $firstExpandDetailsButton.click();

    $(window).scrollTop(0);

  }

  else {

    setTimeout(expandFirstDetail, 100);

  }

}

 

This function can be called then within the OnAfterPageLoad event handler.



Prev Return to chapter overview Next