PDA

View Full Version : Image refresh


bobbie
04-09-2006, 04:19 PM
Right now I'm loading cam images from a html page I made with each cam image having it's own html page that I link to .
Can I load a cam image in to a page/window with out the html and refresh the image and not the whole window?
I have the html page with the cam image in it to refresh at 30 sec.

Corey
04-09-2006, 04:27 PM
Sounds like something you could do using the Image.Load action and a page timer. :yes

Mina
04-10-2006, 07:05 AM
Right now I'm loading cam images from a html page I made with each cam image having it's own html page that I link to .
Can I load a cam image in to a page/window with out the html and refresh the image and not the whole window?
I have the html page with the cam image in it to refresh at 30 sec.

Yes. Download the image every 30 seconds, and use Image.Load to view it in the place of an Image Object. Don't forget to use File.Delete, to delete the old images after each 30 seconds.

bobbie
04-10-2006, 07:12 AM
Little apz would be cool to see what you mean :)

Mina
04-10-2006, 07:15 AM
Well, could you link me to the cam html page.
I'd be glad to help you out :yes

bobbie
04-10-2006, 07:25 AM
here is a link to the image file
http://www.pyramidcam.com/pyramids.jpg

Mina
04-10-2006, 07:50 AM
Hi. See: Attachment.
Note that i haven't tested it, but it should work fine.
Also it does not perform an internet check, this is only to give you an idea of how what you seek could be done :yes

aclamaciones,
Mina

bobbie
04-10-2006, 07:54 AM
Thank you , I'll give it a look now and I can do the rest like check if online.

bobbie
04-10-2006, 08:00 AM
Just what I needed.
The timer is cool. and I can use that again with something else , thanks again.

if Secs > 0 then
NSecs = Secs - 1
Secs = NSecs
Label.SetText("Label2", "Seconds Left Till Refresh: "..Secs);
elseif Secs == 0 then
Secs = 30
Page.StopTimer();
Label.SetText("Label1", "Refreshing..");
Refresh();
Label.SetText("Label1", "Done");
Page.StartTimer(1000);
end