Posts by Rodrigo Speller • 409 points
14 posts
-
3
votes1
answer155
viewsA: Passing data through Jquery
Vitor, here are some remarks about your code. Attribute ID In the excerpt below you define ID attribute of the link with a numeric value. However, it is not a good practice to define the value of…
-
0
votes2
answers122
viewsA: Winsock receiving information from the server
Listen.Update It turns out that the function Read that reads in streams does not guarantee the reading of all data sent at once. This happens to improve performance in streams. As data packets reach…
c#answered Rodrigo Speller 409 -
2
votes1
answer62
viewsA: Recover Classname using . Css() from Angularjs
Jay, className is not a CSS property, but a DOM property (javascript). To access this property, just use the function attr. As follows: HTML: <h2>Clique nas DIV´s para exibir os atributos do…
angularjsanswered Rodrigo Speller 409 -
1
votes2
answers109
viewsA: Get Outer html
Use $("selector")[0].outerHTML;
-
1
votes4
answers827
viewsA: Another option to use @ in PHP?
Follow the file session_defs.php to be included in the code setup. In this file I created the function session_def, that sets the default value for the session variable if it has not yet been…
-
1
votes1
answer349
viewsA: Query getJSON
File teste2.php: Substitute: nome=$("#course").attr("value"); for: nome=$("#course").val(); Also replace: $("#cpf_cnpj").html(json[0].cpf_cnpj); $("#rsocial").html(json[0].cnh); for:…
-
3
votes1
answer91
viewsA: Urls in doctype and html tags
HTML is a language derived from SGML. Before HTML5, HTML conventions tried to maintain the same SGML standards, making an HTML file an SGML file at the same time. However, with the popularity of…
-
4
votes6
answers4694
viewsA: How to make a stopwatch continue counting after closing the page?
I have developed a solution with persistent data stored on file and using localStorage. I believe this solution will suit your case. The solution is simple, the code is great because I created a…
-
1
votes1
answer544
viewsA: How to update Curl request when calling script
I don’t know how your URL is formatted, but I think you have some variables in it. So I have two suggestions. // Em ambos casos, você precisará da variável com valor pseudo-exclusivo // A chance do…
-
1
votes2
answers201
viewsA: Processing of data output from PHP database
I imagine/suggest you have a 'roles' table where you will determine the permissions of each access level. In this table you must have at least one column 'role' and another 'friendlyName'.…
-
0
votes2
answers683
viewsA: odd characters when printing in the textarea
John, the problem is that your file Charsets are incompatible. I don’t know the editor you are using, but to avoid problems, you should save all files with the same charset, preferably UTF-8. And to…
javascriptanswered Rodrigo Speller 409 -
0
votes4
answers3380
viewsA: change class of the clicked element
While I was developing my other solution, user Miguel Angelo posted another solution that meets the case. I take the opportunity to post a solution containing both my proposal and his since we have…
-
2
votes4
answers3380
viewsA: change class of the clicked element
I believe this sample code excerpt will meet your need. Mainly because this code considers the case where the user comes from any link pointing to the desired "tab". I chose to write native JS code,…
-
2
votes8
answers7818
viewsA: Check if variable contains a well formatted PHP email address
Download and use the link function: https://github.com/PrimosTI/kit/blob/master/php/lib/mailparse.php <?php require_once 'mailparse.php'; $mail = '[email protected]'; $analise =…