Edit a DIV Section only from a CMS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samvb
    New Member
    • Oct 2006
    • 228

    Edit a DIV Section only from a CMS

    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?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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.

    Comment

    • rnd me
      Recognized Expert Contributor
      • Jun 2007
      • 427

      #3
      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...

      Comment

      Working...