Skip to content

Tag: javascript

Ajax GET Request inside ajax post request?

Is it possible to make an ajax request inside another ajax request? because I need some data from first ajax request to make the next ajax request. I tried to make a script, but i see that instead of GET, my request is POST and i dont know where is the problem.. Answer My code works perfectly, the real proble…

Dynamically append the element through JavaScript Dom

Hers’s question which I need answer Exercises: Level 1 Question 1 I tried to append the child dynamically and get the result vertical not in the compact manner as you will see in the question output when you go to the link You can see the code of both HTML and javascript above!!! Do help with the code w…

Change text in element when another element is hovered over

I have three button elements and depending on which button is hovered over I want the text box to have a diffrent text. When not hovering over the buttons text element should have “See details here”. I would like to have 20 buttons is there a better solution than the one below? Answer Use an objec…

How to create dto of an complex object in NestJs

I’m a beginner at NestJs and I want to create a dto of the following struct: I want to create an API that can return this object using DTOs. I tried the following dto but I got an error in the service provider : I create 3 classes OneSessionResponseDto, SessionsResponseDto, and WeekResponseDto so I can …