Entity name must immediately follow the '&' in the entity referenc

Entity name must immediately follow the '&' in the entity referenc

Post by SmFj » Wed, 22 Jul 2009 18:53:01


Hi,

I've a script written in JavaScript which I've tried running in IE7; it is
working.
But when I tried on other interpreter, the following error message pop-up:-
Your template could not be parsed as it is not well-formed. Please make sure
all XML elements are closed properly.
XML error message: The entity name must immediately follow the '&' in the
entity reference.

Could anybody out there help??
What is the cause for that problem???
Thanking in advance.
========================
The code is as below:-

<html>
<head>

<STYLE TYPE="text/css">
.D11
{
POSITION:absolute;
VISIBILITY:hidden;
Z-INDEX:200;
}
</STYLE>

<SCRIPT TYPE="text/javascript">
Xoffset=-60;
Yoffset= 20;
var isNS4=document.layers?true:false;
var isIE=document.all?true:false;
var isNS6=!isIE&&document.getElementById?true:false;
var old=!isNS4&&!isNS6&&!isIE;

var skn;
function initThis()
{
if(isNS4)skn=document.d11;
if(isIE)skn=document.all.d11.style;
if(isNS6)skn=document.getElementById("d11").style;
}

function popup(_m,_b)
{
var content="<TABLE WIDTH=400 BORDER=1 BORDERCOLOR=black CELLPADDING=2
CELLSPACING=0 "+"BGCOLOR="+_b+"><TD ALIGN=center><FONT COLOR=black
SIZE=2>"+_m+"</FONT></TD></TABLE>";
if(old)
{
alert("You have an old web browser:\n"+_m);
return;
}
else
{
if(isNS4)
{
skn.document.open();
skn.document.write(content);
skn.document.close();
skn.visibility="visible";
}
if(isNS6)
{
document.getElementById("d11").style.position="absolute";
document.getElementById("d11").style.left=x;
document.getElementById("d11").style.top=y;
document.getElementById("d11").innerHTML=content;
skn.visibility="visible";
}
if(isIE)
{
document.all("d11").innerHTML=content;
skn.visibility="visible";
}
}
}

var x;
var y;
function get_mouse(e)
{
x=(isNS4||isNS6)?e.pageX:event.clientX+document.body.scrollLeft;
y=(isNS4||isNS6)?e.pageY:event.clientY+document.body.scrollLeft;
if(isIE&&navigator.appVersion.indexOf("MSIE 4")==-1)
y+=document.body.scrollTop;
skn.left=x+Xoffset;
skn.top=y+Yoffset;
}

function removeBox()
{
if(!old)
{
skn.visibility="hidden";
}
}

if(isNS4)
document.captureEvents(Event.MOUSEMOVE);
if(isNS6)
document.addEventListener("mousemove", get_mouse, true);
if(isNS4||isIE)
document.onmousemove=get_mouse;
</SCRIPT>

</head>


<body>

<DIV ID="d11" CLASS="d11"></DIV>

<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 SUMMARY="holder">
<TR>
<TD ALIGN="left"><A HREF="#" ONMOUSEOVER="popup('<font color=yellow>It
is capable of exciting the central nervous system in the brain, extending the
hours of staying alert, enhancing mental sharpness and increasing mental
focus and concentration to help elevate job performance and learning
faculty.</font>','green')"
ONMOUSEOUT="removeBox()">Improve mental
alertness</A></TD>
</TR>
</TABLE>

<script>
initThis();
</script>

</body>
</html>
 
 
 

1. How to relate a SQL based entity with an Object based entity in Entity Framework

2. Can I control related-to entity name text in an entity's nav bar?

I have implemented a mediated many-to-many self-referencing relationship.
That is, I have set up a subscription entity, and I have defined two
relationships between it and the account entity. One relationship is that the
account provides the subscription; the other is that the account subscribes
to the subscription. In the nav bar for the account, the plural name of the
related-to entity is shown for each relationship. Hence one sees
"Subscriptions" twice, with no indicator whether it is the "provides
subscription" relationship or "subscribes to subscription" relationship. I
don't see any way to specify the text that is shown there, so I am asking
here.
--
Clark Wilson

3. How to Get Entity Name with Entity Code?

4. Export Entity - replace name - import entity?

5. Survey: named entities, decimal entities?

6. Entity, problem with entity key

7. General method to add any entity to its entity list

8. Entity, problem with entity key

9. Zoom viewport to entity or selection of entities

10. Move Sketch entities fails when there are too many entities?

11. for language experts: Constants defined in an entity visible in all deeper inner entities

12. UIP: wizard naviagation for an entity that contains child entities:

13. Problem loading referenced entities in Entity Framework.

14. Entity Framework table related to multiple entities

15. Generating many entities upon arrival of one entity in SimEvents