Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
80% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
~26.0K People Reached
Favorite Tags

83 Posted Topics

Member Avatar for solomon_13000

I am trying to get the add button to enable if I select a valid file otherwise disable it. Also i'm trying to show messages if an invalid file is selected. The code below doesn't not seem to generate the desired result: <form name="myForm"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Add …

0
223
Member Avatar for solomon_13000

Employee.php <div class="col-xs-12"> <h2>Listing Employee</h2> <hr> <div class="employeeGrid"> <table> <tr> <th><a href="" ng-click="orderByField='name'; reverseSort = !reverseSort">Name</a></th> <th><a href="" ng-click="orderByField='age'; reverseSort = !reverseSort">Age</a></th> <th><a href="" ng-click="orderByField='gender'; reverseSort = !reverseSort">Gender</a></th> <th><a href="" ng-click="orderByField='company'; reverseSort = !reverseSort">Company</a></th> <th>Action</th> </tr> <tr ng-repeat="person in employee | orderBy:orderByField:reverseSort""> <td>{{person.name}}</td> <td>{{person.age}}</td> <td>{{person.gender}}</td> <td>{{person.company}}</td> <td> <button class="btn" ng-click="viewEmployee(person.id)"><span …

Member Avatar for solomon_13000
0
351
Member Avatar for solomon_13000

The code below opens a modal window successfully. When I attempt to open the modal window after closing it, my browser window freezes. To unfreeze I press the escape button on my keyboard. Employee.php <div class="modal-footer"> <button type="button" class="btn btn-secondary" ng-click="closeEmployee()" data-dismiss="modal">Close</button> </div> EmployeeModalController.js <div class="modal-footer"> <button type="button" class="btn btn-secondary" …

Member Avatar for solomon_13000
0
508
Member Avatar for solomon_13000

I am attempting to create a simple project for the subject matter for learning and discovery purpose however it doesn't seem to work. My rest API works well but the integration of AngularJS with Laravel doesn't work. You can pull my mini project from [Click Here](https://github.com/solomon13000/angulara). Your help is kindly …

Member Avatar for solomon_13000
0
394
Member Avatar for solomon_13000

I am attemping to calculate the cost by issuing the query below however it always return no value: //Re-calculate the cost price $f15 = "SELECT sum(cost) FROM ingredients WHERE item_id_fk = :targetID"; $e16 = $this->l1->prepare($f15); $e16->bindParam(':targetID', $g4); $e16->execute(); $g5 = $e16->fetch(PDO::FETCH_NUM); error_log(print_r($g5[0], TRUE)); Did I miss out something? Your help …

Member Avatar for diafol
0
3K
Member Avatar for solomon_13000

I am attempting to create a responsive website. On my left hand side I have a jpeg image and on the right hand side there is a box with text description. However when I view the website on a smaller screen device it is not resizing properly especially the image. …

Member Avatar for Violet_82
0
276
Member Avatar for solomon_13000

The following html consists of two section, the left and the right. The problem I am facing is when I view on tablet or other mobile device the image (dimension 562 x 330) on the left does not scale consistently with the information box on the right. I attempted to …

Member Avatar for jkon
0
386
Member Avatar for solomon_13000

The code below works well on all browser except for IE 8. So I added the respond.js script however it is not responsive in IE 8. Did I missed out something? <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <title>index</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> …

Member Avatar for gentlemedia
0
230
Member Avatar for solomon_13000

I can't seem to make my menu work. **test.htm** <html> <head><head> <link rel="stylesheet" href="slicknav.css" /> <script src="jquery-1.11.1.min.js"></script> <script src="jquery.slicknav.js"></script> <script src="initialize.js"></script> <title></title> <body> <ul id="menu2"> <li>Parent 1 <ul> <li><a href="#">item 3</a></li> <li>Parent 3 <ul> <li><a href="#">item 8</a></li> <li><a href="#">item 9</a></li> <li><a href="#">item 10</a></li> </ul> </li> <li><a href="#">item 4</a></li> </ul> </li> …

Member Avatar for KoniKodes
0
2K
Member Avatar for solomon_13000

The code below ensures that my entry is only numeric with 2 decimal. <input type="text" maxlength="10" name="numPrice" value="1.00"> $("input[name='numPrice']").keyup(function(){ if(!(/^\d+(\.{0,1}\d{0,2})?$/.test(this.value)) ){ this.value = this.value.substring(0, this.value.length - 1); } return this; }); However values such as 1&.0 is not rejected by the code above. Did I miss something?

Member Avatar for solomon_13000
0
251
Member Avatar for solomon_13000

I attempted to access the code below using safari browser but the input mask accepts any value which is wrong. <html> <head></head> <script src="C:/Users/marieeugene/Desktop/inputmask/jquery-1.11.1.min.js" type="text/javascript"></script> <script src="C:/Users/marieeugene/Desktop/inputmask/jquery.inputmask.bundle.js" type="text/javascript"></script> <script> $(document).ready(function(){ $(":input").inputmask(); }); </script> <body> <input data-inputmask="'alias': 'numeric', 'groupSeparator': ',', 'autoGroup': true, 'digits': 4, 'digitsOptional': false, 'prefix': '$ ', 'placeholder': '0'" …

0
113
Member Avatar for solomon_13000

The following SQL query would return 1 record with a min(unit_cm): select id, name, category, min(unit_cm), unit_Cost, unit_price, unit_costPerc from ( SELECT a.id, b.name, e.name as 'category', (d.unit_price - d.unit_cost) as 'unit_cm', d.unit_cost, d.unit_price, ((d.unit_cost/d.unit_price)*100) as 'unit_costPerc' FROM menu_items a, item b, menu c, price d, categories e where a.item_id_fk …

Member Avatar for diafol
0
200
Member Avatar for solomon_13000

I am attempting to organize my code in the following manner: if (is_ajax()) { if (isset($_POST["action"]) && !empty($_POST["action"])) { //Checks if action value exists $action = $_POST["action"]; switch($action) { //Switch case for value of action case "initMsg": initMsg_function(); break; case "initCombo": initCombo_function(); break; } } } function is_ajax() { return …

Member Avatar for minitauros
0
58
Member Avatar for solomon_13000

When I access call.php the variable name 'json' is not accessible to param.js as below: init.js $("document").ready(function(){ var data = { "action": "init" }; data = $(this).serialize() + "&" + $.param(data); var json; $.ajax({ type: "POST", dataType: "json", url: "response.php", //Relative or absolute path to response.php file data: data, success: …

Member Avatar for diafol
0
320
Member Avatar for solomon_13000

I have this codes in a php file (init_js.php): <script> <?php $idx = $_GET['id']; $APP_WEB_PATH = APP_WEB_PATH; ?> var idx = '<?=$idx?>'; var APP_WEB_PATH = '<?=$APP_WEB_PATH?>'; </script> Then I import this file to a php page (branch.php). When I view source I can see var idx = '7'; var APP_WEB_PATH …

Member Avatar for solomon_13000
0
121
Member Avatar for solomon_13000

The following codes can be found in my javascript file (code.js): function addBranch(path, id){ //Click "Cancel" button return to Restaurant Manager Page $("input[name=btCancel]").click(function(){ window.location.href = path + '/branch_manager.php?id=' + id }); } The following codes can be found in my php file (test.php): <script src="<?php echo APP_WEB_PATH; ?>/js/jquery-1.11.1.min.js" type="text/javascript"></script> <script …

Member Avatar for solomon_13000
0
234
Member Avatar for solomon_13000

I am getting an error for the line of code included in a js file. $(document).ready(function(){ //Click "Cancel" button return to Restaurant Manager Page $("input[name=btCancel]").click(function(){ window.location.href = "<?php echo APP_WEB_PATH,"/branch_manager.php?id=".$_GET['id'];?>"; }); }); The uncaught exception points to window.location.href = "<?php echo APP_WEB_PATH,"/branch_manager.php?id=".$_GET['id'];?>"; Is it because I cannot mix JavaScript with …

Member Avatar for solomon_13000
0
404
Member Avatar for solomon_13000

I have two modules built by two developers: 1) backoffice 2) reporting However they share a single connection. The problem now is the security aspect. Both modules are independent in their respective folder(s) but they share the same connection. A developer mention that with the current architecture it is impossible …

Member Avatar for cereal
0
256
Member Avatar for solomon_13000

I notice that my PHP code contain special numbers (e.g. _5b9652a96785) representing variables: <?php include_once('../include/config.php');include_once('../class/db.php');if (isset($_POST["points"])) {$_5420457f97cc = json_decode(stripslashes($_POST["points"]), true);$_a095ff903bcc = trim($_5420457f97cc["itemName"]);$_58f60403479c = trim($_5420457f97cc["itemCost"]);$_bb2bde3e818f = trim($_5420457f97cc["itemPrice"]);$_5b9652a96785 = $_5420457f97cc["itemUnit"];$_03d9de238649 = $_5420457f97cc["itemCategory"];$_22f632d073d5 = $_5420457f97cc["ingredientArray"];$_83647d4cbbd0 = new dbPdoMysql;$_6445f036fed3 = $_83647d4cbbd0->dbInsertItem($_a095ff903bcc,$_5b9652a96785,$_03d9de238649,$_58f60403479c,$_bb2bde3e818f, $_22f632d073d5);if ($_6445f036fed3 == true){echo "true";}else{echo "false";}}else{}?> What does the special numbers mean and …

Member Avatar for pritaeas
0
198
Member Avatar for solomon_13000

I intend to integrate single sign on (facebook login) to my php website. However I intend to do so without installing the SDK into my 3rd party web server. What is the best way to achieve this?.

Member Avatar for pritaeas
0
101
Member Avatar for solomon_13000

I would like to enquire further details about the terms of using php for commercial application development. The scenario is that I have built an application using PHP and intend to host it with a 3rd party hosting company. I am renting the server at the hosting company and the …

Member Avatar for lorenzoDAlipio
0
215
Member Avatar for solomon_13000

Instead of using synchronization, I used AtomicReference as a substitute: private AtomicReference<HashMap<String,String>> a = new AtomicReference<HashMap<String,String>>(); public String initPool(HashMap<String,String> latest){ HashMap<String, String> old = a.get(); if(old!=null){ Set<String> key = a.get().keySet(); for(String val: key){ if(!latest.containsKey(val)){ a.get().put(val,latest.get(val)); return returnObj(val); }else{ return returnObj(val); } } }else{ a.compareAndSet(old, latest); return null; } return null; …

Member Avatar for JamesCherrill
0
152
Member Avatar for solomon_13000

The line appears as a red line in google chrome for the below tag: <hr width="1052" style="border: 1px solid #990000" color="#990000" size="1"> However when I view in IE it appears as a box with white filling but red border line. Did I miss something? Your help is kindly appreciated. Thank …

Member Avatar for Violet_82
0
243
Member Avatar for solomon_13000

I tend to receive the following error message when I view the site in IE 9: HTML1524: Invalid DOCTYPE. The shortest valid doctype is "<!DOCTYPE html>". activate.html, line 1 character 1 SEC7113: CSS was ignored due to mime type mismatch style.css I include herewith the html code: <!DOCTYPE html PUBLIC …

Member Avatar for Troy III
0
523
Member Avatar for solomon_13000

I have a form to submit the details as below: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Activate</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=3.0.1"> </script> <script type="text/javascript" src="js/activate.js"> </script> </head> <body> <form method="post" name="form"> <table style="text-align: left; width: 789px; height: 715px;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="width: 305px;"> …

Member Avatar for paulkd
0
265
Member Avatar for solomon_13000

I attempted to implement image rotation using google jquery library. The problem is that the image rotation stops at 5.jpg and doesn't go back to 1.jpg to 2.jpg.........and so on. Did I miss out something? <html> <head> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=3.0.1"> </script> <script type="text/javascript" src="js/img-rotator.js"> </script> <link rel="stylesheet" href="css/style.css" type="text/css" …

Member Avatar for paulkd
0
319
Member Avatar for solomon_13000

I am a Java developer but out of curiousity I would like to find out why is it not necessary for a method to declare an exception when coding in C++? So does it make C++ a weaker language since it enforces a weaker rule?

Member Avatar for mike_2000_17
0
227
Member Avatar for solomon_13000

I found some reading materials about factory design pattern (parallel hierarchy) whereby a class in a hierarchy has a corresponding class in the another hierarchy. So I wrote the code as below: package com.factory3; public abstract class Subject { abstract SubjectPlanner createPlanner(); } package com.factory3; public class English extends Subject{ …

0
156
Member Avatar for solomon_13000

I wrote a code to represent the factory design pattern as below: package com.factory2; public interface CreditCheck { Double creditLimit(int id); } package com.factory2; public class CreditCheckFactory { public boolean isAgencyUp(){ return true; } public CreditCheck createCreditCheck(){ if(isAgencyUp()){ return new CreditCheckOnline(); }else{ return new CreditCheckOffline(); } } } package com.factory2; …

Member Avatar for JamesCherrill
0
285
Member Avatar for solomon_13000

I wanted to verify is this a good example of a flyweight design pattern: package com.flyweight; public interface Chemical { String getName(); String getSymbol(); Double getAtomicWeight(); } package com.flyweight; import java.util.HashMap; import java.util.Map; public class ChemicalFactory { private static Map chemicals = new HashMap(); private static ChemicalFactory factory = new …

Member Avatar for ~s.o.s~
0
189
Member Avatar for solomon_13000

I wrote the following code: package com.chain; public interface Chain { void setNext(Chain chain); void process(int number); } package com.chain; public class ProcessNegative implements Chain{ private Chain chain; public void setNext(Chain chain){ this.chain = chain; } public void process(int number){ if(number < 0){ System.out.println("Negative"); }else{ chain.process(number); } } } package …

Member Avatar for solomon_13000
0
238
Member Avatar for solomon_13000

I am attempting to load an 3 icon image but my code doesn't do so: package com.proxy; import java.awt.Component; import java.awt.Graphics; import javax.swing.ImageIcon; import javax.swing.JFrame; public class ImageIconProxy extends ImageIcon implements Runnable{ static final ImageIcon ONE = new ImageIcon("/IFDesign/images/green.jpg"); static final ImageIcon TWO = new ImageIcon("/IFDesign/images/yellow.jpg"); ImageIcon CURRENT = ONE; …

Member Avatar for solomon_13000
0
363
Member Avatar for solomon_13000

Base on my understand a mediator is a central authority that varies the interaction between objects in the same group. So can I classify the code below as a mediator? package com.mediator; public class BaseMediator { public void store(){ System.out.println("store"); } public void retrieve(){ System.out.println("retrieve"); } } package com.mediator; public …

Member Avatar for solomon_13000
0
231
Member Avatar for solomon_13000

The problem with my code is that the update method doesn't get invoked even after I notify the observers. Did I miss something in my code? package com.observer3; import java.awt.FlowLayout; import java.util.Observable; import java.util.Observer; import javax.swing.JLabel; import javax.swing.JPanel; public class A extends JPanel implements Observer{ JLabel lbl; public A(){ setLayout(new …

Member Avatar for solomon_13000
0
430
Member Avatar for solomon_13000

The code below is responsible to iterate the eachFilter array and then process the values in the array. Code: var eachFilter = ['stk_product In List 1002,1004','stk_status In List W,N']; for(var i = 0; i < eachFilter.length ; i++){ var stk = ['stk_product','stk_status']; var len1=0, len2=0, len3=0; var re1 = new …

Member Avatar for Taywin
0
137
Member Avatar for solomon_13000

A web server is used to process http request and send a response back to the client browser. I was wondering how does a client browser send a http request to the web server? Is it done via socket connection? Which socket connection is used to establish a connection with …

Member Avatar for ~s.o.s~
0
225
Member Avatar for solomon_13000

I have a file with the name foo.htm inside a folder abc. I am invoking the below script from another html page known as query.html in the folder abc. $.ajax({ url: '/foo.htm', method: 'GET', complete: function(a,b){ alert('complete-2'); }, success: function(a){ alert('good-2'); }, error: function(a,b){ alert('problem-2'); }, }); However, I am …

Member Avatar for Airshow
0
1K
Member Avatar for solomon_13000

There are 5 columns in my table structure and they are: 1) Id - PK 2) Name 3) IdentityNo1 4) IdentityNo2 5) PassportNo Since duplicate records are inserted into the table I am attempting to remove the duplicate records. What makes the records unique is the IdentityNo1, IdentityNo2 and Passport …

Member Avatar for buddylee17
0
157
Member Avatar for solomon_13000

When the exchCode is empty the record shouldn't be displayed. However the code below display the records. SELECT * FROM( SELECT bhCliCode, exchCode = CASE X.Which WHEN 'accSgx' THEN accSgx WHEN 'accHk' THEN accHk WHEN 'accIdx' THEN accIdx WHEN 'accUs' THEN accUs WHEN 'accSet' THEN accSet WHEN 'accPhp' THEN accPhp …

Member Avatar for solomon_13000
0
207
Member Avatar for solomon_13000

The code below works: public class concat { public static void main(String[] args){ String[] filters = {"A","B","C","A","K","C"}; String[] values = {"1","2","3","4","5","6"}; String a = ""; for(int i=0;i<filters.length;i++){ String temp = filters[i]; for(int j=0;j<filters.length;j++){ if(filters[j].equalsIgnoreCase(temp)){ a += values[j] + " "; values[j]=""; } } if(a.trim().length()!=0){ System.out.println(temp + " [" + a …

Member Avatar for Taywin
0
115
Member Avatar for solomon_13000

I created an EJB project using Spring toolkit Suite. The JDK is version 7 and the JBOSS application server version 7. However I keep getting the following error message: 17:57:35,015 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA 17:57:35,140 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA 17:57:35,202 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final …

0
121
Member Avatar for solomon_13000

I attempted to set up pagination for the datalist control. However when I click next link the next image doesn't display. Then when I click previous the first image is displayed. Did I miss something in the code? [CODE] <table border="0" width="800" bgColor="#ffffff" height="644"> <tbody> <tr bgColor="#ffffff"> <td height="173" colspan="2" …

0
121
Member Avatar for solomon_13000

The code below will add new form elements when ever I click the add button. However when you add more elements the combo box element goes out of alignment. Try it out. Now is there a way to fix this problem?. [U]multientry.js[/U] [CODE] function addValue(divname){ var newdiv = document.createElement('div'); newdiv.innerHTML …

Member Avatar for lordjohar
0
796
Member Avatar for solomon_13000

How can I ensure that the stored procedure below is able to use either one or all the parameters to filter records from a table? CREATE PROCEDURE ABC @StartDate datetime = null, @EndDate datetime = null, @UserId varchar(255) = null, @AccNo varchar(255) = null AS BEGIN IF @StartDate IS NULL …

Member Avatar for solomon_13000
0
108
Member Avatar for solomon_13000

I attempted to invoke a C# method using jQuery but it failed. The reason is because the method cannot be found. However the method exist in the class. Did I miss something? Your help is kindly appreciated. Thank You

Member Avatar for solomon_13000
0
230
Member Avatar for solomon_13000

I attempted to add new row but it does not seem too work. Did I do something wrong? [B][U]Pricing.html[/U][/B] [CODE] <HTML> <HEAD> <TITLE></TITLE> <SCRIPT SRC="jquery-1.7.1.js" LANGUAGE="text/javascript"></SCRIPT> <SCRIPT SRC="addRow.js" LANGUAGE="text/javascript"></SCRIPT> </HEAD> <BODY> <TABLE> <THEAD> <TR> <TH bgcolor="#33CC00">Select</TH> <TH bgcolor="#33CC00">Quantity</TH> <TH bgcolor="#33CC00">Inner Packaging</TH> <TH bgcolor="#33CC00">Quantity</TH> <TH bgcolor="#33CC00">Outer Packaging</TH> <TH bgcolor="#33CC00">Price</TH> <TH bgcolor="#33CC00">Minimum …

Member Avatar for solomon_13000
0
227
Member Avatar for solomon_13000

I have two product brand. For example:- Product A - Nestle Brand (Table A) Product B - Cadbury Brand (Table B) I have an order table with the attributes: -id -orderNo -foreign key reference to table A -foreign key reference to table B -quantity -createdDate The data base on the …

Member Avatar for solomon_13000
0
248
Member Avatar for solomon_13000

The code below produced the error: OUT or INOUT argument 3 for routine mysql.getAuthentication is not a variable or NEW pseudo-variable in BEFORE trigger. Did I miss something?. [CODE] using System; using System.Data.Odbc; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using MySql.Data.MySqlClient; public partial class …

Member Avatar for thines01
0
2K
Member Avatar for solomon_13000

The JavaScript logics below doesn't display the value from the demo_get.txt in ajax.html. Did I do something wrong? [U]ajax.html[/U] [CODE] <HTML> <HEAD> <script type="text/javascript"> function ajaxRequest(){ var xmlhttp; if(window.XMLHttpRequest){ xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET","demo_get.txt",false); xmlhttp.send(); document.getElementById("panel").innerHtml = xmlhttp.responseText; }else{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("GET","demo_get.txt",false); xmlhttp.send(); document.getElementById("panel").innerHtml = xmlhttp.responseText; } } …

Member Avatar for stbuchok
0
227
Member Avatar for solomon_13000

I created a stored procedure as below: [CODE] DELIMITER$$ CREATE PROCEDURE updateCorporateDetails(IN companyName VARCHAR(30), IN rocNo VARCHAR(20), IN address VARCHAR(30), IN postalCode INT, IN state VARCHAR(20), IN country VARCHAR(20), IN contactNo VARCHAR(20), IN email VARCHAR(20), IN fax VARCHAR(20), IN lastUpdate DATETIME, OUT total INT) BEGIN DECLARE var1 INT; SET @var1 …

Member Avatar for solomon_13000
0
866

The End.