By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,043 Members | 1,153 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,043 IT Pros & Developers. It's quick & easy.

Edit a DIV Section only from a CMS

100+
P: 228
Hi:)

I have a series of pages that are totally static [no db required]. I dont want to use databases unless it is impossible. The contents of this page is stored in the main div section named maincontent.

Is there anyway i could update that section only from JS? That is, make changes to the file?

PHP is a fine solution as well. I need to change the file but update only that section?
Dec 9 '09 #1
Share this Question
Share on Google+
2 Replies


Dormilich
Expert Mod 5K+
P: 8,639
I dont want to use databases unless it is impossible.
ainít that a paradox?

itís not possible using only JS, you need at least a language, that can change your source file (a server side language like PHP, Perl, Java, etc.)

you could try XForms, though the support is yet marginal.
Dec 9 '09 #2

rnd me
Expert 100+
P: 427
if you put the repetitive page wrapper and the div contents in separate files, you can edit them separately.

the files can be combined using php before serving, or with ajax if you don't have server scripting.

this way, you can make a change to all pages by altering a single file...
Dec 13 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.