Posts by Bruno Bafilli • 327 points
20 posts
-
0
votes0
answers213
viewsQ: Function Jquery returning Undefined
I created a function, but I don’t know why when I call this function the return of it comes as Undefined. follows the code function serviceDetails(id){ //Service of the wall of cards (Grid Home…
-
0
votes1
answer68
viewsQ: How to handle a TD using Jquery
I have a value in a TD and I need to recover it, it is a calendar and every date I click from the calentario there is a different class in each date, I need that when I click on that date I can…
-
0
votes2
answers34
viewsQ: Doubt TD Jquery
I’d like to reclaim the name of a class of a TD, follows my code. var dateSelectClick = $(target.element.text); console.log(dateSelectClick); return of this is n.fn.init {} because I would like you…
jqueryasked Bruno Bafilli 327 -
0
votes2
answers99
viewsQ: Minimize CSS file with Grunt
People would like to know how to create my css in a single line with Grunt, follow my code below // Copy source assets to _gh_pages copy: { assets: { files: [ { expand: true, cwd: '<%=…
javascriptasked Bruno Bafilli 327 -
1
votes2
answers451
viewsQ: Traversing json using Ajax jquery
Guys I have a doubt, how do I go through the Json and recover specific objects through ajax? Code: function loadJson(){ $.ajax({ url: "data.json", context: document.body }).done(function() { $( this…
jqueryasked Bruno Bafilli 327 -
0
votes1
answer367
viewsQ: How to always line up for the top one LI
I would like to know how I do so that these images always stay on the footer of the other. The ones below should always touch the footer the top in the shape of a li. Below is the print: My code is…
cssasked Bruno Bafilli 327 -
0
votes2
answers95
viewsQ: Retrieving a json and turning it into html
I would like to know how to convert this return that I am creating to HTML, it is displaying a string the html elemntos are coming as string in the browser, follow my code below var ul =…
javascriptasked Bruno Bafilli 327 -
-4
votes1
answer112
viewsQ: How to generate a li from this JSON
I’m making a requisicao to get this JSON, and would like to know how to assemble a li using this request var url = "data.json"; var httpRequest = new XMLHttpRequest(); httpRequest.open("GET", url);…
javascriptasked Bruno Bafilli 327 -
4
votes2
answers2915
viewsQ: How to consume this JSON with Javascript?
How do I consume that URL using Javascript? https://client-demo-accounts-2.bootstrap.fyre.co/bs3/v3.1/client-demo-accounts-2.fyre.co/379221/MjAxNjAxMjcxMjQyOmRlc2lnbmVyLWFwcC0xNDUzODQwMjgxODk0/init…
-
0
votes1
answer25
viewsQ: Swift Coredatamodel Select
I would like to know how I do to select only a specific table of my Coredata, for example I have 6 fields, and I would like to select only information from a single field, someone could help me? My…
swiftasked Bruno Bafilli 327 -
0
votes1
answer65
viewsQ: error Swift 0_pthread_kill
Good afternoon friends. I am trying to make a COREDATA SELECT because I am having the following error: 2016-01-29 13:08:39.648 epicGames[2049:1579473] * Terminating app due to uncaught Exception…
swiftasked Bruno Bafilli 327 -
0
votes0
answers33
viewsQ: error with managedObjectContext
I added a CoreData in my project Model.xcdatamodeld and would like to know why when I make the call from managedObjectContext says the class doesn’t exist? Follow the print so you understand better:…
swiftasked Bruno Bafilli 327 -
2
votes1
answer311
viewsQ: Array by Swift parameter
Good afternoon guys all right? how do I pass an array per parameter? and would like the array parameter to be optional Example: func startGame(teste: Array) -> String { let randomIndex =…
swiftasked Bruno Bafilli 327 -
-1
votes1
answer707
viewsQ: How to pick specific letters from a string - Swift2
How do I get one letra specifies a variable? var variavel = "teste"; I’d like to take a letra separada, I need to put each letter in a different variable Thank you!…
-
3
votes1
answer692
viewsQ: How to count how many characters a string has - Swift
I’m having some difficulties with simple things. How do I count how many letras has a variable? let word = wordEasy[0] for var i = 0; i < word.count ?????…
-
1
votes3
answers210
viewsQ: How to recover the first letter of a Swift array
I would like to know how to retrieve the first letter of an array element var wordEasy = ["uva", "manga"] var teste: String = wordEasy[0] I would like to retrieve only the letter u…
-
2
votes2
answers168
viewsQ: Retrieving the name of a boot on Swift
How do I recover the value of a button ? For example: I have a button in my layout with the name boot, but I want to assign the name of that button to be clicked on a variable! That is possible?…
swiftasked Bruno Bafilli 327 -
2
votes1
answer138
viewsQ: Close the IOS keyboard by clicking confirm
how do I make the keyboard disappear when I click a button confirming that name in the textbox? I want that when I click the button confirm player the keyboard disappear, because it keeps appearing…
swiftasked Bruno Bafilli 327 -
1
votes1
answer240
viewsQ: Doubt, add value of an array [Anyobject] using Swift?
How would I do it in Swift? var jogador02 = ["Teste", 0] jogador02[1] += 1 result be equal to jogador02 = ["teste", 1]
swiftasked Bruno Bafilli 327 -
0
votes1
answer39
viewsQ: Has not initializers - Swift IOS
Good morning friends. For some reason, I’m having this mistake, as I’m new on this platform I’m not able to identify the problem, could someone please help me? Thank you!…
swiftasked Bruno Bafilli 327