ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

  • Displaying a site inside a frame
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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", ONResizable + 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.
Remark: 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
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
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:
ONFull
(Default value)
The window of the new browser will include all the options (equivalent to the combination of all constants).
ONLinkThe link bar will be displayed.
ONLocationThe address bar will be displayed.
ONMenuBarThe menu bar will be displayed.
ONResizableThe window of the new browser will be resizable.
ONSatusBarThe status bar will be displayed.
ONScrollbarThe scrollbars will be displayed.
ONSimpleThe window of the new browser will be a simple window (no combination of constants).
ONToolbarThe toolbar will be displayed.
<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 upper-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 upper-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.
Component: WDJS.DLL
Minimum version required
  • 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
01 Nov. 2017