How to wrap data column in Gridview widget in yii or yii2 framework
The column which you want to wrap should be added the property called “contentOptions” where you can apply the css property to suits your needs and requirements as below. ,…
The column which you want to wrap should be added the property called “contentOptions” where you can apply the css property to suits your needs and requirements as below. ,…
How to validate and restrict unwanted character for mobile or phone number field using jquery $(document).ready(function () { $(‘#mobile’).keyup(function () { var $th = $(this); $th.val($th.val().replace(//g, function (str) { return…
function replace_tag_with_specific_attr_type( $tagAttribute, $tagAttributeValue, $subjectStr, $tagName=null,$replaceStr ) { if( is_null($tagName) ) $tagName = ‘\w+’; else $tagName = preg_quote($tagName); $tagAttribute = preg_quote($tagAttribute); $tagAttributeValue = preg_quote($tagAttributeValue); $match_regex = “/<(“.$tagName.”)*$tagAttribute\s*=\s*”. “()$tagAttributeValue\\2*>(.*?)<\/\\1>/”; preg_match_all($match_regex, $subjectStr,…
function replace_tag_text($tagName,$subjectStr,$replaceStr) { $tagName = preg_quote($tagName); preg_match_all(‘{<‘.$tagName.'*>(.*?)</’.$tagName.’>}’,$subjectStr,$matches,PREG_PATTERN_ORDER); $result = str_replace($matches,$replaceStr,$subjectStr); return $result; } Usage : Say for Example $ActualStr : ‘<div><span style=”margin: 0px 0px 0px 0px; width: 540px;”>something</span><p style=”float: right;…
If any of your html element is getting hide behind the flash object such as youtube video player, or any flash player/object Then you should call this function on body…
In case you are viewing the html page in iphone and the content appear differenct (the font size appearing bigger/smaller) than other phone, then add the below meta tag code…
<html> <head></head> <body leftmargin=”0″ topmargin=”0″> <table cellpadding=”0″ cellspacing=”0″ border=”0″> <tr height=”350″><td align=”center”> <table cellpadding=”0″ cellspacing=”0″ border=1 bordercolor=”black”> <tr> <td valign=”top”> <OBJECT ID=”MediaPlayer” WIDTH=”320″ HEIGHT=”290″ CLASSID=”CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95″ STANDBY=”Loading Windows Media Player components…”…