/    Sign up×
Community /Pin to ProfileBookmark

Hi there

This is probably such a silly question … but is there any way that I can define a table/css to display content from another page, instead of using an Iframe?

Or do you know any other techniques, or do i [b][u]have[/b][/u] to use iFrames?

PHP is not an option here for what I exactly want to.

Sorry about the silly question, and thanks in adnvance.

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@pcthugAug 23.2006 — Do you have any other server-side technologies (ASP, Java, Perl, ColdFusion, etc.) available to you?
Copy linkTweet thisAlerts:
@rh91ukauthorAug 23.2006 — Java.

Basically. what I want to do is pull another page into the current document, basically identical to what an iFrame does, but without using a PHP include to replace it
Copy linkTweet thisAlerts:
@pcthugAug 23.2006 — Okay then;
[code=html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Replicating Iframes.</title>
<style type="text/css">
/* adjust height and width values to suit */
#iframe { height: 300px; overflow: auto; width: 200px }
</style>
<body>

<div id="iframe">

<jsp:include page="path/to/iframe/page.html" />

</div>

</body>
</html>
[/code]
The above script uses the css overflow attribute to create a iframe-styled div, and it uses a jsp include to display the relative include page.
Copy linkTweet thisAlerts:
@rh91ukauthorAug 23.2006 — Cheers pcthug, i shall have a play and get back to you here!

thanks!
Copy linkTweet thisAlerts:
@rh91ukauthorAug 23.2006 — Question

Do I need to save my page as .jsp?
Copy linkTweet thisAlerts:
@pcthugAug 23.2006 — If your server is setup to parse .jsp pages as Java (Very Likely), then Yes.
×

Success!

Help @rh91uk spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.14,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...