• dmitri_inetindustry
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
We started getting emails "Warning: Page Views Are at 93% of Your Limit", which is 93% of 500,000 page views since summer '14 release. This is impossible as most if not all our page views are coming from authenticated users, see the Help Article on this below.

https://help.salesforce.com/HTViewHelpDoc?id=sites_limits.htm&language=en_US

It says:

"A page view is a request from a non-authenticated site user to load a page associated with one of the sites within your Force.com domain or custom domain. Requests from authenticated portal users are not counted as page views."

We have a polling action that starts after users log in, users are using Authenticated Website user license. Just the past 2 months we started receiving this "warning", it wasn't happening before, must be the Summer '14 release.

We have a polling action that triggers Apex/Ajax callout every 10 seconds.

...
setInterval(function(){checkForNewMessages();},10000);
...
Visualforce.remoting.Manager.invokeAction(
'{!$RemoteAction.SiteUserTemplateController.checkForNewMessages}',
...

This call is counted toward the Page Views Limit, which It Shouldn't Because User is Authenticated.

Any way to serve manifest files from SFDC, static resource, vf page, other with mime type 'text/cache-manifest'?

  • August 09, 2010
  • Like
  • 0
One of the largest pain points with inline visualforce pages is that the height is static even though the content may be dynamic. The response from salesforce.com has been:

"As for iframes, they do not provide a "dynamic height" capability natively. If the domain of the page that served the iframe is the same as that of the page that is embedded in the iframe then you can write script that resizes the frame to fit the contents but this is something that is not possible for Visualforce pages since they are now served from force.com."

Well....I tried this and it now works. I added this inline page to a layout and in the settings set the height to 15px. Once loaded it dynamically adjusts the height based on the content. So far I have tested with FF3 and IE6, works on both.

<apex:page standardcontroller="Opportunity">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make
a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,
remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions
of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable
content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal
distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.
Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search
for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years,
sometimes by accident, sometimes on purpose (injected humour and the like).Where does it come from? Contrary to popular
belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making
it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of
the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical
literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum
et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics,
very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in
section 1.10.32. The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections
1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form,
accompanied by English versions from the 1914 translation by H. Rackham. Where can I get some? There are many variations
of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised
words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there
isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat
predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200
Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable.
The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.

<script type="text/javascript">
resizeIframe();
function resizeIframe() {
var me = window.name;

if (me){
var iframes = parent.document.getElementsByName(me);
if (iframes && iframes.length == 1) {
var height = document.body.scrollHeight;
iframes[0].style.height = height + "px";
}
}
}
</script>
</apex:page>

 

Message Edited by TehNrd on 03-03-2009 03:36 PM
  • March 03, 2009
  • Like
  • 0