Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stripping header and footer

Status
Not open for further replies.
Apr 5, 2005
15
0
0
NL

Hi,

I want to use a livereport in an iframe in a customview.html as a dashboard for a folder. Only thing so far is that the header and footer of the livereport output is way too much.

Does anyone know a way to strip the header and footer from pages (via a parameter in de url for example)?

Thanks,

Koen
 
could you live without the header and footer on ALL LiveReports or just this one ?
 
Hi Greg,

We use Livereports for more applications, so i can only strip header and footer on this one.

Thanks,

Koen
 
there is no default method of doing this, but here are some alternative options :

1. Customise the WebLingo page to hide the header and footer in some cases.
2. Use WebReports module instead
3. Use the IFrame to call some server side script (e.g. ASP/PHP/Perl) which can access the DB directly.
 
You can use Javascript to set the CSS style of the header and footer to 'hidden' The difficulty of selecting the right HTML elements will depend on which Livelink version you are running.

Save these two demo html documents to your desktop and open test.html. They should get you started. Also, the access into the IFRAME is dependent on having the IFrame's source come from the same domain, since this is within LL, I assume you won't have any problems due to that.

test.html
----------------
<html>
<head>
<script>
function changeIFrame()
{
var IE = document.all;
var doc = null;

// if contentDocument exists, W3C compliant (Mozilla)
if ( !IE ){
doc = document.getElementById( 'aframe' ).contentDocument;
} else {
// IE
doc = document.frames[ 'aframe' ].document;
}

var imageLink = doc.getElementById( "link2" );
imageLink.style.visibility = "hidden";
}
</script>
</head>
<body onload="changeIFrame();">
text
<iframe id="aframe" src="test2.html"/>
text
</body>
</html>
-------------

test2.html

-------------------
<html>
<body>
<A href=" id="link1">Image1</a><A href=" id="link2">Image2</a><A href=" id="link3">Image3</a>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top