Problem with XHTML-pesonse over Internet Urgent!
Hello!Intro:
I got a very strange problem at my office at work. We have bought a system called LUVIT for distance course management. The system is a web-based system build in ASP and uses IIS 5. We just got a light license so the LUVIT corp. manage the hosting. That means that we do not got any access to the code.
The funny thing is that it used to work at office at my work a week ago. But now some part do not work.
Desceription of the system:
The system got two different menus, one for navigation that are a regulare JavaScript menu in a frame. In an other frame we got an other menu that is build as an applet that controls other part of the system. Do not ask me why. Booth menus refer to asp or html files, nothing strange so far.
Since I'm a programmer myself I have downloaded the class-file for the applet and decompiled it and I have compiled it for different versions of Java, 1.1, and 1.5 and I can run it with out any problem when I run it local and uses my own targets like www.google.com. One problem of testing this applet is that the real applet refers to pages that uses session. No session, no access. So I can not point my local running applet to the exact same page unfortunatly.
Description of the problem:
But when I run it over the internet the strange thing is that some part, not all, of the targets from the applet does not work from inside at my office at work. But I can access it from my home computer. But other people can not access it from there home. I'm 99% sure that all people at my work cant access the same pages so that is the only consistance in this that I got.
I'm afraid to confuse you even more when I have heard that some people at there home can run the applet-menu nearly without any problem but when they click on ANY LINK nothing happens or they just get the same response that I get for those parts that do not work for me. Unfortunatly these people that expairence that does not remeber if the browser is loading anything or if the browser just doesn't response to click in the applet, like there is something wrong with the java-listener.
When we click on one of the links in the applet that do not work at my office at work. The frame that should view the respond just get white. But when I view the source I get, (I get the same source if I paste the url in the url-field of a separate browser):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
Since I get the same response if I use a separate browser or through the applet, my guess is that this has nothing to do with the applet or what do you think?
I do not know from where I get this result above cause the acctally result should look like a XML/XHTML (se below after all to view it all, fetched from home):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>.....
If I view the pages that DO work for me at my office at my work from the applet they all have in commen that they do not seems to use XML. All those files looks like this regular HTML and blow you got some start parts (for eg):
<html>....
or
<HTML>
<head>...
or
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>....
Perhaps it is the XML/XHTML that matters. And that we got some filter some where that blocks that type of responds. I have heard from our IT-support department that our Internet-provider recently updated the virusscanning. But I do not know anything about it or how Internet providers in general manage there setups for the routers or gateways or what ever they use outside our work to get us Internet access.
But there is acctually one response that starts with <?xml versi... that do work at my office.
My guess and conclusion is that the bug not may be in the LUVIT system instead it my be in our Internet access or what do you think? If we got it at our work other people that got the same problem at home thay may have the same problem with their Internet access.
I will download Firefox and Netscape and try them at once and try to validate these files at W3C.
So if any one got any idea how to solve this please let me know!!
Best regards
Fredrik
PS
At home I use Win 2000 and IE 6.0 SP1
At work I use Win XP and IE SP2
Below is the response that I do not get from my office at work, but I get it from my home computer:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>comstart.asp</title>
<link type="text/css" rel="stylesheet" href="/docLuvit/skins/erstaskondals/main.css" />
<style type="text/css">
<!--
select.group-list, select.course-list, select.profile-list
{
/* Can´t use this because it´s breaks the option elements in Mozilla 1.0 and Netscape :-(
width: 150px;
*/
}
-->
</style>
<script type="text/javascript" language="JavaScript">
<!--
//<GLOBAL VARIABLES>
//DOM compliant UA?
var DOM = (document.getElementById && !document.all && !document.layers) ? 1 : 0;
var objForm;
var objSelectCheckedUsers;
//</GLOBALS VARIABLES>
function openNewWindow(urlen)
{
var picwindow = null;
picwindow = window.open(urlen,'Uploadpicture','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=yes,copyhistory=no,width=470,height=320');
if (picwindow == null)
{
alert("Kunde inte skapa ett nytt fönster. Pröva att stänga några fönster eller att starta om din browser.");
}
}
function selectAllInSelectElement(objSelect)
{
for (var n = 0; n < objSelect.length; n++)
{
objSelect.options[n].selected = true;
}
}
function workaroundForNS6_2_x(objSelect)
{
//First we must make the select element a part of the context
objSelect.style.display = 'block';
//Then select all the option elements that already should be selected but they are not
selectAllInSelectElement(objSelect);
}
function matchNonDigitCharacter(objInput)
{
var rxpPattern = /\D/;
if (rxpPattern.test(objInput.value))
{
alert(RegExp.$_ + " är inte ett heltal!");
objInput.value = objInput.defaultValue;
}
}
function matchZeroDigitCharacters(objInput)
{
var rxpPattern = /^0+$/;
if (rxpPattern.test(objInput.value))
{
alert("<font color=red><i>ZeroIsNotAllowed (Context: communication)</font></i>!");
objInput.value = objInput.defaultValue;
}
}
function ltrimZeroDigitCharacters(objInput)
{
var rxpPattern = /^0+/;
if (rxpPattern.test(objInput.value))
{
objInput.value = objInput.value.replace(rxpPattern, '');
}
}
function doNotSelectUser(objCheckbox)
{
for (var n = objSelectCheckedUsers.length - 1; n >= 0; n--)
{
if (objSelectCheckedUsers.options[n].value == objCheckbox.value)
{
objSelectCheckedUsers.options[n] = null;
}
}
}
function doSelectUser(objCheckbox)
{
var objCheckedUser = new Option(objCheckbox.value, objCheckbox.value, false, true);
objSelectCheckedUsers.options[objSelectCheckedUsers.length] = objCheckedUser;
}
function validateEntriesField(objInput)
{
matchNonDigitCharacter(objInput);
matchZeroDigitCharacters(objInput);
ltrimZeroDigitCharacters(objInput);
}
function selectGroup(objSelect)
{
loadUserList();
}
function selectCourse(objSelect)
{
loadUserList();
}
function selectProfile(objSelect)
{
loadUserList();
}
function toggleShowImages(objCheckbox)
{
loadUserList();
}
function toggleShowOnline(objCheckbox)
{
loadUserList();
}
function loadUserList(intIndex)
{
var strURL = 'userlist.asp';
strURL += '?group=' + objForm.selGroup.options[objForm.selGroup.selectedIndex].value;
strURL += '&course=' + (objForm.selCourse ? objForm.selCourse.options[objForm.selCourse.selectedIndex].value : '56');
strURL += '&profile=' + (objForm.selProfile ? objForm.selProfile.options[objForm.selProfile.selectedIndex].value : -1);
strURL += '&images=' + (objForm.chkShowImages.checked ? 1 : 0);
strURL += '&online=' + (objForm.chkShowOnline.checked ? 1 : 0);
strURL += '&firstname=' + objForm.txtFirstName.value;
strURL += '&lastname=' + objForm.txtLastName.value;
strURL += '&entries=' + objForm.txtEntries.value;
strURL += (intIndex ? '&index=' + intIndex : objForm.hdnIndex.value);
//var objIFrame = document.getElementById('iframeUserList');
//objIFrame.setAttribute('src', strURL);
document.getElementById('iframeUserList').src = strURL;
//alert('LOADED');
}
function redrawScreen()
{
//Get the innerHeight of UA window
var innH = (DOM ? window.innerHeight + 25 : document.body.clientHeight);
//Set the height of the iframe
document.getElementById('iframeUserList').height = innH - 300;
}
function init()
{
//The form
objForm = document.forms['comlist'];
//The hidden select box with selected users
objSelectCheckedUsers = objForm.selCheckedUsers;
//Position and scale the iframe
redrawScreen();
//Load the user list
loadUserList();
//Load buttons in bottom frame
parent.frames['foot'].location.href = 'comtoolbar.asp';
}
window.onresize = redrawScreen;
//-->
</script>
</head>
<body onload="init();">
<script language="javascript">
function goBack()
{
document.location='';
}
</script>
<table style="width: 96%; padding: 0px; margin-top: 20px; margin-right: 10px; margin-left: 10px;" border="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td align="left" height="22" width="20" style="padding: 0px; border-style: solid; border-width: 1px; border-color: #000000; margin-left: 2px;"><img src="/Luvit/images/iconset/communicate.gif" width="20" height="22" border="0"></td>
<td align="left" nowrap="nowrap" class="header" style="padding: 0px; border-style: solid; border-width: 1px; border-color: #000000;"><span class="header"> Kommunicera</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" width="100%" valign="bottom">
<form name="comlist" action="comsluss.asp?" method="post" target="_parent">
<input type="hidden" name="hdnAction" value="" />
<input type="hidden" name="hdnChatRoomIDToJoin" value="" />
<select id="selCheckedUsers" name="selCheckedUsers" multiple="true" style="display: none;"></select>
<input type="hidden" name="hdnIndex" value="" />
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td class="formleft" width="15%">Grupp:</td>
<td class="formright" width="85%">
<select name="selGroup" size="1" class="group-list" onchange="selectGroup(this);">
<option value="-1" selected="selected">Alla grupper</option>
<option value="9F17F322-B5C6-4D60-B7E9-DB622F013B84">Alla studenter - socionomstudenter</option>
<option value="FF0090BD-5AF1-41A9-9D9C-BC91EDD2B8CA">Ansvarig för Botvid på nätet - Pernilla</option>
<option value="1DF3F1D5-6F0D-49AF-BBE6-F1AEB649D4D0">C-uppsatsämnen - Fältenheten personal</option>
<option value="0548D74E-C00E-455B-B591-16899D831EAF">C-uppsatsämnen - Fältenheten studenter</option>
<option value="043DD1CC-8751-4C65-81EE-7D583023F25B">Diakoniansvarig - Märta Blixt</option>
<option value="AC670D30-1302-495A-8F1F-026B56146CAF">Kursadministratör LUVIT - Birgitta och F</option>
<option value="6F477BBA-3E32-45E6-B3D3-D1E9AA3BABDA">SÄ2vt05 - Termin 2 - äldreinriktning</option>
<option value="924A7992-597F-4A4C-896C-C8900F3453D2">SÄ4vt05 - Termin 4 - äldreinriktning</option>
<option value="38343690-9661-4662-BB51-C5CD8717CFBA">SÄ6vt05 - Termin 6 - äldreinriktning</option>
<option value="FCC278E1-7BD6-4BF0-8697-2E448399C1A8">SÄ8vt05 - Termin 8 - äldreinriktning</option>
<option value="6D841A37-9974-4E07-895F-66B2B12F6190">SD2vt05 - Termin 2 - diakonal inriktning</option>
<option value="264BF1A0-B87A-489C-8002-8C03B0771FA2">SR4vt05 - Termin 4 - diakonal inriktning</option>
<option value="67B94A5E-398B-4C6C-9A76-43CE4C15CAF5">SR6vt05 - Termin 6 - diakonal inriktning</option>
<option value="77C66E38-049A-4E66-9652-5DE08BEA29AE">SR8vt05 - Termin 8 - diakonal inriktning</option>
<option value="B25BD961-0B44-4558-9857-865AE05CB284">Studierektorn - </option>
<option value="0B858439-331E-4842-94EA-D1BF6565DC37">Studievägledare - </option>
<option value="124B12B9-8CB9-43D3-AD64-EBD512F93967">Uppskov med studier - - </option>
</select>
</td>
</tr>
<tr>
<td class="formleft">Kurs:</td>
<td class="formright">
Botvid på nätet
</td>
</tr>
<tr>
<td class="formleft">Profil:</td>
<td class="formright">
<select name="selProfile" size="1" class="profile-list" onchange="selectProfile(this);">
<option value="-1">Alla profiler</option>
<option value="1">Kursadministratör</option>
<option value="2">Utbildare</option>
<option value="3">Kursdeltagare</option>
<option value="4">Gäst</option>
</select>
</td>
</tr>
<tr>
<td class="formleft">Visa:</td>
<td class="formright">
<input type="checkbox" id="chkShowOnline" name="chkShowOnline" onclick="toggleShowOnline(this);" />
<label for="chkShowOnline">Endast inloggade</label>
<input type="checkbox" id="chkShowImages" name="chkShowImages" onclick="toggleShowImages(this);" />
<label for="chkShowImages">Bilder</label>
</td>
</tr>
<tr>
<td class="formleft"> </td>
<td class="formright" valign="bottom">
Förnamn: <input type="text" name="txtFirstName" value="" size="10" />
Efternamn: <input type="text" name="txtLastName" value="" size="10" />
<input type="button" id="btnSearch" name="btnSearch" value="Sök" class="knapp" onclick="loadUserList();" />
     Antal personer per sida: <input type="text" name="txtEntries" size="3" value="20" onblur="validateEntriesField(this);" />
<input type="button" id="btnOk" name="btnOk" value="OK" class="knapp" onclick="loadUserList();" />
</td>
</tr>
</table>
</form>
<iframe id="iframeUserList" name="iframeUserList" src="about:blank" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe>
</td>
</tr>
</table>
</body>
</html>
