Posts by Query • 191 points
14 posts
-
0
votes3
answers165
viewsA: Problem checking if a type any is Undefined in Typescript
If you’re not instantiating your variable inside some ctor, just do it. If Webservice ensures that Object Checkout is instantiated, you will not need any more checks other than whether the…
-
0
votes2
answers197
views -
2
votes0
answers46
viewsQ: Is it safe to store paypal paymentID in the database?
Hello, I would like to ask you if it is a good practice to keep the paypal paymentID after the purchase process? I would like to use this ID to do internal checks but I’m really undecided because I…
-
1
votes2
answers67
viewsA: Problems with Sort() and knockoutjs
Well, the parameter a and b of the Sort is an object, so you must invoke the function as the number is an observable :) Here’s an example working, I hope you realize what the mistake was !…
-
0
votes2
answers312
viewsA: Change class value in jquery at a certain resolution
Let me give you an example that I use a lot when I want boostrap columns to dynamically change, I create a function that helps me get this result function BootstrapCalCss(size) { var colSize =…
-
3
votes2
answers360
viewsA: How to validate in HTML forms
Just put the required in the input tag <form> <input type="text" name="name" required /> <input type="submit" /> </form>…
-
1
votes1
answer48
viewsQ: Create columns with knockoutJS foreach
Good afternoon, I wanted to 'break' a list of items in 3 columns of 4 items in a knockoutJS foreach. That is, at this point the list is filled down and I would like it to be started via jQuery or…
-
1
votes1
answer67
viewsA: Use div class in js validation
HTML: <button class="md-btn validate" data-message="mensagem de alerta" data-pos="bottom-right">alerta</button> Javascript: var mensagem = "<?php echo (isset( $_SESSION['erroLogin'])?…
-
0
votes2
answers428
viewsA: Github - How to create a second Fork from a particular repository?
Em made you create a Fork, why don’t you create a branch in the same repository instead of a Fork, preserves all previous commits, then you can merge what you want with the master. Edit: Removed the…
-
2
votes2
answers352
viewsA: How to receive the view model in a GET request Webapi?
For those who have doubts, to solve this problem, I decided to abandon the Restful of the API and specify actions within them, I use gets, however in the specific Razor on Url.Route to action and so…
-
1
votes1
answer24
viewsQ: Iterate collection of objects within another
Good, I have a json that I wanted to iterate but within it there is another that I also wanted to iterate var json = { "categories":[ { "id":1, "name":"Best Seller", "childs":[ { "name":"Novidades",…
javascriptasked Query 191 -
1
votes1
answer29
viewsA: Error while searching list in MYSQL
I think you might be using $result inside that while to do something making it fake <?php $sql = mysql_query("SELECT * FROM n_emails order by -id"); $resultado = mysql_query($sql) or…
-
0
votes2
answers87
viewsA: Doubt how to loop Javascript
Stores the result in an array then you can browse it in Javascript Example var array = <?php echo json_encode($array) ?>; var limit = 9; for (var i = 0; i < limit; i++) { alert(array[i]);…
-
2
votes2
answers352
viewsQ: How to receive the view model in a GET request Webapi?
Okay, I have a problem with my API here, and I’d like to ask for your help. I have here a form in Knockout JS, I serialize a constructor that in turn returns me a querystring so API?…