
Search In
Sometimes we need to add li elements to ul dynamically based on some list. We can do this by using append() method.
Example- In the below example I have a list "users" and I want to display user names dynamically on page.
<html>
<head
We are change the input type file title with the help of this script
Like Browse Title Change in to Choice File
use this script for change Title
function browseclick(){
var fileinput = document.getElementById("browse"); // use input file id
How add a toggle button for active inactive in Yii CGridView
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'subject-grid',
'dataProvider'=>$model->search(),
'columns'=>array(
'id',
'sub
Yes, we can pass the Block as argument in function. Here it is :
let suppose i create a class Downloader
First declare a Block in Downloader.h:
typedef void (^DownloadComplete)(double,double,double,BOOL,id,id);
then declare method as following i
Hello Readers!
If you want to redirect users after adding a specific product to their cart. Below is the example, just pasted this code into into your theme’s functions.php file
<?php
add_filter( 'woocommerce_add_to_cart_redirect', 'redirec
Sometimes we need to add multiple simple type products to cart programmatically from listing page or using ajax. To do that we need to do some modification in listing page html so required data will be post using add button.
Below is the function we
Hello, if you are working on cakephp and you need the joins with find method here is an example. Here $my_joins is and array having multiple join cases in other different arrays inside it.
$my_joins=array(
'joins' =>
In odoo-9 use Style and Css to make for dynamic website. Styles are defined using standard CSS files. You can define a style as default or optional. The default styles are always active in your theme, the optional styles can be enabled
If you want to extend the default header in odoo-9 , use the below code.
<Customize header>
<template id="custom_header" inherit_id="website.layout" name="Custom Header"> // this is a header template.
<Assign an id>
<xpath ex
Theme is most important part of odoo website and its is also use to make odoo website.
When the themes have been installed only after then XML files loaded, and whenever you make changes on an xml file then each and ever time you will have to force r
