Window + Form no more?

hi,

I was looking for how to attach a Form directly into a Window and found the Window method “attachForm” in your samples ([url]http://www.dhtmlx.com/docs/products/dhtmlxForm/samples/05_integration/01_window.html[/url]).

However, I get a javascript error if I attempt to use it and if I browse the Window API methods, it seems that this method no longer exists.

Is this true and if so, is it even possible to attach a form to a window anymore or would I have to use “attachUrl”?

Hi
Please, make and attach completed demo to reproduce your issue:
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Before I start to build demos etc. can you please confirm whether or not the function attachForm still exists for the dhtmlxWindow module?

Because the API documentation doesn’t show it while your own samples are using it.

This method by some reason wasn’t descripted in our docs. We’ve corrected it:
docs.dhtmlx.com/doku.php?id=dhtm … attachform

when i attach Form into windows, not find any error.
but when i attach the same Url into windows, i getting a problem.

example : I create 2 menu,
menu1 > create the first windows and attach url “aaa.html”
menu2 > create the second windows and attach url “aaa.html”

The second windows displaying a blank page,
but in the first window, the page is joined at the bottom of window. :slight_smile:

Please, make and attach completed demo to reproduce your issue:
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Please note that this mrmind fellow is in not relation to me and I’m not sure why he decided to dump his issue into my post.

Aidal,
ok, i noticed

First to aidal, I’m so sorry if my post in wrong place.
I’m just a newbie & need to learn. :wink:

In the last of your post, is like what i doing (attachURL)
so if you’re not have any problem with it… i hope you can share with me the solution :slight_smile:

To… Darya.
I attach this.
Completed_Demo.rar (507 KB)
please correct me Ok… :wink:

It occurs because during opening the second window script looks for the container in which it is necessary to place a form. And, as in an open window this container already exists, the second form tries to join the same container.
Use iframe or attach different files with form.

Thank’s Darya…

I used a single file to save a space.
what about Iframe ? Before, I think attachUrl is an iframe. :smiley:
how to do, can you give me a sample with my complete demo ?

Send you these 2 files with changes.
Replace it.
Pay attention on INCLUDING library in the file ‘sample.html’
html_files.rar (1.71 KB)

Very very thanks Darya… It’s nice. :smiley: :wink: