Posts by Zero • 26 points
5 posts
-
0
votes3
answers57
viewsA: I cannot return data from an asynchronous Ajax
Using César’s answer, if you want to save the data in a variable you can use Promise like this: function GetDropdownList(table) { return new Promise((resolve,reject) => { $.ajax({ type: "POST",…
-
1
votes1
answer74
viewsA: How to display hidden div after page reload?
Use try to use this... <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div class="show-div-20sec" style="display: none;"> <p><a…
-
-1
votes3
answers1175
viewsA: Background image problem in div
Try to use height: 100vh; Instead of height: 100%; Could send your css?
-
0
votes1
answer94
viewsQ: without quotation marks enough to pass a javascript html string
I am facing a difficulty, I have to create tags, which will have a function when clicking, the problem is that, I have to pass a string in the element in html ie, when calling the function and pass…
-
0
votes0
answers32
viewsQ: xmlhttp.open, does not accept subfolders
I have a problem. I do the Xmlhttp request and everything works fine, however, when opening the json it does not load, because it is inside a folder, I try as follows ("GET", "data/data.json",…