Search results for 'FireFox'. 2 post(s) found.

  1. 2008/05/03 IFRAME Auto Resize in IE, FireFox by Javascript (13)
  2. 2008/02/14 How to elimiate the "Restore Previous Session" dialog when FireFox 2.0 starts
2008/05/03 08:39

IFRAME Auto Resize in IE, FireFox by Javascript


Here's the simple iframe auto-resize example working on IE, and FireFox.

<iframe id='ifrm'
                frameborder=0
                width=100%
                height=450
                scrolling=no
                src='http://kurapa.com'
></iframe>

<script language='javascript'>

function getDocHeight(doc)
{
  var docHt = 0, sh, oh;
  if (doc.height)
  {
    docHt = doc.height;
  }
  else if (doc.body)
  {
    if (doc.body.scrollHeight) docHt = sh = doc.body.scrollHeight;
    if (doc.body.offsetHeight) docHt = oh = doc.body.offsetHeight;
    if (sh && oh) docHt = Math.max(sh, oh);
  }
  return docHt;
}
function getReSize()
{
  var iframeWin = window.frames['ifrm'];
  var iframeEl = window.document.getElementById? window.document.getElementById('ifrm'): document.all? document.all['ifrm']: null;
  if ( iframeEl && iframeWin )
  {
    var docHt = getDocHeight(iframeWin.document);
    if (docHt != iframeEl.style.height) iframeEl.style.height = docHt + 'px';
  }
  else
  { // FireFox
    var docHt = window.document.getElementById('ifrm').contentDocument.height;
    window.document.getElementById('ifrm').style.height = docHt + 'px';
  }
}
function getRetry()
{
    getReSize();
    setTimeout('getRetry()',500);
}
getRetry();
</script>

Trackback 0 Comment 13

Trackback : Cannot send a trackbact to this post.

2008/02/14 08:19

How to elimiate the "Restore Previous Session" dialog when FireFox 2.0 starts


If you want to get rid of the "Restore Previous Session" dialog and simply start a new session everytime, you need to add one value in your FireFox config file.

1) put below strings in URL field

about:config


2) set browser.sessionstore.enabled -> false

3) set browser.sessionstore.resume_session_once -> "true"


Restart FireFox, and your done!
Trackback 6 Comment 0

Trackback : Cannot send a trackbact to this post.

  1. Subject 1930 simmons furniture.

    Tracked from Stratford-simmons furniture. 2009/01/06 07:35 delete

    Simmons baby furniture. Simmons juvenile furniture. 1930 simmons furniture.

  2. Subject Directory forum gambling href online site wiki.

    Tracked from Online gambling forum. 2009/02/19 16:31 delete

    Online gambling forum. Directory forum gambling href online site wiki.

  3. Subject Secure sockets layer ssl and web hosting.

    Tracked from Ssl web hosting. 2009/02/21 19:14 delete

    Secure sockets layer ssl and web hosting. Ssl web hosting.

  4. Subject different money making ideas

    Tracked from moneyideas 2010/01/29 06:01 delete

    moneyideas

  5. Subject different money making ideas

    Tracked from moneyideas 2010/01/29 14:39 delete

    moneyideas

  6. Subject different money making ideas

    Tracked from moneyideas 2010/01/31 16:43 delete

    moneyideas