4DAF Object Integration Guidelines

From Daxipedia

Jump to: navigation, search


Adding 4DAF objects to your web page? Here are the guidelines and recommendations to keep in mind.

Contents

[edit] Web page requirements

[edit] DOCTYPE

4DAF objects require the web page to be set in Transitional XHTML mode to avoid issues with browser quirks mode.

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

...

</html>

[edit] Sample web page header

This example is using the default theme XPress.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="dax/themes/basic/basic.css" media="all" type="text/css" title="XPress" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My web page</title>
<script language="javascript" type="text/javascript" src="dax/js/framework.js"></script>
<script language="javascript" type="text/javascript" src="dax/js/dax.js"></script>


[edit] Debugging

Console is your friend. Most of the 4DAF object errors are only displayed within the console without disturbing the user. Call the console with this command:

showDebugger();
Personal tools