Re: How to Show a Div using Javascript

2020-10-08 Thread Thiago H. de Paula Figueiredo
On Mon, Oct 5, 2020 at 9:28 AM marwa hussein wrote: > On Mon, Oct 5, 2020, 2:22 PM Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > > > On Sun, Oct 4, 2020 at 8:37 AM marwa hussein > > wrote: > > > > > Hi Thiago, > > > > > > > Hello! > > > > > > > Thanks a lot for your reply it

Re: How to Show a Div using Javascript

2020-10-05 Thread marwa hussein
On Mon, Oct 5, 2020, 2:22 PM Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Sun, Oct 4, 2020 at 8:37 AM marwa hussein > wrote: > > > Hi Thiago, > > > > Hello! > > > > Thanks a lot for your reply it works fine but the problem is using this > > line of code in beginRender()

Re: How to Show a Div using Javascript

2020-10-05 Thread Thiago H. de Paula Figueiredo
On Sun, Oct 4, 2020 at 8:37 AM marwa hussein wrote: > Hi Thiago, > Hello! > Thanks a lot for your reply it works fine but the problem is using this > line of code in beginRender() function shows the "div" when the page is > loaded. but What I want is to show the div after a button is pressed.

Re: How to Show a Div using Javascript

2020-10-04 Thread marwa hussein
Hi Thiago, Thanks a lot for your reply it works fine but the problem is using this line of code in beginRender() function shows the "div" when the page is loaded. but What I want is to show the div after a button is pressed. When I used this line of code in the onSubmit() button function it gives

Re: How to Show a Div using Javascript

2020-10-03 Thread Thiago H. de Paula Figueiredo
Hello! @Inject private JavaScriptSuport javaScriptSupport; void beginRender() { javaScriptSupport.addScript("document.getElementById("div1").style.display = '';"); } On Sat, Oct 3, 2020 at 10:06 AM marwa hussein wrote: > Hello all, > I am new to Tapestry and to Web development in general but

How to Show a Div using Javascript

2020-10-03 Thread marwa hussein
Hello all, I am new to Tapestry and to Web development in general but I have to implement a simple web application for my research. I use a div that when loading the page I need to hide it, so I use this line: The div contains "inside it" a grid that will contain some elements after a "load"