Posts by Maíícon Ferreira • 131 points
13 posts
-
0
votes2
answers33
viewsA: How do I pass this string in number to compute in another array?
When you work with arithmetic operations you have to give some attention to certain points. See: var alunos = new Array(); alunos[0] = new Array(); alunos[0] [0] = "Aline dos Santos"; alunos[0] [1]…
javascriptanswered Maíícon Ferreira 131 -
1
votes1
answer1304
viewsA: How to do Onclick action in Select Option
To handle redirects in Selector(select) you can use the "onChange" event for this, see: document.getElementById("selector").onchange = function(){ location.href = this.value; } <select…
-
0
votes1
answer278
viewsA: Browse json multidimencional javascript
Remember that these are json’s inside arrays:…
-
0
votes3
answers1299
viewsA: How to check if the file is an Input type="file" image
Yes, including, you can add in HTML too if you don’t know: <input type="file" accept="image/*"/> I’ll give you the basis, then just implement conditions: function validation(){ var file =…
-
0
votes2
answers399
viewsA: How to Make a Mask for Field Validation
See if this can help you: Javascript: var input = document.getElementById("input"); var logger = document.getElementById("logger"); var $array = ["'0.50'","'0.60'","'0.70'"]; var i; function…
-
0
votes2
answers168
viewsA: javascript dropdown class in toggla
I think I can help you! Here’s an example code of what you might be wanting: HTML: <div class="menu2"> <ul class="menu"> <li><a href="#">Home</a></li>…
-
0
votes3
answers127
viewsA: Problem in the require
all right? To avoid these conflicts, use the PHP array information: DOCUMENT_ROOT! This variable will return the main path of the WWW/HTDOCS/WEB server Example: <?php $_DIR =…
phpanswered Maíícon Ferreira 131 -
0
votes1
answer38
viewsA: Doubt in Javascript
Your question is a little crooked but I think I understand, correct me if I’m wrong. You are asking if, adding an attribute to an element using DOM is common(valid, accepted, normal, etc)? Well,…
javascriptanswered Maíícon Ferreira 131 -
1
votes2
answers655
viewsA: Call the controller via javascript or ajax and insert in table Asp.net mvc
Look, I think this is not possible! It could be inserted in SQL files and tables. But in ASP.NET table, I do not know...
-
1
votes2
answers189
viewsA: Tooltip when it’s deactivated?
here is a function that can help you: Script(Javascript, no jQuery): var button = document.getElementById("teste"); var checkbox = document.getElementById("termos"); var div =…
-
0
votes1
answer129
viewsA: Save client info for next checkouts, but without having to store card number? (Using API)
Since you do not want to keep confidential information of your customers on your SQL server, you can use Cookies to do so. If you don’t know what Cookies are: [Briefly] Cookies are data saved when…
-
4
votes1
answer489
viewsA: Dynamically recover all GET from URL
you can use the Location.search function to get the full query: var query = location.search; If you want to manipulate it, there is already an answer in topic answering this: How to capture…
-
0
votes3
answers1453
viewsA: $. getJSON - How to store responseJSON in a Variable?
I think it might help you, I’ve rebuilt your function and I think it’s pretty risky. But anyway, here it is: var jsonResult; function criarDicionario(lang){ this.lang = lang; this.dicio =…