Posts by balexandre • 662 points
15 posts
-
1
votes1
answer33
viewsA: How to rewrite this code in Vue.js?
First, welcome to Stackoverflow When to your question, since Vuejs is very flexible, there are several ways to ask what you ask, but one of them may be: <div :class="wrapClass"> <button…
vue.jsanswered balexandre 662 -
0
votes1
answer48
viewsA: function returns Undefined array of strings
the error is simple, but, first, I will try to show how to debug the code, especially in javascript, because just run the code in the browser:…
javascriptanswered balexandre 662 -
3
votes1
answer189
viewsA: Javascript Promise With Runtime Error
I can’t understand why I run before I click It’s simple... take a good look at the code you wrote: created a function called minhaPromise but then you’re calling this function with minhaPromise()…
-
0
votes1
answer364
viewsA: Problems with CORS in Django using AWS S3
I think just add one more line in the Bucket configuration <AllowedMethod>HEAD</AllowedMethod> To test correctly, I go to www.jquery.com, open the console and type:…
-
1
votes1
answer52
viewsA: Ajax requisition
first, welcome to Stackoverflow :) The code is simple to notice ... within an anonymous function of the addEventListener you have 3 functions: success error ajax the first two do nothing, are just…
ajaxanswered balexandre 662 -
0
votes2
answers991
viewsA: check if the email already exists
not complicating the code, what is just forgetting, is that the connection to the database is given in an asyncronous way, IE, do not know if it takes 1ms or 3s to receive the answer, but, by the…
-
1
votes2
answers94
viewsA: Get the number of rows and turn into Divs
Upon request by comment, here is the example. Namely, I only use the on("blur") which means, when you don’t have focus, that is, when you click out of the input, and after counting the lines, for…
-
0
votes2
answers77
viewsA: POST in Ajax arrives with null data in the Actionresult of MVC5
I make it a little simpler: [HttpPost] public ActionResult DeleteDefinitive(List<string> dataList) { return Json(new { success = true, count = dataList.Count(), items = string.Join(",",…
-
1
votes2
answers228
viewsA: Error forcing download XML file C#
I would just use: context.Response.OutputStream.Write(fileBytes, 0, fileBytes.Length); context.Response.ContentType = "text/xml"; context.Response.AddHeader("Content-disposition", "inline;…
-
1
votes1
answer320
viewsA: Randomization/Randomization C#
using an example that the game area is 100 x 100 units (pixels, cm, mm, qq thing), can be created easily using the object Random Random random = new Random(); int positionX = random.Next(0, 100),…
-
2
votes3
answers3091
viewsA: Why doesn’t getJson work?
Voce should first know exactly what the "JSON format is"... value: "1", should be written as "value": "1", JSON is a format, there is no ; what you wrote is a array, should be built in [] that is to…
-
2
votes2
answers5810
viewsA: How to run Vimeo video automatically (with autoplay)
I don’t know which bookstore you’re using for Lightbox, but with the fancybox even has an example with Vimeo and the video starts soon. Live code: http://jsbin.com/qepeme/1/edit?html,js,output HTML:…
-
1
votes1
answer835
viewsA: B2W API REST/JSON -failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized
I am not an expert in PHP, but as URL calls I only know how to do with Curl, here is an example that does not return any error <?php $url =…
-
1
votes1
answer1501
viewsA: How to return all groups I participate in facebook in rss, json, php
You can use the SDK to show all groups a member: https://developers.facebook.com/docs/graph-api/reference/user/groups/ You’ll need the permission user_groups and/or user_managed_groups to list the…
-
26
votes1
answer6947
viewsA: When to use Cordova or Xamarin?
Xamarim is for creating native mobile apps (Android, Windows Phone, and iOS) using Microsoft language C#. Cordova (or as it was formerly called: Phonegap) is the same but using Javascript Both work…