PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Displaying a site inside a frame
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Opens a new browser window.
Example
//Opens a new window
BrowserOpen("http://www.windev.com")
// Displays a page in new resizable browser
// whose dimensions are 500x400
PageName is string = FolderWeb() + "page.html"
BrowserOpen(PageName, ...
"NEWBRW", ONDimension + ONScrollBar, 500, 400)
Syntax
<Result> = BrowserOpen(<Page Address> [, <Window Name> [, <Options> [, <Width> [, <Height> [, <Horizontal Position> [, <Vertical Position> [, <Javascript Parameters>]]]]]]])
<Result>: Integer
Identifier of the browser window opened. This identifier can be used by BrowserClose to close this browser window.
Note: This identifier corresponds to a Javascript object that can only be used with BrowserClose. Its value cannot be viewed like a standard integer.
<Page Address>: Character string with quotes
URL address of the page that must be displayed in the new browser window. If this parameter corresponds to an empty string (""), a blank page is opened ("about:blank").
<Window Name>: Optional character string with quotes
Name of the new browser window. This parameter allows you to redisplay a page in a browser window with the same name (if several browser windows are opened on the computer of the Web user).
This parameter can also correspond to a frame or to the alias of an iFrame control.
<Options>: Optional Integer constant (or combination of constants)
Parameters of the new browser window:
ONLocationThe address bar will be displayed.
ONScrollbarThe scrollbars will be displayed.
ONFull
(Default value)
The window of new browser will include all the options (equivalent to the combination of all constants).
ONResizableThe window of new browser will be resizable.
ONLinkThe link bar will be displayed.
ONMenuBarThe menu bar will be displayed.
ONSatusBarThe status bar will be displayed.
ONToolbarThe toolbar will be displayed.
ONSimpleThe window of the new browser will be a simple window (no combination of constants).
<Width>: Optional integer
Width (in pixels) of the new browser window. Can correspond to the Default constant.
<Height>: Optional integer
Height in pixels of the new browser window. Can correspond to the Default constant.
<Horizontal Position>: Optional integer
Horizontal position (in pixels) of the new browser window in relation to the top left corner of the main screen. Can correspond to the Default constant.
<Vertical Position>: Optional integer
Vertical position in pixels of the new browser window in relation to the top left corner of the screen. Can correspond to the Default constant.
<Javascript Parameters>: Optional character string
Other Javascript parameters that must be used when opening a new browser if <Target> is set to "_blank".
Remarks

Displaying a site inside a frame

To display an Internet site in a frame of a WEBDEV site, use the following code:
BrowserOpen("http://www.windev.com", <FRAMENAME>)
where <FRAMENAME> is the name of the frame where the site must be displayed.
Components
WEBDEV - Browser code WDJS.DLL
Minimum required version
  • Version 9
Comments
abrir pagina
//PROGRAMA PRINCIPAL
// WL CLICK ONCLICK OF BTN_ALTERARCHAMADO (BROWSER)
///ONDimension +
BrowserOpen("","MyPage",ONScrollBar+ONToolBar,800,500,400,100)
ChangeTarget("MyPage")

// CLICK OF BTN - (SERVER)
IF TableSelect(TABLE_QRY_atendimento_ligacoes)=-1 THEN RETURN

PageDisplay(PAGE_CHAMADO_ALTERAR,TABLE_QRY_atendimento_ligacoes.COL_Atendimento_ligacoesID)

// blog com vídeo e exemplo
http://windevdesenvolvimento.blogspot.com.br/2017/11/aula-1280-webdev-28-browseropen.html

https://www.youtube.com/watch?v=bJ-2tfCwO0U





De matos
Nov. 01 2017