Posted by: prajapatinilesh | September 29, 2012

How to stop recommendations popup for google plus ?

Posted by: prajapatinilesh | September 22, 2012

+ AddThis custom button code , stop hover on open popup of facebook like.

http://ckeditor.com/

http://ckeditor.com/demo

http://nightly.ckeditor.com/latest/ckeditor/_samples/api.html

http://ckeditor.com/whatsnew

<script>
function setFCKFocus(fckId) {
//added this code to work with mozilla 15.
try {
var instance = CKEDITOR.instances[fckId];
if(instance) {
//var htmlContent = CKEDITOR.instances[fckId].getData();
CKEDITOR.tools.callFunction(90, document.getElementById(‘cke_40’));
return false;
}
}
catch(e) { }
}//End of function setFCKFocus
</script>

To work with old version of ckeditor we need set focus to editor in case of using insertHTML() method to add something into editor.

Error solved :

Error: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLDocument.execCommand]
Source File: http://siteurl.com/ckeditor/ckeditor.jsLine: 12296

How to create ckeditor object into child window, from its parent ckeditor present.
openerObjFound = false;
openerObj = window.opener;

if (openerObj && openerObj != 'undefined') {
    openerObjFound = true;
}

if (openerObjFound) { //if opener object found then only need to check whether spanid found or not.        
    var ckEditorAPIInstance =  window.opener.CKEDITOR;
} else {
    var ckEditorAPIInstance = parent.CKEDITOR;
}
    
var formSubmitedCheck = false;
try {
     var oEditor = ckEditorAPIInstance.instances[fName];
}
catch(e) {
     var oEditor = parent.parent.CKEDITOR.instances[fName];
     var formSubmitedCheck = true;
}
    
if (oEditor) {
}
else {
   alert('oEditor object is not found !');
    return false;
}

oEditor.insertHtml("<span> this is test </span>");

Thanks,
Nilesh Prajapati.
Posted by: prajapatinilesh | September 1, 2012

cross browser checking site.

http://crossbrowsertesting.com/users

We can create username and password to this site and we can check how page will display into diff browser and with diff os. without installing it to our actual PC.

Good site for we developers.

 

Posted by: prajapatinilesh | September 1, 2012

submit form into hidden iframe to give same effect as ajax

<?php

$formName    =  ‘formFileUpload’;
$formAction = $PHP_SELF;

?>

<form name=”<?=$formName?>” action=”<?=$formAction;?>” method=”post” enctype=”multipart/form-data” target=”hiddenjump”>

<input type=”file” id=”fileName” name=”fileName” value=”” size=”30″>

<input type=”submit” value=”submit” name=”btnsubmit” >

</form>

< i frame name=”hiddenjump” src=”” style=”display:none;”> </ i frame>

Posted by: prajapatinilesh | July 27, 2012

How to Check How my Website is Rendered in IE9, IE8, IE7, etc?

open below website and select browser version and its type and click on ok. it will display that page image. how your website page will look like into diff browser.

http://ipinfo.info/netrenderer/

which is an online image render for websites.

This tool is only for showing image of page. it is not surfing actual web site 😦

Thanks,

Posted by: prajapatinilesh | July 26, 2012

Internet explorer ( IE 9 ) run to window xp

IE 9 is only for window 7 or window vista operation system. but if you have window xp then download VPC means virtual pc and run it to window xp. and then use ie9 version into your window xp pc.

Microsoft finally released Internet Explorer Application Compatibility VPC Images for IE9

The Win7+IE8 image is about 2.6GB but the Win7+IE9 is 4.3GB. There’s some extra tools in the IE9 one but they certainly do not add up to the 1.7GB size difference.

download the Win7+IE8 and then upgrading to IE9.

Thanks,

Nilesh Prajapati

Posted by: prajapatinilesh | July 9, 2012

display short description from full description using php

function shortDescription($fullDescription) {
$shortDescription = ”;

$fullDescription = trim(strip_tags($fullDescription));

if ($fullDescription) {
$initialCount = 125;
if (strlen($fullDescription) > $initialCount) {
//$shortDescription = substr(strip_tags($fullDescription),0,$initialCount).”…”;
$shortDescription = substr($fullDescription,0,$initialCount).”…”;
}
else {
return $fullDescription;
}
}

return $shortDescription;
}//End of function shortDescription

OR

function readMoreLink($inputParamArray) {

$description = $inputParamArray[‘description’];
$pageLink    = $inputParamArray[‘pageLink’];
$readMoreLinkClass = $inputParamArray[‘readMoreLinkClass’];

if (trim($description) == ”) {
return ”;
}

$charLimitToDisplay = 255;

$description = strip_tags($description);

if (strlen($description) > $charLimitToDisplay) {
// truncate string
$stringCut = substr($description, 0, $charLimitToDisplay);
// make sure it ends in a word so assassinate doesn’t become ass…
$description = substr($stringCut, 0, strrpos($stringCut, ‘ ‘)).’… <a href=”‘.$pageLink.'” target=”_parent”>Read More &gt;&gt;</a><br>’;
}
}

When we run stored procedure ” getTestspr ” or ” insTestspr ” in mysql query browser we  got the error  –
” Thread stack overrun:  5904 bytes used of a 131072 byte stack, and 128000 bytes needed.  Use ‘mysqld -O thread_stack=#’ to specify a bigger stack. ”

solution :  open the mysql config file.  my.cnf

change the setting of thread_stack=128K  to 256K.

restart the mysql server. and now run the mysql spr.

Thanks,  Nilesh Prajapati.

Hi,

Please try with below 2 solutions  :

1) httpd stop
export SYBASE=/opt/sybase-12.5 or whatver the path to you sybase installation is
httpd start

OR

2) root@systems ~]# apachectl stop
root@systems ~]# export LANG
root@systems ~]# apachectl start

Thanks,

Nilesh Prajapati

Older Posts »

Categories