Posts by brunoapimentel • 116 points
4 posts
-
4
votes1
answer4690
viewsA: Object as parameter in a Javascript function
The answer you found seems appropriate. Since javascript does not use types for function parameters, you will need to validate whether the parameter you passed is actually an object: options =…
-
1
votes1
answer208
viewsA: Submit text and image at the same time
It’s simple. Change your form header to <form method="post" action="" enctype="multipart/form-data"> Add the input that will upload the image: <input id="Cover" type="file" name="Cover">…
-
1
votes2
answers307
viewsA: pass php value to js giving error
Well, if I understand your question correctly, you need to take the data that comes from the back end and use it in a js function, right? One option is to generate a JSON with this data and…
-
1
votes1
answer2653
viewsA: Animated Slider in Pure Javascript
Well, I’m going to post a simple example, which is for study purposes: One of the ways to solve the problem is to imagine that we have several images that will go through a "window", which is…