How to refresh a value based on a drop down selection code igniter

I’m making a chart based on a drop down selection in code igniter. but i’m getting trouble in refreshing the value after i select a drop down list.

i’m using onchange but it seems not working

Layanan
Hasil
Waktu
Biaya

var temp = document.getElementById(“sel1”).value;

the refresh page is working, but the value is not changing. it keep get back to the first selection. any idea?

How to refresh a value based on a drop down selection code igniter

read more

How to build distribution package in multi-module Gradle project?

I have seen this post Gradle multi project distribution but still have some doubts.
I would like to create the following project layout

root
  |--lib-java-module
  |--spring-boot-module
  |--3PP_A_module         # not java 
  |       |-- custom scripts, config
  |--3PP_B_module         # not java 
  |       |-- custom scripts, config
  |--dist-module

As you might have guessed, I want the dist-module to build myapp-dist.tar.gz with libjava.jar, sprintbootapp.jar, 3pp-a.tar, 3pp-b.tar.

read more

Synchronous observable angular

I use a API in order to get information. However, sometimes I get all the information, sometimes I get just some and sometimes they are not in the good order.

getData(start:string,fin:string)
{
this.tab=[];
var index=parseInt(start);
this.service.getInfos(start,fin).subscribe(data => 
{
data.results.forEach((element,i) => 
{
var name;
var type;
var description;
name=element.name;
this.service.getInfo((index+1).toString()).subscribe(datatype => 
{
if(datatype.types.length>1)
{ 
type= datatype.types[1].type.name; 
}
else
{
type= datatype.types[0].type.name;
}
});
this.service.getDescription((index+1).toString()).subscribe(datades=>
{
datades.flavor_text_entries.forEach(el => 
{
if(el.language.name.toString()=='en')
{
description=el.flavor_text;
}
});
var value=new data(this.tab.length+1,name,info,description);
this.tab.push(poke);
});
index++;
});
});
}

read more

ERROR in Entry module not found: Error: Can’t resolve ‘./src’ in ‘D:\my_app’

I am getting this error while starting the Node-React app. The error is coming from npm start command which uses the webpack config file. I know that webpack uses src/index.js file by default to start the app but I have already created an entry in the webpack.config.js file for this my entry point now looks like

module.exports = {
entry: ‘./client/index.js’,

As I do not have any src folder in my app and I do not want to create a dummy one with an index.js file inside it. I am looking for a permanent solution to this problem.
Please help me to identify the issue, If needed I can provide more details on this.

read more

How to configure viewport addon for Angular

According to this documentation i am trying add custom viewport in conifig.js file:

import { addParameters } from '@storybook/angular'; // changing from react to angular
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';

const newViewports = {
  kindleFire2: {
    name: 'Kindle Fire 2',
    styles: {
      width: '600px',
      height: '963px',
    },
  },
  kindleFireHD: {
    name: 'Kindle Fire HD',
    styles: {
      width: '533px',
      height: '801px',
    },
  },
};

addParameters({
  viewport: {
    viewports: {
      ...INITIAL_VIEWPORTS,
      ...newViewports,
    },
  },
});

read more