Posts by akm • 3,387 points
162 posts
-
0
votes1
answer798
viewsQ: Place label that is printed in PHP inside a div
I want to show a record of my database. I used PHP to create, insert and select. The problem is that when I show a record, it does the echo within a div which is a Pop-up. The PHP code is inside the…
-
5
votes3
answers415
viewsQ: Use PHP variable in JS file
I want to put PHP code in Javascript file, not HTML file. As for example here: document.getElementById('lbljour').innerHTML = "Jour " + date_today; With PHP code would look something like this?…
-
2
votes1
answer3970
viewsQ: Calendario Javascript
I am seeing a Javascript calendar. I want to show every month of the year. My problem is that the first month works well, but the rest don’t stay on the right days. Step by parameter the number of…
-
6
votes4
answers61202
viewsQ: Placing value in a text box (input)
I want to put a value in a text box. function open_popup(date_today){ document.getElementById('txtstart').value = date_today; } and html input <input type=text required name='txtstart'…
javascriptasked akm 3,387 -
5
votes1
answer15614
viewsQ: Call PHP function in onClick HTML button
I want to call a PHP function that I have on the same page, on the HTML button. My PHP function: if(isset($_POST['insert'])) { insert(); } function insert() { $requete = "INSERT INTO \"event\" (…
-
0
votes1
answer101
viewsQ: Condition between two arrays for calendar
I have two arrays months and days. var meses = new Array("Janeiro","Fevereiro","Marco","Abril","Maio","Junho","Julho","Agosto","Septembro","Outubre","Novembro","Dezembro"); var dias= new…
javascriptasked akm 3,387 -
2
votes1
answer313
viewsQ: Pass value I click into popup div
I want to get the value of the day I have on a chart. This is a hyperlink, and when I click, go to the div popuup, which will open with the printed day (aff_j variable). disp("<TD class=j…
javascriptasked akm 3,387 -
4
votes3
answers460
viewsQ: Pop-up opening before being clicked by button
I wanted to use a popup on a div but it turns out the div popup appears on the page, without being clicked by the button. When it was opened wanted to make dark back and blocked. I tried that:…
javascriptasked akm 3,387 -
2
votes1
answer2018
viewsQ: Calculation for days of months (calendar)
I have an array that contains all months of the year. I want to create a calendar. var meses= new…
javascriptasked akm 3,387 -
1
votes1
answer311
viewsQ: Add SVG object inside a dynamic div
I have an SVG element created from a clone. I wanted to insert this clone into a new div. I used this code. function clone(){ var newrect = document.getElementById('rect').cloneNode(true);…
-
4
votes1
answer409
viewsQ: Copy (clone) an SVG element
I want to "clone" an SVG rect in Javascript when I click a button. I tried this code, but it didn’t work. <svg id="svg"> <rect id="rect" x="5" y="25" width="50" height="50" stroke="#0E0E0E"…
-
3
votes1
answer88
viewsQ: Mouse position when moving an SVG object
In my Javascript code, using the mouse I move a SVG rectangle from side to side. My problem is that when I click on the object, the mouse position is not fixed in the middle object but in the upper…