Questions tagged as 'javascript'

2
answers

How do I display a YouTube video on a Panel in ExtJS?

I would like to display a YouTube video on a Panel in ExtJS. It would be possible? Can someone give me a hint?     
asked by 11.12.2013 / 18:09
3
answers

Should not this function return a bool instead of a Pizza?

I'm studying react and I came across the following expression: {this.state.text.split(' ').map((word) => word && '
asked by 26.09.2018 / 19:26
3
answers

Linking resources, such as CSS, within the structure of a site

I'm a beginner and I'm having trouble linking scripts, CSS, and images. I have the following structure in my site folders, just an example: - Pasta Raiz --cadastro --- cadastro.html --images --- icon.png --script...
asked by 24.06.2014 / 21:03
2
answers

Word Filter

How can I make a Javascript word filter? For example, I have a div and within that div I do not want to have certain words that are inside an array: var badWords = ['teste', 'teste1', 'oteste2']; How do I check if these words...
asked by 09.07.2014 / 19:35
2
answers

Disable css and image cache in browser

Recently, I developed a project that had some drastic changes in its design, mainly on the side of css and images. In this, accessing it on some machines, I verified that to view your new design it was necessary to clear the cache (ctrl + f5). H...
asked by 19.07.2016 / 13:47
2
answers

Format number for only 2 digits

I have a script that returns: 4.499999999999999 But I wanted it to return only 4.4 or round to 4.5, so I do not want it to be more than 1 digit after the comma, how to do it?     
asked by 19.03.2015 / 22:41
2
answers

How to make the jQuery toggle function in pure javascript?

I discovered a little time and found the toggle function very interesting using functions: $('body').toggle( function(){ alert('A') }, function(){ alert('B') } ); (In the example I put only 2 functions, I wanted...
asked by 11.02.2014 / 22:37
3
answers

What is the advantage of working with websql?

I was reading about webSql and I had this doubt, what is the advantage of working with webSql since it runs client-side?     
asked by 05.02.2014 / 11:58
3
answers

Background image 100%

I've always had this curiosity, how to leave the background image 100% according to the monitor (We all know that there are several measures). So I was told that it would be a script in JS or jQuery, I do not remember very well, and it worked as...
asked by 16.10.2014 / 03:02
5
answers

Disable a submit and Activate only when the minimum radio buttons is selected

I tried to make a function but it came out with some strange bugs, it has to be more or less this script, but enable button only if 5 or more radio buttons are marked. Remembering that my form is huge, it is a questionnaire that has radio grou...
asked by 27.02.2014 / 18:28