Posts by Otavio Rocha • 125 points
13 posts
-
0
votes1
answer42
viewsQ: Run Ajax first
The last line of the code below is the first to be executed, and I need the function containing this ajax to return true or false, but when I put to return inside Success,error or complete it does…
-
0
votes1
answer38
viewsQ: Add to select and display on screen
I have a select: <select class="form-control" id="dataInstalacao"> <option value="0/0" selected disabled>Quando podemos instalar?</option> <option…
-
1
votes2
answers51
viewsQ: Save information if user leaves page
The page in question has a form right away, this form has only three fields, which are the basic information required, after clicking the button, the fields will disappear and new fields will appear…
-
0
votes1
answer752
viewsQ: Menu Hamburger Bootstrap Burger
My app has a Dashboard with a left side column, which is where the menu is. When this page opens on smaller screens the column disappears (this already happens), but I need instead the Hamburger…
-
0
votes1
answer853
viewsQ: Insert information into bank with AJAX
I need to enter information in the database, but I need the page not update. the problem is that I do not know anything about AJAX and even searching the codes on the net, I could not solve Like I’m…
-
0
votes1
answer35
viewsQ: Join in sql that returns everything
I have two tables, the episodes and episodes seen, I need to make a query that will join the two by the id of the episode, however I do not want the episodes that are not in the second table do not…
-
0
votes2
answers1061
viewsA: Treat AJAX return (responseText)
I managed to solve the problem in a much simpler way than I imagined. I realized that the value that was being displayed was from the var_dump function that was present in the controller (which I…
-
3
votes2
answers1061
viewsQ: Treat AJAX return (responseText)
I made a code in AJAX runs PHP and prints in HTML the result of the SQL query, the problem is that when it displays on the screen, the data is not processed, stay like this: What I need is simply…
-
1
votes1
answer108
viewsQ: Read array of a file diagonally
Hello! I have a fixed-size file that has a random character array. However I’m having trouble using fseek and fread to read the file diagonally. To explain the problem, I need to do a kind of word…
-
2
votes2
answers82
viewsQ: Search in two tables
I have a media table with the fields id_midia, nome, tipo and another table of synonyms that has the fields id_midia, sinônimo. I need to make a query where it checks the two tables if the term…
-
3
votes2
answers956
viewsQ: Push a button through the keyboard
Hello, within the system I am developing the user can change a registration that is in the database. I wonder how I can do so that instead of the user can save the changes just by clicking on the…
-
0
votes2
answers480
viewsQ: Return primary key after insertion into Mysql
I need to insert into my database two tables, one of the tables has a primary key and the other will use this value as a foreign key. My question is: How can I return the value of this primary key…
-
0
votes3
answers1157
viewsQ: Get value from dynamically created fields
I have a page where the user can increase the amount of fields that will be needed, to do this I am using jQuery with the following code: episodio = 2; $(".addEpisodeField").click(function() {…