Skip to content

Logic Bytes

Spread Your Knowledge

  • Home
  • How To
  • PHP
    • Cakephp
    • WordPress
    • CodeIgniter
    • Laravel
  • Python
    • Django
    • Flask
  • Contact

PHP

Code Editors / CodeIgniter / HTML / JavaScript / JQuery / PHP / TinyMCE

TinyMCE URL Conversion Example

February 17, 2018 Chandan SharmaComment on TinyMCE URL Conversion Example

relative_urls : false, remove_script_host : false, convert_urls : true, LIKE:: <script> tinymce.init({        selector: ‘.rte’,        height: 500,       …

Read More
Code Editors / CodeIgniter / PHP / TinyMCE

Get TinyMCE to use full image url instead of relative one

February 17, 2018 Chandan SharmaComment on Get TinyMCE to use full image url instead of relative one

#Get TinyMCE to use full image url instead of relative one Make sure in the javascript initialization you are using, that you have these lines …

Read More
CodeIgniter / PHP

Check whether server is http or https

February 17, 2018 Chandan SharmaComment on Check whether server is http or https

# Check whether server is http or https if (!empty($_SERVER[‘HTTPS’]) && (‘on’ == $_SERVER[‘HTTPS’])) { $uri = ‘https://’; } else { $uri = ‘http://’; } …

Read More
CodeIgniter / PHP

Check when edit if the field is not duplicate Entry

February 17, 2018 Chandan SharmaComment on Check when edit if the field is not duplicate Entry

if($this->input->post(‘user_name’) != $original_value) { $is_unique = ‘|is_unique[users.user_name]’ } else { $is_unique = ” } $this->form_validation->set_rules(‘user_name’, ‘User Name’, ‘required|trim|xss_clean’.$is_unique);

Read More
CodeIgniter / JavaScript / JQuery / PHP

how to get window size for making screen wise changes

February 17, 2018 Chandan SharmaComment on how to get window size for making screen wise changes

var ww = document.body.clientWidth; if (ww < 768) { } else if (ww >= 768) { }

Read More
PHP

How can I define colors as variables in CSS?

February 13, 2018 Chandan SharmaComment on How can I define colors as variables in CSS?

#How can I define colors as variables in CSS? #define a color and use it as a vriable in css Example CSS file :root { …

Read More
CodeIgniter / PHP

Calculate Date Difference in php

February 13, 2018 Chandan SharmaComment on Calculate Date Difference in php

#Date Difference $date_1 = ‘2018-02-16’; $date_1 = ‘2018-02-18’; $dateDifference = dateDifference($date_1, $date_2); print_r($dateDifference); function dateDifference($date_1 , $date_2 , $differenceFormat = ‘%a’ ) { $datetime1 = …

Read More
CodeIgniter / JavaScript / JQuery / PHP

Select all Checkbox in Javascript

February 12, 2018 Chandan SharmaComment on Select all Checkbox in Javascript

Select all Checkbox in Javascript:: <script type=”text/javascript”> $(document).ready(function(){ $(“#checkbx_selectall”).on(‘change’, function() { if(this.checked){             $(‘.__chckbx_select’).each(function(){             …

Read More
CodeIgniter / JavaScript / JQuery / PHP

Check if Field is empty or Not in Javascript

February 12, 2018 Chandan SharmaComment on Check if Field is empty or Not in Javascript

Check if Field is empty or Not in Javascript:: $(“#search-form”).on(‘submit’,function(){ var dis = $(this); searchbox = dis.find(“input[name=’product_name’]”).val(); var submitform = true; $(“#search-form-msg”).css(‘color’,’red’); if(searchbox.trim().length == 0){ …

Read More
CodeIgniter / JavaScript / JQuery / PHP

find input by name jquery in a form on submit in Javascript

February 12, 2018 Chandan SharmaComment on find input by name jquery in a form on submit in Javascript

find input by name jquery in a form on submit in Javascript:: $(“#search-form”).on(‘submit’,function(){ var dis = $(this); searchbox = dis.find(“input[name=’product_name’]”).val(); console.log(searchbox); return false; });

Read More

Posts navigation

Previous 1 2 3 4 … 28 Next

Recent Posts

  • Python Automation Framework-PyUnit (Unittest) Framework
  • Python Automation Framework-TestProject Framework
  • Python Automation Framework-Pytest Framework
  • Python Automation Framework-Lettuce Framework
  • Python Automation Framework-Behave Framework:
  • Top Python Testing Automation Frameworks in 2024
  • Visual Studio Code Keyboard Shortcut Editor
  • Visual Studio Code Keyboard Shortcuts
  • How to Remove Sidebar from Category Pages in WordPress?
  • Best Practices for API Responses

Automation Frameworks Automation Testing Behave Framework Blogger Blogspot Cakephp Cheat Sheets Code Editor CodeIgniter Code Navigation Collaborative Coding Debugging Tools Disable Mouse Right Click Domain Extension Editor Extension Full form Facebook Facebook Video Download IDE JavaScript JQuery Lettuce Framework Microsoft Code Editor Open-Source Code Editor PHP Pytest Framework Python Python-3.x Python Automation Python Automation Frameworks Python Automation Testing Python Pytest Framework Python Testing Frameworks Python TestProject Framework Python Unittest Framework Syntax Highlighting Testing Frameworks Text Editor for Developers Visual Code Visual Code Editor Visual Studio Code Visual Studio Code Cheat Sheet VSCode VSCodeEditor WordPress

Copyright © 2026 Logic Bytes.
Powered by WordPress and PridMag.