PDA

View Full Version : Update an HTML Page in real-time! Intrigued


Intrigued
04-28-2007, 11:44 PM
Have you ever wanted to be able to post a message in real-time to your Website? How about update some content in a particular place?

Well, this example will give you the bare-bones (needs error checking and custom directory selectable option) for creating such an application.

This .apz will allow you to enter your Host (e.g. ftp.mydomain.com), Username, Password, and Message (what you want posted to the given Web page).

Then click the button and follow that by checking your Webpage for the changes.

Again, add in error checking, ability to change FTP directories (aka. folders), and maybe even password protect the application.

I'm sure you have lots of ideas and ways of using this, so here is the bare-bones .apz to get you started:

ps. the default Hyperlink to check your Webpage will be, eg. www.yourwebsite.com/message.html

http://www.amsuser.com/ams/exmaples/HTMLupdates-AMS6-Intrigued.apz

Intrigued
04-29-2007, 08:35 AM
Don't forget you can put other elements too, not just a string (text):

Put this code into the Message Input object and Submit Changes...:

<img src="http://library.thinkquest.org/15074/media/html2.gif">

and...

Videos
Forms
Javascript
Silverlight (formerly WPF /E)

and on and on...

Haydeng
04-29-2007, 08:38 AM
This is opens alot of possibilities. Good Work:yes

Intrigued
04-29-2007, 08:41 AM
No problem. Even do your Webcam images with an On Timer event firing with your own custom AMS application. But here, you can really do a lot with Javascript, Silverlight, DHTML, Flash, etc. etc. to beef up the look of your Webcam images!

:yes

Haydeng
04-29-2007, 08:43 AM
Here's mine... http://www.freewebtown.com/hag365/message.html

lol

I do alot of web design and updating my site and it takes a while with dreamweaver. I think I might work with this and expand on possibilites if you dont mind

Intrigued
04-29-2007, 08:47 AM
Ya! It's actually fun, for sure.

This is free code, take it and run with it. :yes

Another option would be to have your credentials (host, username, password) saved in a Blowfish (see: that plugin in AMS) encrypted, or a list of such. Then you can have many Websites with this funtionality that you can get at easily. This could save a lot of time if you are updating Website contents. Of course you would want to build out this application more, to be more robust.

Haydeng
04-29-2007, 08:49 AM
Well I made an ftp program a while back which encrypted and such. This is awesome. Endless possibilities... Im gonna go start working on something! :yes :yes

Bruce
05-09-2007, 09:25 AM
I can't seem to get the bugger to work!