/    Sign up×
Community /Pin to ProfileBookmark

Anyone Know How To Pull Up A Htm Page In A Cell

I need to pull up an htm page in a cell – any help will be appreciated

thankz – cryztal – ?

to post a comment
HTML

17 Comments(s)

Copy linkTweet thisAlerts:
@ray326Sep 02.2006 — Well first you have to convince the guards to give you Internet access. ?
Copy linkTweet thisAlerts:
@pcthugSep 02.2006 — Well first you have to convince the guards to give you Internet access. ?[/QUOTE]
hahaha. ?

Seriously though, if you have any server-side languages (PHP, ASP, ColdFusion, Java, etc.) available to you, use an include over the client-side equivalent (i.e. frame).
Copy linkTweet thisAlerts:
@cryztalauthorSep 02.2006 — OK folks I didn't say iframe - i know about iframes and that is not what I want to do - the webpage is a document of mine so I don't have to get permission - What I want to be able to do is pull up (example: test.htm) in a cell.

What I don't want is to be told to use iframe or something else - if I wanted that I would have used it.

Anyone know how to do this - please help me out - thanks - cryz :rolleyes:
Copy linkTweet thisAlerts:
@pcthugSep 02.2006 — define: [I]pull up[/I]
Copy linkTweet thisAlerts:
@cryztalauthorSep 02.2006 — ok instead of pull up I should have probably said display - when I click on a link I want to be able to display the contents of a htm page I have in the same directory - cryz ?
Copy linkTweet thisAlerts:
@pcthugSep 02.2006 — What server-side languages do you have available to you?
Copy linkTweet thisAlerts:
@cryztalauthorSep 02.2006 — PHP 4, PHP 5, Python 2.4, Ruby and Ruby on Rails, CGI, Perl, java, flash,asp among others
Copy linkTweet thisAlerts:
@pcthugSep 02.2006 — Then put the following PHP code where you would like the contents of [I]test.htm[/I] to be displayed and save the page you wish the contents to be displayed on with a [B].php[/B] extension.
[code=php]<?php include 'test.htm'; ?>[/code]
Copy linkTweet thisAlerts:
@cryztalauthorSep 02.2006 — pcthug

thanks for your help - but i need a little more if you don't mind - this is suppose to change when i click on an image link - can you help with that?

thanks :eek:
Copy linkTweet thisAlerts:
@Shelley_HemrichSep 02.2006 — I don't know how to pull up a htm page in a cell. I am a student working on a paper and found this place while looking up info. I saw your light was on and hoped you wouldn't mind my intrusion. I have a question.
Copy linkTweet thisAlerts:
@pcthugSep 02.2006 — You would need to use Javascript to do that (either through AJAX or hiding/showing content simultaneously).
Copy linkTweet thisAlerts:
@CharlesSep 02.2006 — The JavaScript methods don't really work, not when you send them out on the internet. What about an IFRAME do you not want? The border? We can take care of that.
Copy linkTweet thisAlerts:
@orpheus75Sep 04.2006 — PCTHUG, I was told js wouldn't allow for an HTML page to be displayed inside a cell, only text or an image. I was told IFRAMES is the best way to go with that. Crystal, I am in the predicament you are. I am trying to do the same thing and can't seem to get an answer. I'm glad I saw your thread because the PHP solution given earlier haddn't crossed my mind. have you given it a try and does it work well?
Copy linkTweet thisAlerts:
@cryztalauthorSep 04.2006 — No I haven't tried that yet - depending on what you are trying to do iframes do work really well - just i cant do what i need to do through an iframe- that is what i have it sitting in now - i really like iframes but just doesnt work for me this time - let me know how the php works for you if you try it - cryz - :o
Copy linkTweet thisAlerts:
@gooncorpSep 05.2006 — Can't you place an iframe in the cell, and use javascript to change the src attribute of it when the links/images are clicked on?
Copy linkTweet thisAlerts:
@TheBearMaySep 05.2006 — One way (assuming the page you want to display is in the same domain):

[code=html]
function getFile(fileName){
oxmlhttp = null;
try{
oxmlhttp = new XMLHttpRequest();
oxmlhttp.overrideMimeType("text/xml");
}
catch(e){
try{
oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
return null;
}
}
if(!oxmlhttp) return null;
try{
oxmlhttp.open("GET",fileName,false);
oxmlhttp.send(null);
}
catch(e){
return null;
}
return oxmlhttp.responseText;
}
...
<table>
<tr><td onclick="document.getElementById('content').innerHTML=getFile('Test.htm');">Click Here</td></tr>
<tr><td id="content"></td></tr>
</table>[/code]
×

Success!

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