0

Por ejemplo con javascript identificar si el tamaño dela pantalla es mayor a 992 px, y si es mayor no mostrar un textBlock Ejemplo
Textblock1.Caption='<script> if (screen.width>=992){'+ TextBlock2.Visible=true + '}</script>'

Me marca un error spc0009:Type mismatch in expression: ' if (screen.width>=992){'+ TextBlock2.Visible.(web panel 'abcd'...)'

De antemano gracias

1 respuesta 1

1

Con este código lo puedes lograr:

Textlock1.Caption = "<script> if (screen.width>=992){document.getElementById(" + 
'"TEXTBLOCK2"' + ").style.display = 'none';}</script>"

Siempre suponiendo que el textblock que quieras ocultar se llame Textblock2 en Genexus. De otra forma, debes buscar el ID que se le asigna al elemento HTML que quieras ocultar.

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.