Category Archives: Computers and Internet

jQuery .closest(), .parent() or .parents()

In your page, you may have DOM trees, like <ul><li>…</li>…</ul>,  <tr><td>…</td>…</tr>, and so on. Sometimes, we want to find out who is the parent of current DOM elements. .closest(), .parent() and .parents() methods are similar in that they both traverse up … Continue reading

Posted in Computers and Internet, jQuery | Leave a comment

How to create Double click event on Multi-Selection Options

We have a small project need to add user into group, which is many to many relationship. So we designed two multi-selections to hold available users and existed group users. Each user is one option in the multi-selections, we want … Continue reading

Posted in Computers and Internet, jQuery | Leave a comment

Laravel Oracle DB issue on User Authentication

[Laravel 5.2++] Oracle User Provider When using oracle, we may encounter a problem on authentication because oracle queries are case sensitive by default. By using this oracle user provider, we will now be able to avoid user issues when logging … Continue reading

Posted in Laravel | Leave a comment

jQuery .each() which better than for loop

Want to introduce jQuery .each() method, which is very useful method when you handle array of objects. For example, we have 4 dispatch fields in the form, and we don’t want dispatch time is in the future, so we have … Continue reading

Posted in Computers and Internet | Leave a comment

jQuery .attr() and .prop()

In jQuery, you have to be careful to use .attr() and .prop(). .attr() Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element. .prop() Get … Continue reading

Posted in Computers and Internet, Laravel, Uncategorized | Leave a comment

Fix JSON decoding syntax error

I got a long JSON string from DB, and try to decode the string using json_decode() in PHP, I get null, the empty object. But when I tested it in a JSON pretty page http://jsonprettyprint.com/, everything looks good. It’s no single/double-quotes … Continue reading

Posted in Computers and Internet, Laravel, Lumen, Uncategorized, Yii | Leave a comment

css: make checked checkbox label bold

In many case, we want to highlight the checked checkbox label, so user know it’s checked without mistake. If you know CSS syntax, it becomes very easy: In below case, we just want a certain check box (service, and network … Continue reading

Posted in Computers and Internet | Leave a comment