Problem in tabbar loading iframe with dhtmlxTree

Hi,

I have a tab which loads into an iframe (‘Landing Pages’) - with tree (and other dhtmlx) contents in it. The iframe has a tag to initialize the tree. The iframe has the tree script references in it.

Before it even gets to the init_dhtmlx() function, it gives the following error:

dhtmlx is not defined - in dhtmlxtree.js (line 248)

Can you help? The test page is at:
bizconnector.com/sf/tab/msg/ … ction.html

  • just click on the Landing Pages tab

iframe content:

Create or edit a landing page.   (more...)
				<div id="toolbarObj0"></div>
				

				</div>
			</td>
		</tr>

	</tbody>
</table>

Thanks

Colin Goldberg

HI,

dhtmlx is not defined - in dhtmlxtree.js (line 248)

it seems that dhtmlxcommon.js is missed. This files needs being inluded before all other libraries.

Thank you. It now works.

So it seems the ordering is important - as dhtmlcommon.js was 4th on the list.

So it seems the ordering is important

Yes, dhtmlxcommon.js must go first. Then the main component library - it means that dhtmlxtree_ed.js can be included after dhtmlxtree.js