473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Script that will lock parts of a page from being edited

2
The Dreamweaver editor has a feature that allows a webpage designer to lock parts of a page so they can't be edited. I'd like to include that feature on some pages I'm designing, but don't use Dreamweaver. Does anyone know of a javascript that will accomplish the same thing?

Thanks
Dec 23 '06 #1
5 1588
AricC
1,892 Expert 1GB
I'm not sure what you mean by lock parts of a page from being edited.
Dec 24 '06 #2
sashi
1,754 Expert 1GB
The Dreamweaver editor has a feature that allows a webpage designer to lock parts of a page so they can't be edited. I'd like to include that feature on some pages I'm designing, but don't use Dreamweaver. Does anyone know of a javascript that will accomplish the same thing?

Thanks
Hi there,

Are you talking about encrypting partial page contents? I doubt you can lock part of the page from being edited.
Dec 24 '06 #3
ronverdonk
4,258 Expert 4TB
Being a curious guy, I am a bit puzzled by your request. In my understanding you either
  • don't want your co-developers (collegues) to edit your source code while developing, i.e. protect your source library,
or
  • want to prevent users, viewing your screen output, to be able to grab the source code and copy it

Is it one of these reasons?

Ronald :cool:
Dec 24 '06 #4
jrosen
2
Let me try and explain it a bit more clearly....

I have developed a site where all the pages have a left hand navigation bar and a graphic header. I want to allow others at my workplace to be able to make changes in OTHER parts of the page, but I DON'T want them to erase/modify the nav bar and header.

Dreamweaver has a feature that will accomplish this, but I don't use Dreamweaver. I've considered downloading the 30-day trial version and using it to make this change, but I'd prefer to find a javascript that accomplishes the same thing. I do all my work in code.

I don't care if others grab the source code while viewing the page, and my co-workers won't be interested in stealing the code for their own use. Eventually, I hope to use Macromedia Contribute software as an easy WYSIWYG way for the co-workers to make mostly text changes to a single page once a month. But I want every page to contain the nav bar and header to maintain continuity in the site.

Hope that explains it more clearly.

Thanks
Dec 25 '06 #5
acoder
16,027 Expert Mod 8TB
Let me try and explain it a bit more clearly....

I have developed a site where all the pages have a left hand navigation bar and a graphic header. I want to allow others at my workplace to be able to make changes in OTHER parts of the page, but I DON'T want them to erase/modify the nav bar and header.

Dreamweaver has a feature that will accomplish this, but I don't use Dreamweaver. I've considered downloading the 30-day trial version and using it to make this change, but I'd prefer to find a javascript that accomplishes the same thing. I do all my work in code.

I don't care if others grab the source code while viewing the page, and my co-workers won't be interested in stealing the code for their own use. Eventually, I hope to use Macromedia Contribute software as an easy WYSIWYG way for the co-workers to make mostly text changes to a single page once a month. But I want every page to contain the nav bar and header to maintain continuity in the site.

Hope that explains it more clearly.

Thanks
One possibility instead of looking for JavaScript solutions is to just use the include feature in your server-side language.

Just create a file which contains the code for the nav bar and header and include this for each page, e.g.
Expand|Select|Wrap|Line Numbers
  1. include('header.php');
or in a language like Coldfusion, just include the code in the application.cfm file (which is automatically included for each page).

Then your co-workers only edit the actual page and you don't have to worry about the nav bar and header. However, there is still the line that includes the header which they could potentially edit. Someone may have a better solution?
Dec 25 '06 #6

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

Similar topics

0
by: Henk Verhoeven | last post by:
(Reply on this newsgroup to an email - reply by email did not work) Wolfman wrote: > > Hi, > I found your Email in the php Newsgroup. > I was looking for some way to resize some graphiks on my...
15
by: kpp9c | last post by:
I am kind of in a bit of a jam (okay a big jam) and i was hoping that someone here could give me a quick hand. I had a few pages of time calculations to do. So, i just started in on them typing...
6
by: Andrew V. Romero | last post by:
First off, I am mostly familier with PHP but am trying to make a multi-step javascript program. For an example, I would like to run different sections of the script depending on how many times the...
7
by: Dr. Know | last post by:
I am working on an ASP page that writes to several databases, ranging from MDBs to x-base. One of the tasks involves using an existing highest value from the DB and incrementing it before...
1
by: scorpion53061 | last post by:
I really like this javascript for an image slideshow. The only thing I woudl like to do differently is have a cell above the image and navigation that would allow text content to be placed. Does...
2
by: Kreso | last post by:
I have a database with few connected tables, and I have a true/false checkbox in one table. Is it possible to lock that row when checkbox iz turned on "true" so the data only in that row...
5
by: Tom | last post by:
I have a function that restricts access to a page to logged in users. When a user who isn't logged in goes to the page, it will dynamically generate a login form. I'm trying to use it in...
21
by: egaffney | last post by:
Hello Everyone, I am using Access 2003 to create a parts management system. I am looking to create a checkbox (or any other control) in a form that when checked by the user locks the current...
20
realin
by: realin | last post by:
hiya guys, I have a question, i want to display the image which is above the page, while my script loads in the background. This is a simple script which check for new messages in my mailbox,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.