Posts by Andre Alvim • 156 points
14 posts
-
0
votes0
answers39
viewsQ: Use php to pass multiline text to javascript
I would like to pass a text with multiple in a Javascript function that is mounted in PHP. public function change_meta_info_icon($property) { if($property['metas'] &&…
-
1
votes1
answer60
viewsQ: Display original text with line breaks inside <a> tag
I’m trying to put a text with more than a paragraph as a link, but the display within the tag <a> removes the line breaks in the text. I’m doing it this way: <a style="cursor: pointer;"…
-
0
votes1
answer672
viewsQ: Traffic lights in Javascript
How can I create traffic lights in Javascript? I have an asynchronous script that runs n times, I wish that when the n tasks had another task been executed. I used normal access to a variable but…
-
0
votes1
answer1589
viewsQ: Print only part of an HTML page
I am trying to print only the part of an HTML page that has a barcode. HTML: <div class="barcode-img"> <svg id="barcode" jsbarcode-textmargin="0" jsbarcode-fontoptions="bold" style="width:…
-
0
votes1
answer44
viewsQ: E-mail after a change in the database
Hello, I am using Mysql database and have an event that runs daily at 1 hour. Within this event I check the date present in a row and compare with the current date, if the current date is lower then…
-
2
votes1
answer147
viewsQ: Scheduled tasks in PHP
I have a database with information about books and loans of the same, when the time the book can be borrowed expires then the system must change the status of the loan record. I thought to do this…
-
1
votes1
answer81
viewsA: Why create a table in Mysql?
When creating a second table you can share information, imagine that you have all the data pertaining to one person, about 20 metadata for example and one of those metadata refers to the faculty…
-
1
votes2
answers79
viewsQ: Jquery does not find form
I am using a form as follows: <form name="mapping_marc" method="post" id="mapping_marc"> <?php foreach ($all_properties_id as $compound_name => $sub_properties) {?> <div…
-
1
votes2
answers1323
viewsQ: Read an input file using Javascript
I created one and would like to read the contents of that input before sending it to the server. I saw that I can do this using a filereader but the information I found was a bit confusing. How can…
-
1
votes2
answers229
viewsQ: Grab size from a textarea that has been added dynamically
I create a modal box that has a textarea, when clicking the send button I need to know how many characters there are in the textarea. Trying to use Jquery to find this size has not returned anything…
-
0
votes1
answer188
viewsQ: Add header in Jquery’s getJson function
It is possible to add some header in jQuery’s $.getJson function? I am having cross-origin problems and read in some places that adding some header information can solve this problem.
-
2
votes1
answer488
viewsQ: Grab some elements from a JSON variable
I have a Javascript variable that stores a JSON, similar to this one: { "estado": [ { "nome": "Foo LTDA", "endereco": "Endereço de SP", "cep": "12345-000", "telefone": "(11) 1234-1234", "site":…
-
2
votes1
answer229
viewsQ: Send more than one JSON file in a single AJAX request
I’m requesting two JSON files by Jquery’s getJSON function. I’m trying to send them through AJAX but I’m not getting through. I did the following: var data = '[{"agents": '+agents +', "projects":' +…
-
1
votes1
answer245
viewsQ: max_input_vars has a value limit?
Does the configuration variable max_input_vars have a limit value? I’m setting the value of this variable to 9999999 but even so PHP is complaining that the value being sent is greater than 20000,…
phpasked Andre Alvim 156