KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Docking 4D Ajax Framework objects
PRODUCT: 4D Web 2.0 Pack | VERSION: 1.0 | PLATFORM: Mac & Win
Published On: March 29, 2007

PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack version 1.0

4D Ajax Framework objects can be docked to a webpage or opened in a separate window! Each object supports this behavior by specifying the parentObject parameter.

If you want to anchor the object to the webpage, you would pass <Div> name as the parentObject parameter. For example:

var myDataWindow2= new DataWindow('1', document.getElementById("dax_grid2"), null, null, null, false);

In the above example the Data Window will be docked to the "dax_grid2" <div>

If you want to open the object up in a separate window, you would pass in a null as the parentObject. For example:

var myDataWindow2= new DataWindow('1', null, null, null, null, false);

In the above example the Data Window will be displayed in a moveable window.

For more information, please consult the 4D Ajax Framework Wiki at https://daxipedia.4d.com