PDA

View Full Version : update remote web page


Unregistered
November 1, 2002, 11:41:30
hi there

i have lked at the ie sample progs.

one question.

it occurs to me that the text control would be a god tool for allowing non html savy people to update html web pages.

Based on the example it can be used in an html page itself with vbscript used t manipulate the properties, etc..

Are there any samples or does anyone have any advice as how one might use it to allow a user to edit html pages on a server. I mean its all fine and dandy when the cntents are addressable through client side script but how then might somene send the user edited contents to a server to update remote web pages.

I imagine using ASP is probably the way to go but how can you get the client side 'contents' f the control 'posted' to an asp page to facillitate updating a remote page. Even if you can achieve this - isn't there an html posting size limit ?

Is this even possible.

-ed


This message was originally posted by ed in the old TX Text Control Support Forum.

Unregistered
November 1, 2002, 17:40:40
Hi ed,
<it occurs to me that the text control would be a god tool for allowing non html savy people to update html web pages

You should use the demo first to check if the export/save in html format is good enough for your needs. TXcontrol does not export height and width tags for images. Images are automatically scaled to 100%.
As you can the in the 'known issues' there are still some severe bugs related to the html filter, but this bugs should be fixed on Nov 4th 2002.
Gunthard


This message was originally posted by Gunthard Pupke in the old TX Text Control Support Forum.

Unregistered
November 1, 2002, 20:17:40
Ed,

There is no inherent limit on the size of an HTML POST, although the HTTP server may impose such restrictions. Also, resources and operating system limitations are a factor. Uploading an HTML page and its images is certainly doable.

We're using TXTextControl to edit and manage documents stored on our web server. In order to transfer the documents up to the client, we store the contents in a hidden field and then use LoadFromMemory in the client-side script. To submit the documents back down, we use SaveToMemory / SaveToMemoryBuffer to replace the value in the hidden field.

If you're going to include a lot of image data, you might consider using ENCTYPE="multipart/form-data" on your FORM tag; it has the advantage of not URL-encoding all of the data, but ASP doesn't have any built-in handling for the encoding, so you have to use ReadBinary.

-Tom


This message was originally posted by Thomas S. Trias in the old TX Text Control Support Forum.