May 2013

Salesforce

How to add Javascript to Standard Pagelayout in Salesforce?

To add Javascript to Standard Pagelayout in Salesforce, add a HTML Home page Component with HTML checkbox checked. Sample Javascript: <style type="text/css">#popup{display:none;position:absolute;height:100px;width:100px;background:#E6E6FA;      border: 2px solid black;overflow:auto;}#cls{color:red;text-align:right;}</style><script type="text/javascript" src="/soap/ajax/22.0/connection.js"></script><script src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js" type="text/javascript"></script><script ....

Salesforce

CSS is not working

If applied CSS is not working, then try to avoid blank spaces in the CSS. Good CSS: #popup{display:none;position:absolute;height:100px;width:100px;background:#E6E6FA;      border: 2px solid black;overflow:auto;} Bad CSS: #popup{     display:none;    position:absolute;    height:100px;    width:100px;    ....