homepage Welcome to WebmasterWorld Guest from 54.225.57.156
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
mass page updates
MusicClub




msg:1490523
 10:47 pm on Mar 18, 2004 (gmt 0)

Hello All,

I am managing a rapidly growing e-commerce website (we've got about 1,000 products right now). My question is: Is there a script that will allow me to add a table (named "lowtable") to the bottom of every page (without manually placing this table on all 1,000 or so pages)? My site is constructed using dreamweaver, and I'm using mostly HTML and a little javascript right now.

Any ideas? Thanks in advance.

 

Chicken Juggler




msg:1490524
 10:51 pm on Mar 18, 2004 (gmt 0)

Because they are all text files you could write a script that would open each file and place something right before </bodyL> and save it.

SlowMove




msg:1490525
 10:53 pm on Mar 18, 2004 (gmt 0)

If it's the exact same table, you could use a DW template, and change everything at once. Or there's [perl.org...]

SlowMove




msg:1490526
 11:17 pm on Mar 18, 2004 (gmt 0)

The nice thing about Perl is that you really don't have to write the script. There are a lot of scripts already written that can handle it. You might try searching for "replace.pl"

puresilk




msg:1490527
 3:55 am on Mar 24, 2004 (gmt 0)

Not sure if your server supports it but you could use SSI (Server Side Includes) and have a .shtml extension to your pages and keep the dynamic content in a text file and just use the <!--#INCLUDE VIRTUAL="mytxtfile.txt"--> , which would make it easy to edit and you just include the file where needed. Your pages would essentially be all HTML except were the includes are. It's also an easy way to have dynamic content without a database and using ASP or PHP or some other scripting language. If your not sure about it search for shtml+tutorial on google.

Mark

Purple Martin




msg:1490528
 5:25 am on Mar 24, 2004 (gmt 0)

Many text/html editors (including Homesite) have global replace functionality which allows you to edit text across many files in a folder (and subfolders) in one go.

So for example you could replace

</body>

with

<table>
...
</table>
</body>

to add a table to the bottom of every page.

RonPK




msg:1490529
 6:22 pm on Mar 24, 2004 (gmt 0)

In addition to Purple Martin's post: if you want real speed, try UltraEdit. It's much faster than HomeSite - well, on my WinME box, that is.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved