Register   Login
     
  Latest Posts  
RE: AutoFill fields by selection Type
by nickdotnet on 11/21/2008 10:15 PM
RE: Subscription setup questions?
by nassoa on 11/21/2008 7:46 PM
RE: Redirecting non-DNN generated urls
by slonecke@dhw.idaho on 11/21/2008 6:49 PM
RE: sub types
by Jessynoo on 11/21/2008 6:45 PM
RE: Subscription setup questions?
by nassoa on 11/21/2008 5:59 PM
Subscription setup questions?
by nassoa on 11/21/2008 5:43 PM
Edit Comments
by swebster on 11/21/2008 5:35 PM
RE: Negative role tokens: ISNOTINROLE, ISAGENTNOTINROLE
by richardcook on 11/21/2008 5:26 PM
Negative role tokens: ISNOTINROLE, ISAGENTNOTINROLE
by richardcook on 11/21/2008 5:12 PM
RE: Sites using Subscription Tools
by nassoa on 11/21/2008 4:10 PM
  Forums  
Subject: Java refresh in txt/html module
Prev Next
You are not authorized to post a reply.

Author Messages
caroigUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:278

11/07/2005 12:14 PM  

On one of my 2.1.2 sites I have a image which updates every minute or so.  I use a little java refresh script that updates the image quite happily.  Problem is, I can't seem to get it to work at all in 3.1.1.

Any ideas why not and more importantly how can I get it to work - it does seem a 3.1 thing?  Is there a refreshable image module out there I might be able to use?  I've tried everything I can think of and a page refresh is just too clunky.

 

Thanks

 

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12442


11/07/2005 1:11 PM  

You are probably using friendly urls and your references are relative to the current page? Can you post some of the script


Scott McCulloch
Site Administrator
caroigUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:278

11/08/2005 12:20 AM  

The code I have used in 2.1.2 is, using the same code in 3.1.1 doesn't raise an error, just doesn't seem to do anything.  I don't have friendly URLs configured.

 <TABLE cellSpacing=0 cellPadding=0 width=117 align=center border=0>
<TBODY>
<TR>
<TD>
<DIV><IMG src="="/portals/0/vws889.jpg" width="117" height="60" border="1" name="refresh">
<DIV class=cap>Temperatura actual</DIV></DIV></TD></TR></TBODY></TABLE>

<!-- Code Begin -->
      
      
      <SCRIPT language="JavaScript" type="text/javascript">
      <!--
      var t = 120 // interval in seconds
      image = "/portals/0/vws889.jpg" //name of the image
      function Start() {
      tmp = new Date();
      tmp = "?"+tmp.getTime()
      document.images["refresh"].src = image+tmp
      setTimeout("Start()", t*1000)
      }
      Start();
      // -->
      </SCRIPT>
      <!-- Code End -->

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12442


11/08/2005 2:51 AM  
Just so we get this right, you have friendly urls disabled in host -> host options?

Scott McCulloch
Site Administrator
caroigUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:278

11/08/2005 3:11 AM  
Correct. Use friendly URLs is NOT enabled
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > Java refresh in txt/html module



ActiveForums 3.7