Forum Moderators: open

Message Too Old, No Replies

Browser editable page conent?

Browser editable page conent?

         

Airric

2:23 am on Dec 10, 2004 (gmt 0)

10+ Year Member



I would to create a page where I can type page content into a form (or whatever) and have it diplayed on the index page.

Basically I want my index page's text to be changeable via another page?

Does anybody have any ideas of how to do this?

Thank you,
Airric

rocknbil

6:21 pm on Dec 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You were told in another thread you could do this with Javascript, and personally I'd like to see someone answer that.

The only way I know of would be to write your admin data to a database or text file and dynamically output the index page, or in your admin programming overwrite the index page.

Example 1: Form-> perl or php script-> write admin info to database or file.

index page loads -> open page template -> open admin data -> insert into template -> output to browser.

Example 2: Form-> perl or php script -> open template -> insert form data into template -> overwrite index page.

All of this would have to be done server-side with programming and there are file permission issues to address, which is what makes a Javascript solution . . . interesting to say the least. :D

orion_rus

7:22 pm on Dec 10, 2004 (gmt 0)

10+ Year Member



rocknbill write u can't make content of the following page if what would be a html. But u can make following:
U can make a content and show a new div(not a new window). In this div u can show any information what u want.
But if u want to open a new window, the decision is php,perl or aspx.
I hope i help u. Good luck

Airric

12:14 am on Dec 11, 2004 (gmt 0)

10+ Year Member



Thanx guys (or gals),

I will try it in PHP the only issue with that is the mysql DB spits out some special characters.

Thank you,
Airric

rocknbil

1:52 am on Dec 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



U can make a content and show a new div(not a new window). In this div u can show any information what u want.
But if u want to open a new window, the decision is php,perl or aspx.

But isn't that from the same page? He's talking (I think?) about an admin area editing a second page. and from that page you can always open a new window . . maybe I mis-read your explanation.

Airric

6:46 am on Dec 11, 2004 (gmt 0)

10+ Year Member



DIV would be fine. DO you know how I would do it?

Thanx Airric

orion_rus

11:37 am on Dec 11, 2004 (gmt 0)

10+ Year Member



Airric but u should understand what all information what u typed in this field will be only on the client side not in the server. Of cause u can store it in the coockie and show it in the next visit. But it would be shown only to the user who typed it. Is it ok?