
Search In
Hello reader! If you have an array with the records and you want it to be download as CSV format. PHP has built in functions for making the format of CSV. Lets take the example below:-
header("Content-Type: text/csv");
header("Content-Disposition: a
We are using simple jquery to implement a slide down and slide up effect on a div. Also a little styling can be done using css and HTML.
<html>
<div id="divTest" style="width: 40px; height: 40px; display: none; background-color: #fff;">&
If you calling the different versions of Jquery then your code can clash the mutual variables.
To use each of the Jquery versions separately you have to use " jQuery.noConflict()"
Consider the links with multiple Jquery versions below:-
<script
If you want your html form to look more beautiful than just the simple check boxes then you can use the following advance css. This will give rich looks to your html form by styling checkbox
First on the html form create the checkboxes using the cod
Hello Reader! If you want to detect the OS version of user though the web browser.
Then you can use the library code below:-
<?php
$OSList = array
(
// Match user agent string with operating systems
'Windows 3.11' => 'Win16',
'Windows 95' =&
Hello Friends,
NSMutableAttributedString allows to set different attributes(font size,font color) for different parts of the string.
To use NSMutableString you may use the following code:
//Create an object of NSMutableAttrinbuteString and assign it
Sometimes we need to show HTML based on some conditions, so for this we use JSTl in JSP file.
Example: In the below code I'm changinf heading based on condition.
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
&l
The delegation method is performed the reference fields automatically set up on the parent model:
For example you can take idea from below code-
class Child0(models.Model):
_name = 'delegation.child0'
field_0 = fields.Integer()
class
If you want to use WebServices
in OpenERP(Odoo) follow the below mentioned code and paste it in your WebServices – XML-RPC
file:
import xmlrpclib
define HOST, PORT, DB, USER, PASS
url = 'http://%s:%d/xmlrpc/common' % (HOST,PORT)
sock = xmlrpclib.
If you want to make wizard views in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard views_xml file:
<record id="action_idea_cleanup_wizard" model="ir.actions.act_window">
<field name="name">Cleanup</field>
