Posts by Felipe • 579 points
29 posts
-
1
votes1
answer65
viewsQ: Is it possible to assign loop repetition to a variable?
I am implementing a code where if the received variable does not contain a value, a for, otherwise, no. Well, if it were for the "simple" case, it would just implement the if with the conditions and…
-
0
votes2
answers51
viewsQ: How to do two checks in select
I have 3 selects in my code where: If the user enters the start date and the end date will show the data between them. If the user enters the invoice will show the data with this note. If the user…
-
1
votes4
answers733
viewsQ: How to check if there is only one position in the array element?
In my code I do a search on BD adding to the array the results found. And before the value I enter a letter to identify the results. <?php $w_select ="SELECT * FROM public.sai_cad_patr_seri WHERE…
-
-1
votes1
answer75
viewsQ: Function is not pulling data!
//INSERIR function move_patr_seri(Origem, Destino) { var w_Cont_Qtde = 0; var w_Qtde_Peri = 4; var v_patr = new Array(); var w_valor = Origem.value; var w_tipo; w_tipo = "S"; if(Origem.name ==…
-
1
votes1
answer138
viewsQ: How to take the 2 value of an Dice and show?
In my program I search the table data and add in a array v_patr and then I add this array in var w_a: <html> <select multiple size="7" name="cb_Patr" style="width:300"> <?…
-
3
votes1
answer147
viewsQ: How do I populate an array with the database entries?
I have a box that shows the records that will be entered in the database. But I would like to make a change to those data that have been entered. So I wanted to know how to make the records that are…
-
1
votes2
answers819
viewsQ: Remove data from an array and insert into the table
I include in a array, user informed data. But, I use only one array to store data from two fields, where I use "P"(And the entered data) for the first field and "S"(And the data entered) for the…
-
1
votes1
answer47
viewsA: Block insertion in box
I managed to come up with an answer to my problem! In case to block, just need to add this snippet: if((Destino.name == "cb_Seri") && (Destino.options.length == w_cont)) { return false;}…
-
0
votes1
answer47
viewsQ: Block insertion in box
In the code I create two box, one patrimonio and another serial: <table border="0" align="center" height="100"> <tr> <td> <font face="arial" align="center" valign="middle"…
-
2
votes2
answers377
viewsQ: How to get the text of a radio button?
In my code I check the selected radio and would like to get the radio’s text field as well. How should I do?! No while it mounts the radios according to the values found in the table and shows the…
-
2
votes1
answer10495
viewsQ: How to check a radio button
My doubt is like checking if a radio button was selected! I have a while as it is finding values within a table, he keeps adding the radios Buttons. So when the radio is selected and is clicked on…
-
3
votes2
answers439
viewsQ: How to select data from different tables
How to make a select picking a field from each table? I want to get the text field from 4 different tables, as I should?
-
3
votes3
answers1803
viewsA: How to take the result of select and mount HTML?
It is actually quite simple to assemble your HTML by the result of your search. As you mentioned, by radio would be like this: $w_querybusca = "SELECT * FROM sai_cad_datas INNER JOIN sai_cad_cara ON…
-
1
votes1
answer72
viewsQ: Delete selected data from array
In my function I insert a data informed in an array and in a box for user viewing. But if he wants to remove this information, he selects it and is withdrawn through Function! But if he reports the…
javascriptasked Felipe 579 -
1
votes3
answers1242
viewsA: Transforming jQuery code into Javascript
A simpler way to your problem: function move(Origem, Destino) { var opt = document.createElement("option"); var valor = Origem.value; if(valor==""){ alert("Informe um dado válido!"); return; }…
-
2
votes2
answers364
viewsQ: move text to a box
Well, I want to pass on the values I put on <input> to the "box" and also have the option to take it. Example: <table border="1" align="center" height="180"> <tr> <td>…
-
0
votes1
answer75
viewsQ: Popular combo with ajax call
Well people, I would like to include a data and at the same time update the ajax that is next ... In the code I inform the content and after selecting the new button I include the content and update…
-
1
votes1
answer340
viewsQ: How to clean only the current tab!
I have a menu of tabs, and would like to clean (refresh) only in the tab where I am, keeping the data of other. Menu: <body onLoad="AlternarAbas('td_cada','div_cada')"> <table width="100%"…
-
2
votes2
answers2749
viewsQ: How to create a tab menu with Javascript?
I have a menu that if the user selects the option it will change, etc! The problem is that it leaves all other programs open when accessing one. Menu: <body…
-
2
votes2
answers74
viewsQ: td in a Function
You have the possibility to add a td / div / table / iframe within a Function? For example: function Retorno(){ <td height="#" width="#" > <div id="#" width="#"> <table width="#">…
javascriptasked Felipe 579 -
3
votes2
answers2738
viewsQ: How to clear screen data?
I would like to know how to call the same screen only with empty fields! That is, the same screen only from the beginning, without the information that the user informed! Example of the fields:…
-
2
votes1
answer66
viewsQ: Forms and Iframes
It is possible to use a <iframe> within a <form>? I’m making a code where I step one id in <div> and within a <form> with another id, thus within the <form> want to…
-
3
votes1
answer985
viewsQ: Flaps change
I have a menu of tabs that as you select the tabs changes the content. Flaps change: <script language="JavaScript"> function stAba(menu,conteudo) { this.menu = menu; this.conteudo = conteudo;…
-
8
votes2
answers10462
viewsQ: Regular Expression for RG
I have a expressão regular which defines the points according to the maximum number of digits. Expression: function Rg(v){ v=v.replace(/\D/g,""); if(v.length == 9)…
javascriptasked Felipe 579 -
1
votes2
answers95
viewsA: User verification
A more efficient way, would you determine the verification within the selection menu. Example: <div class="menuitem" onmouseover="over(2)" onmouseout="out(2)"> <?…
-
1
votes1
answer1320
viewsA: Opening PDF on screen
As Marciano.Andrade said, I will inform Cód showing how was the implementation from the call menu (as it is kind of large I will separate to facilitate the visualization) Menu: <html>…
-
1
votes1
answer869
viewsQ: Change Method using Java and SQL
I need to make a change in SQL using Java, but I ended up getting lost in logic when making the call and the return to change. Follow the outline of the code. Here is the Main, where the user…
-
0
votes1
answer1320
viewsQ: Opening PDF on screen
I’m having a problem making my PDF open inside a table. Like shows the image, by clicking on "Open PDF" it fires the file in a new tab. But how to make the PDF file open inside the table?…
-
2
votes1
answer2663
viewsQ: Search method involving Java and SQL Server
How to do a java search by passing an (SQL) attribute as parameter? I decided to type a sketch of Cod: MAIN static private void PesquisarUsuario(Connection con) throws SQLException { int cpf;…