Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ivaylo vasilev on Aug 09, 2008 13:32
open dhtmlx forum
How to use my HTML or other code

Hello , sorry fo my bad english i have one problem , my atach URL and OBJECT not work , where i wrong.

This is code...
-------------------------------------------------------------------------------------------------------------------------------

<html>
<head>
    <title>test</title>
    
    <link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxwindows.css">
    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxwindows_aqua_dark.css">
    
    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxwindows.js"></script>
</head>
<body>

<script>
    var dhxWins = new dhtmlXWindows();
    dhxWins.enableAutoViewport(true);
    dhxWins.setViewport(0, 0, 900, 5000);
    dhxWins.vp.style.border = "#909090 1px solid";
    dhxWins.setImagePath("../../codebase/imgs/");
dhxWins.setSkin("aqua_dark");

    
    var w1 = dhxWins.createWindow("w1", 10, 10, 320, 240);
    w1.setText("dhtmlxWindow");
    w1.button("close").disable();
    w1.button("help").show();
dhxWins.window(w1).attachURL("http://www.google.com/");
    
    
    
var w2 = dhxWins.createWindow("w2", 200, 200, 320, 240);
    w2.setText("dhtmlxWindow");
    w2.button("close").disable();
    w2.button("help").show();
dhxWins.window(w1).attachObject(test);
</script>
<div id="test"> Test Object </div>

                    
                
</body>

-------------------------------------------------------------------------------------------------------------------------------------------------

Thanks all
Answer posted by Support on Aug 11, 2008 06:37
>>dhxWins.window(w1).attachURL("http://www.google.com/");
must be
  dhxWins.window("w1").attachURL("http://www.google.com/"); 
or 
   w1.attachURL("http://www.google.com/");

same for attachObject