Click here to Skip to main content
14,459,476 members

JavaScript

 
GeneralRe: Adding Blank pages to PDF when requirements met Pin
Richard MacCutchan5-Apr-19 6:10
communityengineerRichard MacCutchan5-Apr-19 6:10 
Questionprint array json in dinamic table <html> Pin
serenimus29-Mar-19 12:15
Memberserenimus29-Mar-19 12:15 
AnswerRe: print array json in dinamic table <html> Pin
Richard MacCutchan29-Mar-19 23:29
communityengineerRichard MacCutchan29-Mar-19 23:29 
GeneralRe: print array json in dinamic table <html> Pin
serenimus29-Mar-19 23:50
Memberserenimus29-Mar-19 23:50 
GeneralRe: print array json in dinamic table <html> Pin
Richard MacCutchan30-Mar-19 0:28
communityengineerRichard MacCutchan30-Mar-19 0:28 
GeneralRe: print array json in dinamic table <html> Pin
serenimus30-Mar-19 9:27
Memberserenimus30-Mar-19 9:27 
GeneralRe: print array json in dinamic table <html> Pin
Richard MacCutchan30-Mar-19 22:22
communityengineerRichard MacCutchan30-Mar-19 22:22 
GeneralRe: print array json in dinamic table <html> Pin
serenimus2-Apr-19 9:02
Memberserenimus2-Apr-19 9:02 
Hi!!

thanks for your reply..you`re right...

now I changed the format of the array, and now its like this:

0: ["Naviera Riazor"]
						1: {1: "La Coruña"}
						2: {2: "La Coruña"}
						3: ["Barcos Texeiro"]
						4: {1: "La Coruña"}
						5: {2: "La Coruña"}
						6: ["Barcos de Vela Riazor"]
						7: {1: "La Coruña"}
						8: {2: "La Coruña"}
						length: 9



The problem is, that I dont find the way to display properly the info in the html, table,I tryed with a double loop, first for, and secon inner do...while, and two for consecutives, thats mean one inside the other..but It doesn`t work...to ne honest, sometimes I think I'm doing it very complicated, maybe there is another way to do it more simple..

var html="";
                var celdas=datos.length;
                var filas=celdas/3;
                var cont=0;


                for(f=0;f<filas;f++)
                {
                    do{
                        html+="<tr>";
                        html+="<td>"+datos[f][cont]+"</td>";
                        html+="</tr>";

                        cont++;

                    }while(cont<=2);


                }
                $("#tabdat tbody").append(html);


Thanks!!
GeneralRe: print array json in dinamic table <html> Pin
Richard MacCutchan3-Apr-19 5:47
communityengineerRichard MacCutchan3-Apr-19 5:47 
QuestionChanging a font color Breaks my script??? Pin
Member 1420217628-Mar-19 10:04
MemberMember 1420217628-Mar-19 10:04 
AnswerRe: Changing a font color Breaks my script??? Pin
Richard MacCutchan28-Mar-19 23:42
communityengineerRichard MacCutchan28-Mar-19 23:42 
AnswerRe: Changing a font color Breaks my script??? Pin
Richard MacCutchan29-Mar-19 6:56
communityengineerRichard MacCutchan29-Mar-19 6:56 
QuestionJavascripts documentation engine and API Pin
Yuri_Cherkasov26-Mar-19 3:55
MemberYuri_Cherkasov26-Mar-19 3:55 
QuestionRegular Expression for min of 4 and max 40 characters in TypeScript Pin
simpledeveloper12-Mar-19 8:39
Membersimpledeveloper12-Mar-19 8:39 
AnswerRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan12-Mar-19 8:54
communityengineerRichard MacCutchan12-Mar-19 8:54 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
simpledeveloper12-Mar-19 9:22
Membersimpledeveloper12-Mar-19 9:22 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan12-Mar-19 9:38
communityengineerRichard MacCutchan12-Mar-19 9:38 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
simpledeveloper12-Mar-19 9:49
Membersimpledeveloper12-Mar-19 9:49 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan12-Mar-19 10:51
communityengineerRichard MacCutchan12-Mar-19 10:51 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
simpledeveloper13-Mar-19 7:29
Membersimpledeveloper13-Mar-19 7:29 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan13-Mar-19 7:38
communityengineerRichard MacCutchan13-Mar-19 7:38 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
simpledeveloper13-Mar-19 13:25
Membersimpledeveloper13-Mar-19 13:25 
GeneralRe: Regular Expression for min of 4 characters in TypeScript Pin
Richard MacCutchan13-Mar-19 23:16
communityengineerRichard MacCutchan13-Mar-19 23:16 
Questionhow can use php code in java? Pin
Member 1417801711-Mar-19 1:45
MemberMember 1417801711-Mar-19 1:45 
AnswerRe: how can use php code in java? Pin
Nathan Minier11-Mar-19 3:51
professionalNathan Minier11-Mar-19 3:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.