JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Oct 3, 2023 06:04
NO worries guys I got it. Don't worry about the above problem
Oct 3, 2023 05:40
I have mention my code block in the above link
Oct 3, 2023 05:39
I am trying to map inside array of Object in React JS. I have three layers of depth. It was easy to render them using map function for 2 layers but could not figure why can't i map inside third layer. codesandbox.io/s/map-nested-array-obj-t5dvlk?file=/src/App.js
Oct 3, 2023 05:15
HI guys
Jun 29, 2022 06:13
0
Q: React Pin Input with React Simple Keyboard not working

Sus HillI was trying if there is any way to give a built in Numeric keyboard for Ipad view. React Pin Input doesn't seams to take the input field values. I tried to add a different class for input field so that i can add the values manually. But even adding values manually doesn't seems to work. Length i...

Jan 6, 2022 01:13
@ModarNa dont know why its not rendering console.log(props.retriveRole);
Jan 6, 2022 01:13
@ModarNa thats all right
Jan 6, 2022 01:01
@ModarNa console.log(props) is rendering all the data passed from parent component but not able to render it
Jan 6, 2022 01:00
Its some webpack issue in codesandbox, you can ignore that
Jan 5, 2022 23:10
Hi guys, I got stuck in a React project
https://codesandbox.io/s/unruffled-satoshi-q3lee?file=/client/src/views/Staff/AddEmployee.js
I want to pass a object from parent class component to prop child component

Parent component class is
https://codesandbox.io/s/unruffled-satoshi-q3lee?file=/client/src/views/Staff/listEmployee.js

where I am passing value to child via function for retrieveRole, location and employer

Whats the best way to send the value in object to render this in child class.
Jan 5, 2022 09:27
Hi guys
Nov 29, 2017 13:32
I was trying to insert JSON object in a table body section with reference from encodedna.com/javascript/… site and I am always getting XSS. You can view the code here paste.ofcode.org/FcLC2axDrmjjyAWmFL4Zwx
Nov 29, 2017 12:08
I was trying to insert JSON object in a table body section with reference from encodedna.com/javascript/… this site and I am always getting XSS. You can view the code here paste.ofcode.org/FcLC2axDrmjjyAWmFL4Zwx
 

Java

Dedicated to the discussion of the Java programming language a...
Apr 30, 2019 02:28
while(fareType !=1 || fareType !=2){

System.out.println("Bad Input Fare Type: 1 OR 2 (1: Full fare, 2: Concession) ");
fareType = scanner.nextInt();

if(fareType ==1 || fareType ==2){
scanner.close();
break;
}
Apr 30, 2019 02:28
just want to know why program enters while mood if the scanner integer is not matched
Apr 30, 2019 02:27
hi guys
Jul 27, 2017 08:26
@CrowleyAstray yea i got that
Jul 27, 2017 08:25
okay i saw it in someone blog casting int in an array length, so I was curious about that
Jul 27, 2017 08:23
@geisterfurz007 for this kind of long length array eg {1,2,5,6,9,8,5,0,0,0,5,6,8,2,3,4,4}, i think its length will be always in number 2 digits, so i dont need to cast int in it yea ?
Jul 27, 2017 08:19
@geisterfurz007 okay if the array length is more than 10 then i need to cast it in int
Jul 27, 2017 08:19
okay thats clears it
Jul 27, 2017 08:18
@geisterfurz007 o then in which case we use int c = a.length/2 ??
Jul 27, 2017 08:17
whats ta difference in int c=(int)(a.length/2); and int c = a.length/2 ??
Jul 17, 2017 08:14
yea
Jul 17, 2017 08:14
@geisterfurz007 i tried with 3232..it returns the higgest repeted numbers
Jul 17, 2017 08:12
hahaha
Jul 17, 2017 08:11
@Wietlol :D
Jul 17, 2017 08:10
then he should be punched.. I already spend one whole nights for this question
Jul 17, 2017 08:09
Is it a tricky question or false question ?
Jul 17, 2017 08:08
@Tavo I cant change any thing in main method, so for passing 2 integers in another methods doesn't help
Jul 17, 2017 08:05
@Wietlol method must have two int values yea
Jul 17, 2017 08:05
@Wietlol it is the exact question that was on paper
Jul 17, 2017 08:02
where can i paste it ?
Jul 17, 2017 08:02
@MadaraUchiha I cannot paste my question here.. already got 2 warnings
Jul 17, 2017 08:02
i am talking about the paramater searating
Jul 17, 2017 08:01
@MadaraUchiha but the one who has written question says, theres a way for that to run
Jul 17, 2017 07:59
if the numbers in comma then we need to return 0
Jul 17, 2017 07:59
@Wietlol basically what question means is that, we need to return the max occur number of a integer value
Jul 17, 2017 07:58
those are 2 integers
Jul 17, 2017 07:58
yea I was also saying this but some says theres a way
Jul 17, 2017 07:57
@Wietlol yes
Jul 17, 2017 07:57
@geisterfurz007 maxOccurDigit(3232, 6) will returns -1
Jul 17, 2017 07:56
it was a question asked in exam
Jul 17, 2017 07:56
I can't change that
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Oct 16, 2018 07:33
Hello every body
 
Oct 16, 2018 07:32
I need a help is anybody around to show what I am doing wrong?
Oct 16, 2018 07:32
hello guys
 

HTML / CSS / WebDesign

This room is now defunct. RIP.
Jan 19, 2018 06:59
Does anyoe know why the popup design is different in firefox than in chrome skynet.wensolutions.com/co-workers/jagat/multi
 

Trash can

Like the recycle bin, but trashier.
Jul 17, 2017 08:04
thank you tavo