PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB21] Width/height of the window
[WB21] Width/height of the window
Iniciado por guest, 28,jun. 2016 08:05 - 1 respuesta
Publicado el 28,junio 2016 - 08:05
Is it possible to know width/height of the window object? For example using jQuery. I tried something jQuery("window").width() but get null in result. Do jQuery can work with window/document or only with controls?
Publicado el 28,junio 2016 - 08:13
For now I've found this solution. There are some zones on my page and one of them is ZONE_Footer that is last on the page. And I did so:

WindowWidth = jQuery("#" + ZONE_Footer..Alias).width() ZoneOffset is object dynamic = jQuery("#" + ZONE_Footer..Alias).offset() WindowHeight = ZoneOffset.top + jQuery("#" + ZONE_Footer..Alias).height()
I think the result value must be corrected with margin/padding of zone/page.