Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

edit text displayed dynamically 1

Status
Not open for further replies.

JacobTechy

Programmer
Apr 14, 2005
181
US
How can I edit the text displayed in a textbox dynamically rather then opening the html webpage with a html editor but instead type in the new text in a textbox and click on a button called update text. I just need to update one textbox.
 
Basically dynamically change about a 4 line text displayed on the live webpage without having to use a html editor.
I would have an admin link that the user would click on and then after the user enters the proper username and password the user would be directed to another webpage with a textbox to enter in the new text and a button under it to submit the changes. I dont need the admin username/password part but only changing the text part.

 
Are you saying you need a web-based user interface so someone can update web pages without using HTML? That's fairly common. After you set up your user interface, read the web page to be changed with the script that the form is submitted to and make the changes the user wants that way.

Lee
 
yes I do need to update the web page but only the textbox on the webpage but I dont quite understand what you mean. Do you have a sample?
 
Why don't you show us what you have so far, tell us what's not working the way you want, and we can take it from there. What you're asking for will vary with individual pages, and you haven't really provided much specific to go on.

Lee
 
I was planning on updating the text using sql server database interaction but I wanted to know if there is another easier method without database before proceeding. I dont have a update page created yet just the main one page web page.
 
ASP, Cold Fusion, Java Server Pages, PHP, or some other language? In the pages you're allowing to be updated, is the information you're updating stored in the database or hard coded on the page?

Lee
 
You're not making this easy, you know. What server-side scripting language are you using? What do you want answers to from Tek-Tips people?

Lee

 
I am not using any server side scripting just simple one html webpage with 4 text lines on it (textbox).

How can I make it so the user can update the text displayed?

one answer would be: you can update it using a database. (that I already know)

another answer would be: you can update it using a html editor like frontpage or dreamweaver but I dont want to use an html editor.
 
If you want to allow users to update pages, they'll either have to do it on their own computers and upload the modified page to the server, or you'll have to do it on the server using server-side scripting.

For doing it on the server, you have to have some kind of programming to read the material that's submitted to the server, process it, and make whatever changes you want. With the details you provided, a database won't do what you want, and you'd have to use server-side scripting to interact with the database even if you were using that to create the web pages from the server on the fly.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top