Create Dynamic Navigation Menu using Javascript

Today, i’ve learn how to Create Dynamic Navigation Menu using Javascript. In this post, i will focus on client side implementation therefore i use json for data format. My main idea is: i will save the menu data on database and when the user do log in, i will retrieve the menu data (based on on user role) and create the json format from these menu datas, then save it on the session. By saving menu datas on json format and save it in session, i can optimize on fetching

Continue reading

Hide and Show HTML Element based on Select Option Using JQuery

Today, i want to share about Hide and Show HTML Element based on Select Option Using JQuery for some purpose, we want to show or hide an HTML element (eg: button, input text, etc) based on select option. we can achieve that requirement using JQury framework you can get here. We will use hide(), show(), and change() function that already provided by JQuery. hide function: example: $( ".target" ).hide(); From official JQuery description here: The matched elements will be hidden immediately, with no animation. This is roughly equivalent to calling

Continue reading

Tutorial Customize JPos NACChannel with Tail

Today i want to share Tutorial Customize JPos NACChannel with Tail Jpos Library comes with several channel implementation. Most channel implementation extend BaseChannel class and just override the sendMessageLength and getMessageLenght methods. every channel implementation have different message format, for example NACCHannel using LL LL [TPDU] ISO-Data message format, where: LL LL represent the TPDU + ISO-Data length in network byte order Optional TPDU(Transport protocol data unit) ISO-Data: ISO-8583 image in my experience for integration with Base24 they send ISO-8583 with format LL LL [TPDU] ISO-Data tail, so my JPos

Continue reading

JPos Server Forward Request Message to Another Server

Today i want to share about JPos Server Forward Request Message to Another Server. The Jpos server get request message from a client and then forward the message to another server for some purpose. Picture below show us the illustration: we will focuse on how Server A forward the message to the server B, and give response message to the client. First create file 10_server.xml <server class="org.jpos.q2.iso.QServer" logger="Q2" name="MyISOServer"> <attr name="port" type="java.lang.Integer">15500</attr> <attr name="maxSessions" type="java.lang.Integer">20</attr> <attr name="minSessions" type="java.lang.Integer">10</attr> <channel name="ClientChannel" class="org.jpos.iso.channel.NACChannel" logger="Q2" packager="com.mandiri.soa.ubp.UBPPackager" header="000000000000"> </channel> <request -listener class="com.mii.controller.ServerListener" logger="Q2"> <property

Continue reading

JPos Client Receive Request From Remote Server

Today, i want to share how JPos client handle request message from remote server. i just learn JPos ISO 8583 framework, and looking for information about it. you can find information about jpos framework on their official site here. in this post, i want to share what i have learned about JPos Client Receive Request From Remote Server. Normally, a client is responsible for sending request and wait response from server. But in my project, the server want to send Network Management (0800 message) to my client address, because they

Continue reading