7 replies [Last post]
Charred
Charred's picture
Offline
Regular
Last seen: 9 years 32 weeks ago
Timezone: GMT-5
Joined: 2011-04-10
Posts: 22
Points: 35

I've been pulling my hair out with this problem and I don't know how to solve it.

Anyone can help give me some overall direction on what I should try to make my site function as it needs to without server-side coding?

Eventually I'll need to link to these all through ANGEL so students can take the course. I envision this site as a 4 volume interactive textbook. Each volume (1 year of study) will have chapters with videos, tests, content, etc. So I need a navigation system within each chapter that provides visual indicators of progress as well as ability to move through content. I also need a menu system that would allow the user to move to other chapters or other volumes. I've got the navigation system for an individual "chapter" under control, but the menu system for the whole site is the problem because I'd like this to be an external file, so I only need to change code in one place as I add chapters and volumes.

With the help of several people here I got my menu system working with PHP includes only to find out that my IT people refuse to set up the server to allow PHP. So it seems I'm stuck trying to design in xhtml, css, some javascript. And my knowledge of these sharply declines with each subsequent language. With javascript I only ever seem to be able to tinker with existing code and sometimes make it work...no luck whatsoever writing my own thus far.

I'd still like to be able to have external files for menus/navigation within chapters and for the overall site. For my overall site menu, I found some javascript on dynamic drive which essentially created an iframe to pull in the external menu and put it in an iframe that would "slide" out from the left side. I decided to try the same idea in css...it worked in firefox but was a disaster in IE. Attempts to use conditional comments to show something different in IE were also a minor disaster...between somewhat working but not "valid" code and not working.

I read some posts on this forum in which people were very anti-iframes. I don't know why exactly iframes are a problem, I don't know why my code wasn't working in IE and what other options I have to accomplish what I need to do.

Tags:
gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 33 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

You don't indicate which web

You don't indicate which web server your host is using: Apache? IIS? I assume it's a Windows machine, because Linux nearly always has a LAMP installation (Linux/Apache/MySQL (or PostgreSQL)/PHP).

See MSFT-Using server side includes for IIS web servers. See Apache Tutorial: Introduction to Server Side Includes for Apache web servers.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Charred
Charred's picture
Offline
Regular
Last seen: 9 years 32 weeks ago
Timezone: GMT-5
Joined: 2011-04-10
Posts: 22
Points: 35

I believe they're running

I believe they're running Windows (IIS?). I do know that the media server has sharepoint and I have to access it with IE in order to fully utilize the features.

Thanks for the links. Hmm... I don't think they must have the server set up to accept server-side includes, because I just tried uploading a file that included this code:
<!--#echo var="DATE_LOCAL" -->

and it didn't return a date. That is unless I'm doing it wrong. Actually, I forgot to make the file .shtml. Once I called it .shtml, the server would no longer allow me to upload the file.

Unfortunately, if it is a matter of the server not currently set to enable server-side directives (or even files with that content), I really doubt that our IT department would be willing to make those adjustments. But I'll ask.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 33 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Good luck. SSIs are bog

Good luck. SSIs are bog standard, but then, you're dealing with a Windows shop. :shrug: Wink

my sympathies,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 weeks 2 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2050
Points: 2282

Charred wrote: ... <!--#echo

Charred wrote:

... <!--#echo var="DATE_LOCAL" --> ...

What year are you posting from? Wink

Do you have to use these includes? Do you not have the ability to use .NET?

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 33 weeks 4 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

@V: 2011, maybe? Server based

@V:

2011, maybe? Server based includes are a common, if not sexy-new, means of using included files. He tried PHP, which is platform independent, and which his IT won't (won't, not can't) install. .NET is not platform agnostic. To run from a *nix environment requires supporting conversion-ware such as Mono.

If the OP is, and will always be, in a MSFT house, .NET may be a solution, but no better than SSI, and lacking portability.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 weeks 2 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2050
Points: 2282

Using .NET I haven't touched

Laughing out loud

Using .NET I haven't touched an include for years. I did have to maintain a classic ASP site that used them (poorly, may I add) but that was in 2007. I'm just saying there are better ways of doing things and I don't think using an include directive is that great of an idea.

Unfortunately, my .NET suggestion isn't something you'll just be able to copy and paste together from bits on the internet. Do you have the ability to hire out?

Charred
Charred's picture
Offline
Regular
Last seen: 9 years 32 weeks ago
Timezone: GMT-5
Joined: 2011-04-10
Posts: 22
Points: 35

I haven't heard back from IT

I haven't heard back from IT about allowing server-side scripting on their machines.

Unfortunately, we have no ability to hire out. I'm stuck with an IT group that doesn't want to change the way they've done things for many years and an institution that can't (or is unwilling to) afford to hire a programmer, so I get to pretend like I'm a real web programmer. I'm already doing stuff that, from their perspective, is cutting edge, even though it would really be newbie stuff from the perspective of anyone around here.

Learning the CSS and small bits of javascript and PHP has been fun (and frustrating), and I have managed to produce a tutorial that was well received by my superiors and I hope is decently coded. My work just has not been well received by the IT people who would rather I did things the way it's always been done. Wink

I can investigate options for off-site hosting, but I've already gently prodded in that direction and that went over like a ton of bricks.

I can also try and learn .net if it would be a solution to my problems. I don't know what is the better way, so I need more knowledgeable people help me figure out another way to skin this cat (i.e., try another of the many workarounds I've tried to develop the kind of site I need to create within the limitations set by my IT dept). If .net is the way to go, are there tutorials or some other online resources that might explain how?