Close a page and open a new one ?

I have a very basic doubt. When I click on ‘Close’ button that page should unload and a new page should get loaded
How to specify the url of the new page to be loaded ?
Please reply.

Example
I have two html pages
ABC.html and PQR.html.
When I click on a ‘close’ button in ABC.html. That page should close and PQR.html should open.
How to do this…?

is the ABC.html page loaded into an iframe:

{ view:“iframe”, id:“mypage”, src:“ABC.html” },

?
If it is, you need to call define() method as follows:

parent.$$(‘mypage’).define(“src”, “PQR.html”);

define is used to redefine config property.

No not defined in iframe.

Its just that I want to know how to navigate between TWO DIFFERENT HTML pages written in DHTMLX Touch.

Example
For my application,
First will be the login page. After clicking on “Submit”, how to navigate to the next page which will show file list. I have created 2 .html files

  1. Login.html
  2. fileList.html

Please reply.
Thank you.

TWO DIFFERENT HTML pages written in DHTMLX Touch.

Are you using dhx.ui({}); (our components) in your page. If you are, we need the complete sample to reproduce the problem.

Sorry I didn’t understand your reply.
Yes I am using dhx.ui{}

So, we need a sample to recreate the problem locally.

Actually the problem is similar to the situation mentioned below.

Every application has a login page. When the user clicks on submit, a new html page should open and the previous one should open.
Both the html pages are created separately.
Its like automatically changing the url in the address bar and loading a new page.
Please help. Thank you.

The problem is solved. It was a simple thing. Just didn’t realize.
Thanks.

Hello Teddy,

Could you please explain how this issue got resolved or please share the code used?

I am primarily looking for the same function, button click from Page 1 should direct me to Page 2.html

Hello

If you have two pages and want to redirect to new page on a click,
I used the following code which is very basic code of javascript

var newpage ="./ABC.html";
parent.location=newpage;

The above address is relative address. U can hard code by putting absolute address also.

This has got nothing to DHTMLX TOUCH. When I posted this query, I was doing web based programming for the first time. I didn’t know anything about javascript also. So I posted this query.

Hope this helps you :slight_smile: