Questions tagged as 'javascript'

2
answers

Attributes of heirs with prototype do not appear in Javascript reflection

I have class Animal which has some properties that are enumerable: true , ie, I can list them via reflection using for..in . So I have the class Coelho that has the cor attribute. Since rabbit inherits from Anima...
asked by 26.11.2014 / 17:26
3
answers

javascript function that receives three numbers as parameters and returns the largest

I need to create a function that gets three numbers as parameters and returns the largest one. If two or three are the same, it shows the value equal. I was able to make the comparison, but it is still necessary to show that if it has a repea...
asked by 27.09.2018 / 03:12
1
answer

FullCalendar displayed at wrong time

I'm implementing FullCalendar in a project, I've inserted some Events in the database, and I return them via Json . But by displaying them on the screen, they come with the correct date time, but the display does not show in the c...
asked by 22.05.2017 / 15:47
1
answer

Lock screen lockscreen

Is it possible to create a lockscreen in JS + HTML + CSS with the same functionality as Windows locking? I think of doing this on the web system I'm doing.     
asked by 19.05.2017 / 23:03
1
answer

Jquery how to select a specific element by index

I would like to know how to select a specific element by the position of the index, as I can move through the structure with the next and prev functions, but I'm not finding a way to select an element directly by its position. I'm using Jquery...
asked by 03.07.2014 / 16:27
3
answers

How to leave buttons fixed in floating div

I have in my system a situation similar to the one I gave as an example. A modal bootstrap that can open at any location on the screen. This mode does not occupy the entire screen. Within this modal, some records are listed, depending on the con...
asked by 22.05.2017 / 14:01
1
answer

What is the return order of the attributes of the getelementbyid function?

The w3cschools site has an example of the getelementbyid () function. It turns out that in each browser this example has a different return and I could not find a response from that. Anyone have any idea why this happens? the example is this:...
asked by 20.07.2014 / 05:52
2
answers

Remove element when clicking the link with jquery

I need to make that when clicking the link it removes this tr element that is the link, can someone help me? <?php foreach ($emails as $v): ?> <tr> <td><?= $v->id; ?></td> <td><?= $v-...
asked by 31.03.2017 / 07:19
3
answers

Regex in javascript to match partial URL

I need to write a javascript regex that contains a specific piece of URL, but I'm not able to do it, mainly because it's a url with "/". Example: Any "like" or partial match for "www.url.com/foo" www.url.com/foo/bar/send/123 - true www.url...
asked by 22.03.2017 / 14:54
2
answers

Define dimension in px based on dimension in%

I'm having trouble developing a resize script function resizeImagePreview(){ var imageHolder = document.getElementById("image-holder"); imageHolder.style.width = "25%"; console.log(imageHolder.style.width); imageHolder.style.he...
asked by 04.05.2017 / 23:59