PDA

View Full Version : LzBrowser.loadURL(myurl) opens in a new page


Bharti
10-20-2008, 09:32 PM
Hi,

I have been using this call LzBrowser.loadURL(myurl) in lps-4.0.7 and had observed its behavior of opening up in the same browser screen in which the application was loaded earlier.

After the code has been migrated to lps-4.1.1 the new behavior being observed is that this call spawns up a new browser tab and the previous tab is blanked out(due to unloading of the app).

Pls suggest what is missing in this call. Before making this call, close() of all views in the canvas is being called. Is there something to do with the way app is being unloaded in lps-4.1.1?

navdeep.mahajan
10-21-2008, 04:34 AM
Bharti, Use LzBrowser.loadURL('URL', '_self'); to open the URL in the same window and Use LzBrowser.loadURL('URL', '_blank'); to open the URL in new window

Bharti
10-22-2008, 01:12 AM
Thanks! It worked for me.

regds,
Bharti