Posts by Vinícius Lara • 3,750 points
134 posts
-
1
votes1
answer213
viewsQ: Websockets connections with PHP
I’m using this class to work with Websockets in PHP together with HTML5 and I have two questions about the connections. How can I list all active connections on that server? As I can disconnect a…
-
2
votes2
answers749
viewsQ: Capture div by class
I am trying to capture a div from its class but did not succeed, notice: I try to capture the div with the class class='m-definicao-conteudo' of the site that I inform to Curl, but returns me this…
-
3
votes2
answers204
viewsQ: Scan source code and find wikipedia url
I’m having trouble at the regex :/ I was using this Pattern to get wikipedia urls from the source code of google searches wikipedia\.org[^\" ]+ But the urls are jammed that way: <a…
phpasked Vinícius Lara 3,750 -
3
votes2
answers131
viewsQ: Capture and filter result
I have a string <div></div> [........] <p>Ola meu nome é pseudomatica (sou normal), etc. Meu nome é assim pq sim</p> <p></p> [........] As I do for the contents…
phpasked Vinícius Lara 3,750 -
4
votes4
answers453
viewsQ: Get most used words from a string
I got a big string: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas porttitor non felis quis dignissim. Morbi varius arcu lorem, eget efficitur nibh interdum vitae. Aenean…
-
0
votes1
answer161
viewsQ: Track #hash and create description from it [LOGICA]
I have come across this now and I would like to debate to make a logic. Well, nowadays it is used a lot the hashtags for everything in the main social networks, I almost never enter in Twitter and…
-
0
votes1
answer331
viewsQ: CSS, firefox does not recognize Bree Serif font
I use google sources, however I got the surprise today when I went to test my files in firefox and realized that the source was not loaded. See http://jsfiddle.net/xrckh1db/ @font-face {…
-
3
votes4
answers420
viewsQ: CSS, firefox input shows blank text
In firefox my input text does not appear, what reason? see http://jsfiddle.net/m8j873y8/ input { width: 100%; height: 35px; margin-bottom: 10px; color: #595959; padding-top: 17px; padding-right:…
-
0
votes3
answers179
viewsQ: CSS, center split line between left and right
I own a div, welcome-inputs and within it two other left and right To left needs to be on the left side of welcome-inputs and the right on the right side of welcome-inputs. They both have width =…
-
4
votes1
answer55
viewsQ: Transcription javascript calculations for PHP
How can I transcript this code in javascript for PHP ? var temp = "<div class='brick' style='width:{width}px;'><img src='i/photo/{index}.jpg' width='100%'></div>"; var w = 1, h =…
-
1
votes2
answers339
viewsQ: jQuery codes for javascript
I’m having problems, Javascript is very confusing for me, let’s see that I have a function that performs all this in jQuery $(".message-form-content").attr('style', ' '); // Esvazia o style da div…
-
3
votes1
answer368
viewsQ: Changing the target of an element with jQuery
How can I pass this code on JavaScript for jQuery? I didn’t understand the context... document.getElementById("imageForm").target = "my_iframe";
-
7
votes1
answer982
viewsQ: Save space, SVG, Base64 or regular images?
I created this question to clarify doubts that I ended up developing over the months in relation to images and space. While accessing websites, either on my mobile phone or my normal computer, I…
-
2
votes1
answer62
viewsQ: Apply limit function to all textareas
I am manually imposing character limit on my textareas with this code: <textarea onKeyDown="limitText(this.form.message,this.form.countdown,240);"…
-
0
votes4
answers359
viewsQ: margin:auto; how to apply in this case
I’m having trouble trying to centralize Ivs that are located within a mother div, their "children" are in float, but I wanted to centralize them using margin:auto; how can I do? Follow my little…
-
4
votes2
answers2303
viewsQ: How to check if an answer (date) is a json
How can I check if a result (date) coming from an ajax request is a json or not? I tried this code but did not succeed var obj = $.parseJSON(response); if(obj.avatar) { } else { }…
-
5
votes1
answer674
viewsQ: Percentage of ajax requests
I wonder if it is possible to create a percentage in Ajax requests. For example: When the form is submitted it starts with 0% up to 100% (when completed) My ajax: index php. <script…
-
2
votes1
answer466
viewsQ: CSS Toggle Switch with <select>
I need to transition from this script to use with <select>. See well the script working is like this http://callmenick.com/tutorial-demos/css-toggle-switch/ My selects (over 88) are ONLY in…
-
2
votes1
answer48
viewsQ: How to find the second id of something
How can I get access to second div with id general as I tried in the script? <div id="general">ds</div> <div id="general">ds</div>` alert($("#general").eq(2).html());…
-
10
votes1
answer3152
viewsQ: upload without refresh with Formdata, jquery
I need to update my script and I want to adapt my upload formats to be upados without the need to refresh. I didn’t enjoy using third party script so I researched and came across this function of…
-
3
votes2
answers47
viewsQ: Set limit, css animations
I came across this problem that is affecting my CSS structure. I have such animation on my website http://jsfiddle.net/9bdqe2nq/ But I need it to stay inside the black bar, which is that surplus…
-
2
votes2
answers947
viewsQ: Using Regex to pick up a certain value
I am using this "string?" in regex ^\/(.*)\w+$ It detects values that start like this: /STRINGQUALQUER would like to catch the STRINGQUALQUER, what code do I use? I use jQuery.…
-
1
votes1
answer190
viewsQ: Error: Expected a conditional Expression and Instead saw an assignment
I am "debugging" my jQuery codes and came across this error on the following line while(match = regex.exec(item)) { [...] error Expected a conditional expression and instead saw an assignment.…
javascriptasked Vinícius Lara 3,750 -
1
votes2
answers1305
viewsQ: Check that all values in one array are part of another
I’m working with this code if(in_array($_GET['a'], array('value1', 'value2', 'value3'))) { [...] } It serves to check whether $_GET['a'] this inside the array. I’m trying to pass the values…
phpasked Vinícius Lara 3,750 -
0
votes3
answers424
viewsQ: How to check if a value starts with a bar followed by a message?
I get a value this way: /{mensagem} and if it were different from that (had not the / before the {mensagem), I wanted him to return me error. {mensagem} serves as variable and cannot be changed.…
-
0
votes1
answer59
viewsQ: plugin not working, Routes and jquery
I am using this plugin to explore Routes with jQuery without needing to migrate to Angularjs. However I am not receiving the answer in the log box, which was to return with the following code…
-
2
votes2
answers3120
viewsQ: Single Page Application with jQuery
How can I develop a SPA with jQuery? I did with Angularjs with the following code, but I’m having difficulties to migrate to it definitively and decided to stick with jQuery not to be late. var…
-
0
votes1
answer1733
viewsQ: Emoji insertion problems in mysql
I’m having trouble inserting EMOJI emoticons into mysql, it inserts "????" for each Emoticon. My table is already as utf8mb4_bin how do I insert correctly? It will be PHP?
-
0
votes1
answer39
viewsQ: Decorative input for certain function
I have always had this doubt, but now I need it. Is there a free script or a website, or simply a name of these BOX where we can shape the message with bold, links, quotes codes etc? like this one…
-
1
votes3
answers2537
viewsQ: Detect no characters in a string
How do I make to detect the existence noncharacters like this in a string? �*�v��R�<�
-
0
votes1
answer90
viewsQ: Problems checking out Empty()
I’m having trouble checking a string using EMPTY(), it’s as follows. If I throw space into it " " it ceases to be empty.. and ends up inserting in the database the empty value, how can I solve this,…
-
1
votes1
answer347
viewsQ: Direct sum by SQL query
I wonder if there is a way I can make a simple sum directly by the query, I have a table that contains a sub-table called VIEWS and I would like for each query that I run these VIEWS to increase +1…
-
0
votes2
answers159
viewsQ: Regex in Mysql to fetch certain X tempo results
I have a field in the table defined as DATE and the data is saved in this field as follows: year-month-day hour:minute:second Exemplo: 2014/04/22 18:32:00 I need to develop a query that returns me…
-
1
votes1
answer167
viewsQ: Full query of data registered in a field
I have a table where a country field is defined. I want to know how I can develop a query that shows me how many records I have for each country. Example: Brazil: 10 registrations USA: 5 records…