/    Sign up×
Community /Pin to ProfileBookmark

Can I do this without an IFrame?

Hello is there a way to rotate a web page file with javascript without needing to use an Iframe? Please let me know, thanks very much.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@FangOct 05.2008 — Do you mean scroll a complete document within another document?
Copy linkTweet thisAlerts:
@vortexerauthorOct 06.2008 — Yes thanks, that's what I mean.
Copy linkTweet thisAlerts:
@FangOct 06.2008 — (i)frame is required.
Copy linkTweet thisAlerts:
@rnd_meOct 06.2008 — you could use an object tag, or load the file using ajax, and set the div's .innerHTML to the xhr's .responseText

a regexp to find just the body tag in the .responseText will correct many problems arising from the embedded document's CSS and scripts.

if you just put html snipps in the files to be loaded, you can skip the filtering and load them right into the div.
×

Success!

Help @vortexer 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.18,
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,
)...