Questions tagged as 'javascript'

2
answers

Ajax parameters are coming as undefined

I would like to say that I researched the forum and found some similar questions, but no answer solved my problem. Follow my question: Doubt: I'm trying to delete a notification by ajax, but the error is occurring. The variables project_...
asked by 23.05.2018 / 19:11
1
answer

Run php within a javascript condition

Is it possible to run php within a javascript condition? Example: <script> if(variaveljs==2){ <?php $variavelphp=20; ?> } </script>     
asked by 08.06.2018 / 11:53
1
answer

Clear select element with JavaScript

I have this field select: <div class="control-group"> <select runat="server" onclick="ClearOptions(this);" name="txtpesquisa" id="txtpesquisa" class="form-control.selectize-control"> </select> <script>...
asked by 08.05.2018 / 22:45
1
answer

How do I split items and different sub-pages on the same page?

I wanted to split a few different items into subpages , an image of an example. For example, if I click the button 1 it shows the element 1 , if I click the button 2 it shows the > element 2 , but all this without page change ,...
asked by 09.05.2018 / 21:13
1
answer

Print list of data json

I need to get the data from a json file and with that data generate a list corresponding to the category that it belongs to for example if it is the technology category I need to generate a list of all the items that are of that category, if it...
asked by 23.10.2018 / 03:16
1
answer

Regex for repeated numbers in the CNPJ

I have the following regular expression: regex:/^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/ I can validate for this, but not for repeated numbers. I want to apply within this regex, a form that does not accept repeated values, for example:...
asked by 01.11.2018 / 14:11
1
answer

Nested Loops and Increment

I am studying JavaScript by code house book and has a challenge involving nested loops, in which I have to draw this: * ** *** **** ***** ****** ******* Using this code: for(var Linha=0;Linha<10;Linha=Linha+1){ for(var Coluna=...
asked by 10.11.2018 / 21:18
3
answers

Request ajax - Query parameter

In a page I have this field filled with the value "SP" <input id="campo" value="SP"> In php I have parameter <?php echo $_POST['estado']; ?> To process this field via ajax I would use var valor=$('#campo').val(); in th...
asked by 12.11.2018 / 16:22
1
answer

Strapi freezes when selecting the database

Today I decided to venture with CMF Strapi , I followed several tutorials, but it always freezes in the select part the bank, even I starting the banks. Mongostarted When the Strapi stops working Does anyone have any idea why this...
asked by 06.11.2018 / 01:25
1
answer

Save input data without submitting

My problem is that I am doing a business registration, in this register I have the field Activity branch that has a combo with the branches of activities registered in the database, the problem is when we have to include a new branch of activiti...
asked by 14.11.2018 / 12:25