Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
To CMS or Not to CMS?
Old 12-14-2011, 11:20 AM To CMS or Not to CMS?
Experienced Talker

Posts: 48
Name: Harold
Trades: 0
Hi, all. I'm working on a Website that requires the client to update a specific section (300w x 500h) of the home page. They're basically posting new data every week. I don't want to give them access to the home page file (index.html), as there's a risk that they can mess things up. Is there some sort of simple javascript (or other) code, or CMS that I can add that is isolated, and only lets the client to update that specific isolated rectangle box on the home page?
Hans G. is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-14-2011, 12:15 PM Re: To CMS or Not to CMS?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Cannot be done with javascript at all. Requires server side code
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-14-2011, 01:15 PM Re: To CMS or Not to CMS?
Experienced Talker

Posts: 48
Name: Harold
Trades: 0
Thanks Chris. Is there a package out there that accomplishes this that you're aware of? (I'm not a programmer.) I'm assuming it won't be good for the optimization of the site. Would just giving the client direct access to the home page source code be the easiest, most SEO-friendly option?
Hans G. is offline
Reply With Quote
View Public Profile
 
Old 12-14-2011, 01:24 PM Re: To CMS or Not to CMS?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Is there a package out there that accomplishes this that you're aware of?
Quite possibly, but knowing absolutely nothing about what is serving the pages that's as far as the advice can go.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-14-2011, 04:50 PM Re: To CMS or Not to CMS?
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
More than likely it would be PHP.

But, seeing as your current file extension is .html, it's probably just a static webpage.

Here's what you can do:
Rename your index.html to index.php. It'll run the exact same way, except you can now use PHP on the page. PHP allows you to preprocess the HTML, as well as use MySQL databases, write/read files, and much more.

As you say, you're not a programmer. However, most of us on TycoonTalk are, so if you ever need any help building what you're going for, don't hesitate to ask! By the looks of things, you need a very simple MySQL database with one table, and a few fields. This 'box' you're talking about would not contain any HTML code - instead, it would contain a little bit of PHP code to fetch a certain record in the database and put that in the box.

If that's what you need, I can whip up a little script for you in no time.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 12-15-2011, 01:27 PM Re: To CMS or Not to CMS?
Experienced Talker

Posts: 48
Name: Harold
Trades: 0
Thanks, I listed to Chris, and others, on another board, and decided to go the iFrame route. Works brilliantly. Now there's just a small strip on the home page that the client can edit directly. Minor problem now is that links only open within the iFrame. How can they open into the browser instead (as if it was a normal link on the home page)? Or are we now only limited to opening links in a new window?
Hans G. is offline
Reply With Quote
View Public Profile
 
Old 12-15-2011, 04:24 PM Re: To CMS or Not to CMS?
Experienced Talker

Posts: 48
Name: Harold
Trades: 0
I found the answer, which is to use the target attribute on the link, or set the base target on the document:
http://stackoverflow.com/questions/1...-parent-window
Hans G. is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to To CMS or Not to CMS?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24624 seconds with 12 queries