By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,380 Members | 1,615 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,380 IT Pros & Developers. It's quick & easy.

script works local, but not on remote

P: n/a
my test server is win2k server, the script works fine, loads the movie,
allows user selection etc. however when i access the same script on my
remote server none of the requesting files load. the files are there, and
they are accessible. ive tested them out by themselves so i know its not an
issue with the file. i also just moved to windows from a unix machine. i
have the exact same script and movies on the unix machine and i have NEVER
had a problem. IM PUZZLED.

<script language="JavaScript">

var curChannel=0;

function input(no)
{
chLed1.src = chLed2.src;
chLed2.src = chLed3.src;
chLed3.src = "interface/ch" + no + ".gif";
curChannel = ((curChannel * 10) + no) % 1000;
}

function chDisplay(x)
{
var movName = new String();
movName = curChannel.toString();
while (movName.length != 3)
{
movName = "0" + movName;
}
movName = "movies/320/" + movName + ".mov";
spanMov.innerHTML = "<embed width=320 height=255 src=" + movName +
"></embed>";
}

function jump(diff)
{
var newChannel = (curChannel + diff) % 1000;
if (newChannel == -1)
{
newChannel = 999;
}
var k = Math.floor(newChannel / 100);
input(k);
var c = Math.floor((newChannel % 100) / 10);
input(c);
var d = (newChannel % 100) % 10;
input(d);
chDisplay(0);
}

</script>

<body>
<embed width="320" height="255" src="movies/320/000.mov"></embed>
</body>

TIA!!!!
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"jonezy" <jo****@donotmailmejonezy.com> writes:
my test server is win2k server, the script works fine, loads the movie,
allows user selection etc. however when i access the same script on my
remote server none of the requesting files load. the files are there, and
they are accessible. ive tested them out by themselves so i know its not an
issue with the file. i also just moved to windows from a unix machine. i
have the exact same script and movies on the unix machine and i have NEVER
had a problem.


That suggests that it is not the case of the file names that is wrong.
Try checking the content-type that the server sends the files with.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

P: n/a
In article <vf************@corp.supernews.com>, jonezy wrote:
my test server is win2k server, the script works fine, loads the movie,
allows user selection etc. however when i access the same script on my
remote server none of the requesting files load. the files are there, and
they are accessible. ive tested them out by themselves so i know its not an
issue with the file. i also just moved to windows from a unix machine. i
have the exact same script and movies on the unix machine and i have NEVER
had a problem. IM PUZZLED.


Using what browsers?
Jul 20 '05 #3

P: n/a
In article <vf************@corp.supernews.com>, jonezy wrote:
ie6

"Spamless" <Sp******@Nil.nil> wrote in message
news:3e**********@nntp2.nac.net...
In article <vf************@corp.supernews.com>, jonezy wrote:
> my test server is win2k server, the script works fine, loads the movie,
> allows user selection etc. however when i access the same script on my
> remote server none of the requesting files load. the files are there, and > they are accessible. ive tested them out by themselves so i know its not an > issue with the file. i also just moved to windows from a unix machine. i > have the exact same script and movies on the unix machine and i have NEVER > had a problem. IM PUZZLED.


Using what browsers?


Well, it is not push. The browser sees the file location and, hopefully,
asks for the file. If you have windup (tcpdump clone for windows) you
can see if it is actually requesting the file (or if you use a web
proxy like Privoxy or something ...).

If it is requesting the file, it may be a connection problem.

If it is not requesting the file ... does it work using Netscape
on Windows?
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.