Posts by Alexandre • 529 points
27 posts
-
3
votes1
answer918
viewsQ: How to set var JS value for html field?
I have the following code that: When a field enters Focus it calls a function to check which field is in phocus to change the value of a variable in a tooltip! Example: //Aqui quando o campo entra…
-
0
votes0
answers69
viewsQ: How to call function by onfocus and add a value in a php variable?
I would like to call a JS function when I enter Focus in some html field! But the code does not call the function!! How to do? Example: <html> <input type="text" name="tx_nome_usua"…
-
0
votes1
answer192
viewsQ: How to switch txt message according to the field’s Focus
In that question I saw how to read the .txt ~> Read txt Now I want to know: In case I leave a field on phocus, and is about the message of tooltip, it must show a message concerning that field.…
-
2
votes2
answers192
viewsQ: Open file . txt as tooltip
I’m wanting to add to my code a "HELP", type if he click the word he open a pop-up showing the details of the fields. But I would like to do this with a file .txt ... Where open a pop-up containing…
-
2
votes1
answer292
viewsQ: Possible remove Alert lock checkbox in Mozilla?
In my code, I issue a confirm asking the user to select an option. The problem is: "When the user selects the desired option another is issued alert, and in this other alert always appears an option…
-
2
votes1
answer390
viewsA: How to get the record total of a table
The answer to my case was the lack of use of an own command PostgreSQL, that in case it would look like this: <?php $w_querybusca = "SELECT * FROM Elem_matr;";…
-
2
votes1
answer390
viewsQ: How to get the record total of a table
I need to know how many records there are within my table and add the total find into one variable. I’m doing it this way but it doesn’t work: <?php $w_querybusca = "SELECT * FROM Elem_matr;";…
-
0
votes1
answer100
viewsQ: How to get the value found by the index?
I have a code where I pass a value and I need to check if that value exists within the array, so I use the indexOf. What I would like is to take the value that the indexOf find, for example: org =…
javascriptasked Alexandre 529 -
0
votes0
answers131
viewsQ: How to add a repeat loop (for) when needed
I have a program where there are three parameters. So: These three parameters are positions within the m_aluno[w_i][w_j][w_k]);, where w_i can receive a position informed by the user or not and this…
javascriptasked Alexandre 529 -
7
votes2
answers5339
viewsQ: Remove empty positions from an array
I’m passing a array via GET for PHP and then send it to the client side (Javascript). When I receive it it looks like this: m_prod = [5,,,,,,,,6,,,,,,]; In other words, it is including a space in…
-
0
votes1
answer2855
viewsQ: Doubt in array n rows x 3 columns
I am in doubt in JS matrix, where I need to include a value within the first position of each item consecutively. JS Code: m_aluno = new Array (); if(w_cont < w_alun)//w_cont é para não passar do…
javascriptasked Alexandre 529 -
0
votes0
answers117
viewsQ: Create associative array to store data structure
My question is based on: "I have a small code snippet where the user type in how many colleges there are in the region, how many classrooms there are, how many courses and how many students. So far…
-
2
votes2
answers18872
viewsQ: How to leave current date in text field
I would like to leave populated my field text with the data atual, where the mask I have, when the user type leaves configured like this: xx/xx/xxxx. How to do in JS or PHP ?…
-
2
votes3
answers220
viewsQ: Select "Cancel" in Alert by default
As you all know confirm of the JS will show a Alert with the informed text and options CANCEL and OK. And just like that, the OK is always selected and this way disturbs (in my case at least). There…
javascriptasked Alexandre 529 -
0
votes2
answers49
viewsQ: Insert into the database according to the data found
I have a certain problem in "logic", where I must enter the records of two arrays in a table from BD. There I have the following situation: In the first if I check if the tabela_p does not contain…
-
1
votes3
answers1873
viewsQ: if condition with Javascript inside PHP
It is possible to check if the variable is null in the JS section in PHP? <?php print("<SCRIPT language=javascript> string_patr = \"$string_patr\"; string_seri = \"$string_seri\";…
-
1
votes1
answer34
viewsQ: Allow value repetition in JS
In the following section, it is verified whether the value already exists within the vector, if it does not exist it is inserted. I wish I could do this normal check, but allow '0' to repeat. Ex:…
javascriptasked Alexandre 529 -
6
votes2
answers23564
viewsQ: Is it possible to run a Javascript function in PHP?
I want to run a function of JavaScript without "submitting" it, or when the screen is accessed the php will call the function JavaScript and run what’s in it and then continue the normal code. It’s…
-
0
votes1
answer520
viewsQ: Function does not remove array elements
Within the PHP i add two arrays and then I add them into a variable of a print with JS. <?php $objp = array(); $objs = array(); print("<SCRIPT language=javascript> objp = \"$objp\"; objs =…
-
1
votes2
answers1253
viewsQ: How to add a javascript variable in PHP?
I want to catch the variável of vetor that I believe in the JS and store its contents in one of the PHP. <?php print("<SCRIPT language=javascript> vetor_dados[$cont] ="text";…
-
1
votes1
answer1626
viewsQ: Form does not pass data via POST
I have the following excerpt: <html> <form name="sai_frm_incl_patr" method="post" action="sai_incl_peri_seri_patr.php"> <body> <table border="0" width="100%"> <tr>…
-
1
votes1
answer2959
viewsQ: How the variable passes via $_POST
I’m creating a code snippet where I assign the data entered into a array in the javascript and moving on to the next program. But the problem is that if I use the $_GET it can not support when…
-
2
votes2
answers44
viewsQ: Table formats?
I wonder if it is possible to make a table containing a "text" in the middle of its lines! Follow an example:…
-
0
votes0
answers37
viewsQ: Pass parameters in PHP
Well that’s a very crude question (I know), but I don’t know how to pass the data to another program in php! Where I use: <? print("<script language=javascript> alert(\"Dados alterados…
-
3
votes1
answer37
viewsQ: Function running direct
When I click the 'new' button calling the function to check the data, inside it I call another function to check the date that was informed! function f_veri_dados() { // existem outros dados // Data…
javascriptasked Alexandre 529 -
6
votes5
answers45121
viewsQ: How to use a PHP variable in javascript?
You can declare a variable in PHP and then use it in Javascript? Example: <? var w_qtd_v = 0; ?> <script language="javascript"> w_qtd_v = w_qtd_v + 1; </script>…
-
1
votes2
answers85
viewsQ: Roll dice into a box
I need to take the data of an input and pass to a box! I have a Cod that takes the dice from a combo to play in a box! Cod: function move(Origem, Destino) { var opt =…
javascriptasked Alexandre 529