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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript html include or iframe

Status
Not open for further replies.

j4606

MIS
Nov 28, 2005
349
US
Server at work runs a public website, no access to ssi. Whats the better choice?

was thinking of building something with javascript to include html and using an iframe as a fallback for people without js. Any other suggestions?
 
nope, well it would be easy enough to get something running but i'm not allowed:<.
 
Whats the better choice

I'd say the best choice is to get a new job with a more up-to-date work environment [lol]

With no server side technologies at your disposal, you're going to be doing EVERYTHING the long and hard way.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
 
GAAAAH
[rofl]
I have access to server-side scripting technologies on other servers, its just this old website is run off an old server and its been asked that I update it. I don't really have access to the server, except to update the contents of the site.
You guys are right though, I should probobly just ask for something to be installed. I did find a semi decent solution, if things don't go my way, I'm sure another noob like me will ask in the future so heres what i did.
First off for non js users I made an html page with the content i needed. and included it through an iframe.
Code:
 <div id="frameContainer">
  	<iframe src="[URL unfurl="true"]http://www.oldposserverIhate.com/sillyworkaround.html"[/URL] height="300" width="130" scrolling="no" frameborder="0"></iframe>
</div>
then for js users, I used javascript to write to the innerHTML of my div frameContainer.
Code:
document.getElementById('frameContainer').innerHTML = "wow i have to access to asp, php, coldfusion or jsp :<";

The site looks pretty decent on my currect browsers, I don't even notive the iframe when i view it with js disabled.
 
Hi

kaht said:
With no server side technologies at your disposal, you're going to be doing EVERYTHING the long and hard way.
I would not say it that way. You can use a text processor like the good old [tt]m4[/tt] or an HTML-oriented one. You can set up a few scripts and generate an average site pretty easily.

Feherke.
 
after showing my work around im allowed to use asp!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top