Serving Web Pages Problem.

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
infinitusCR
Posts: 7
Joined: Sat Dec 01, 2012 5:54 pm
Has thanked: 1 time

Serving Web Pages Problem.

Post by infinitusCR »

Hi,

I cant seem to view the different pages of the web component (pages 2-4.htm). If I rename any of those pages to index.htm it can be viewed, but if acces it via a link (using html a href) all it does is reload whatever page is set to index.htm but If I include an a href link to, say google, that does work. Even if I type the url of a webserver component page all it does is reload index.htm. What could be the problem? I have tried using example files and I get the same problem.

Im using the EB023-00-2.

<html>
<head>
<title>Estacion Meteorologica</title>
</head>
<body BGCOLOR="#FFFFFF">
<font face="arial">
<h1>Estacion Meteorologica</h1>
<pre>
<script>
var dir=%DIRECCION%;
dir=dir*2;
var vel=%VELOCIDAD%;
vel=vel*0.06479;
vel=Math.round(vel);
var prom=%PROMEDIO%;
prom=prom*0.06479/24;
prom=Math.round(prom);

if (vel=0)
{
document.writeln("Direccion: ","En Calma");
document.writeln("");
document.writeln("Velocidad: ","En Calma");
document.writeln("");
document.writeln("Promedio: ","En Calma");
}
else
{
document.writeln("Direccion: ",dir);
document.writeln("");
document.writeln("Velocidad: ",vel);
document.writeln("");
document.writeln("Promedio: ",prom);
}
</script>
</font>
</pre>
<a href="atmosfera.htm">Atmosfera</a>
</body>
</html>
Last edited by infinitusCR on Thu Dec 20, 2012 12:45 am, edited 1 time in total.

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: Serving Web Pages Problem.

Post by DavidA »

Hello,

Do the pages work fine if you visit them via typing in the url?

infinitusCR
Posts: 7
Joined: Sat Dec 01, 2012 5:54 pm
Has thanked: 1 time

Re: Serving Web Pages Problem.

Post by infinitusCR »

No. If I type the url to say 192.168.0.40/page2.htm all it does is reload index.htm. I have to rename page2 to index in order to view it. For some reason it only loads whatever is set to the index.htm url... Im stuck!

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Serving Web Pages Problem.

Post by Benj »

Hello,

Are you using Flowcode and if so then which release version are you using?

infinitusCR
Posts: 7
Joined: Sat Dec 01, 2012 5:54 pm
Has thanked: 1 time

Re: Serving Web Pages Problem.

Post by infinitusCR »

Hi,

I am using flowcode V4.5 for PIC.

Post Reply