By using this site, you agree to our Privacy Policy and our Terms of Use. Close
Gnac said:
Words Of Wisdom said:

SSI is a really bad solution... for just about anything you want to do.

I suggest looking into jquery (http://jquery.com/). I use it and a couple firefox extensions to redo vgChartz for my pleasure (adding in user/post hiding, user portrait changing, and more). It's a small, flexible, and easy to use framework.

 

No. Understand the differences between SERVER SIDE and CLIENT SIDE scripting. Tehsage mentioned including common files that contain part of the page layout to build a complete webpage, which is something SSI was created for. JavaScript is quite possibly the worst solution to this.

Also, JQuery might be fine for you to tart up existing sites, but you can't expect every visitor of Tehsage's site to download Firefox and an extension before they can see anything. And that's assuming that they care to use JavaScript in the first place. Server side scripting is unaffected by this.

You're correct in the purpose of SSI is for including specific pieces into a webpage (such as header and footer in the OP's example).  When I skimmed the thread it looked like the OP was looking at DOM manipulation but upon rereading it, it does seem like he's looking for a simple include functionality which SSI would provide.  It's strange that the server would not provide PHP functionality unless it's a windows server.  In that case you could use .net, but that would likely be way overkill for this project.

Also, the Firefox extension I was talking about is one that lets me run client-side scripts on existing websites.  It has nothing to do with this discussion other than explanation for how I could do some nifty things with the framework.  As a result your second paragraph is garbage, but it does show that I should have been more specific about what I was speaking of.