Posts

Showing posts from April, 2017

Google Adsense alternative for Sri Lankans

Hi, I found difficult to get Adsense to local content .However WP beginner post assist me a lot . http://www.wpbeginner.com/beginners-guide/make-money-online/?utm_source=retargeting&utm_medium=fbads#make-money-with-affiliate-marketing But there are others like amazon. One of good guide : https://www.wpsitecare.com/amazon-affiliate-wordpress/

Url encode decode anchor links with AngularJS PHP

Image
I had following link  in one of rest call which lead to SQL unexpected result due to & symbol. http://localhost/test/getDsv?$top=32&$skip=0&var=HR & Admin&com= Query has only considered  var=HR   only  which leads to unexpected results. My front end is anguler and I can encode the perticulter paramenter with  window . encodeURIComponent() Ref : http://stackoverflow.com/questions/11294107/how-can-i-send-the-ampersand-character-via-ajax To Decode it at PHP side there in nothing to do ,although there are lot of posts ,which indicate decoding. $this->_request['var']; http://stackoverflow.com/questions/11294107/how-can-i-send-the-ampersand-character-via-ajax

ICT AL - Dynamic and Static Web Pages

Image
Copyrights Goes to :https://web.facebook.com/alits.lk/?_rdc=1&_rdr

jQery Serialize Form Explicitly

Image
                                                In order to pass the HTML controls without using submit button. HTML  <div class="col-md-12"><button type="button" id="reject" class="form-control  btn-info " onclick="reject()" >Reject</button></div>                       js                                function reject() {                                                var fromdata=$('#detailform');                                           var data = $(fromdata).serialize();  $.post("./index.php?controller=project&action=reject", data, function (o) { } PHP get control values back