<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>Hi
</FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>The
probleme here is not using single or double quote. </FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>I
guess the method you calling addMenuItem is part of an object this method will
write the string you put as parameter.</FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>into a
the page with document.write or dynamicly into
a div with .innerHTML </FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>if you
do something like this </FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2><U>examples1</U></FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>var
myString='<a href="linktopage.htm" onmouseover="window.status=\'click to go
there\'">linked page</a>';</FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2>document.write (myString);</FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2>or</DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2><U>example2</U></FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>var
myString="<a href='linktopage.htm' onmouseover='window.status="click to go
there"'>linked page</a>";</FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2>document.write
(myString);</FONT></SPAN></DIV></FONT></SPAN></FONT></SPAN><SPAN
class=765164909-28082003><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>it
work fine but if you look at your code you should not write html with single
quote(example2) but double quote(example1), there you start to confuse yourself
trying to decide which quote to use what I always do is, if your string
contain HTML use single quote(example1) like this no confusion
with your html and if you need to put single quote inside of your html,
you can simply escape them(example1) and like this you had a clear
representation of you quote inside of your string.</FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>But
this is not the end in your case this is not garanty to work at all because of
the process you using. When you past string like this throw parameter of a
function you must understand what addMenuItem is doing because when the
code will try to write dynamicly this string into a div or in a page it
might already evaluate the string inside the function and will not accept
the format is reading.</FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>My
recomendation will be to convert the addMenuItem method to include
window.status inside of the method because your addMenuItem must have already an
onmouseover inside (to make appear submenu) and you will end up with
something like this </FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2>menu.addMenuItem('hrefLabel', '/index1.php', 'status text',
'className')</FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2>Sometime you will find easier to convert the method the way you
want it exactly to work instead of trying to hack it. I understand this might
more difficult the just trying to the right quote but you will learn valuable
knowledge and will understand why your string concatenation doesn't
work.</FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003></SPAN> </DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>Good
luck </FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2>Laurent </FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff size=2>ps :
if you really don't understand send the us the code or a link to a page and I
will be happy to help</FONT></SPAN></DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765164909-28082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=765164909-28082003> </SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> murugesan
[mailto:murugesan@hotpop.com]<BR><B>Sent:</B> 28 August 2003
10:43<BR><B>To:</B> [JavaScript List]<BR><B>Subject:</B> Re: [Javascript] How
to change window status<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>I tried this,</FONT></DIV>
<DIV><FONT face=Arial size=2> menu.addMenuItem("<a
class='M' href='/index1.php' style='text-decoration: none' target='info'
onmouseover='window.status="blah-blah-blah"'>Click
here</a>");</FONT></DIV>
<DIV>But it is not correct.</DIV>
<DIV>because the javascript assumes ....' window.status=" as end of parameter
and resulted in error</DIV>
<DIV>I also tried</DIV>
<DIV> var status1="asdasd";</DIV>
<DIV> var menuitem1="<a href='/index1.php' "</DIV>
<DIV>
+"onmouseover='window.status="<BR> +status1<BR> +"
' "</DIV>
<DIV>
+"
> Click here</a>"</DIV>
<DIV>
<DIV><FONT face=Arial size=2>
menu.addMenuItem(menuitem1);</FONT></DIV>
<DIV>This time it is just displaying onmouseover in the status bar</DIV>
<DIV>Any solutions</DIV>
<DIV>-murugesan</DIV>
<DIV> </DIV></DIV></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dlovering@gazos.com href="mailto:dlovering@gazos.com">David
Lovering</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 28, 2003 11:38
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] How to change
window status</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>well, I'm not quite sure what "text" is
supposed to represent, but I do recognize what might be construed as a
syntax anomaly which would (possibly) invalidate the remainer of the anchor
definition. Try something like this --</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>menu.addMenuItem("<a class='M'
href='/index1.php' style='text-decoration: none' target='info'
onmouseover='window.status="blah-blah-blah"'>Click
here</a>");</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Also, the old precidence rules suggest (but
I've never actually found it to be required) that the outer quotes be the
double quote ("), and the inner quotes be the single ('). Mind you,
I've violated the suggestion hundreds of times, and no one has zapped my
karma yet. However, defining a style (CSS) parameter outside of a
style declaration is generally regarded as a no-no even now.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-- Dave Lovering</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=murugesan@hotpop.com
href="mailto:murugesan@hotpop.com">murugesan</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, August 27, 2003
10:16 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] How to change
window status</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>I have a code</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>menu.addMenuItem("<a class=M
href='/index1.php' text-decoration:none target='info' >Click
here</a>");</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Now I want to change the window status upon
mouseover on this link.</FONT></DIV>
<DIV><FONT face=Arial size=2>How can I achieve this?</FONT></DIV>
<DIV><FONT face=Arial size=2>i.e I need a valid statement of
form</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>menu.addMenuItem("<a class=M
href='/index1.php' text-decoration:none target='info' onmouseover='
window.status="text" '>Click here</a>");</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-murugesan</FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Javascript
mailing
list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Javascript mailing
list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
<BR>
<BR>
<P><B><FONT SIZE=2 FACE="Arial">DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, or have otherwise received it in error, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company.</FONT></B></P>