merge the formfield patch from ooo-build
[ooovba.git] / sd / res / webview / poll.asp
blobdd1a9bfe0022165e4bd70f970e91d7e46475dd45
1 <%
2 Option Explicit
3 Response.Expires = 0
4 %>
6 <!-- #include file = "common.inc" -->
8 <HTML>
10 <HEAD>
11 <META http-equiv="refresh" CONTENT="<% = cnRefreshTime %>">
12 </HEAD>
15 ' get current picture id
16 Dim nGIFID
18 nGifID = File_getDataVirtual( csFileCurrent, ".", ";" )( 0 )
20 ' a new picture was chosen ?
21 if nGIFID <> Session( "GIFID" ) then
22 ' then store the id of the new picture and show it
23 Session( "GIFID" ) = nGIFID
25 <BODY bgcolor="red" onLoad="parent.frame1.location.href='./show.asp?<%= nGIFID %>'">
27 else
29 <BODY bgcolor="green">
31 end if
34 </BODY>
36 </HTML>