Yes, the quotes are right.  You'll notice that the double quotes surround a 
URL argument for the javascript variable (which starts with a leading /), 
and that whole thing is enclosed in single quotes as the argument to the 
onmouseover call.  I believe what you're saying is that I should escape the 
inner set of quotes to make them part of the string, right?

I think the problem with this is that javascript doesn't allow embedded 
quotes of the same type. Meaning, if you have doubles on the outside, you 
have to have singles on the inside, and vice versa.  After reading Joe's 
response posted here about how Orion rewrites stuff during parsing, I came 
to the conclusion that Orion basically forces the outer quotes to be double 
quotes, and the inner quotes to be single in order for javascript to be 
interpreted right by the browser.

Once I re-ordered my quotes, everything was working fine.  IMO, this is the 
more logical way to do it anyway, but I s'pose if Tomcat and JRun allow it 
to be done the other way, Orion should too.  I'll lodge a bug report, and 
we'll go from there.

anyhoo, to make a long story short, the problem in my code is fixed now, 
and it is operating as it should.  Thanks for all the responses!


At 09:05 PM 10/24/2000 -0500, you wrote:
>I don't have this problem. Are you sure your doing the quotes right?
>
>It should be something like <a href=/"linke/"> whereas it seems you have
>"/kdkdk/" which wouldn't work.
>
>
> > -----Original Message-----
> > From: Drew Kidder [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 24, 2000 8:20 AM
> > To: Orion-Interest
> > Subject: Orion doesn't interpret Javascript correctly
> >
> >
> > All,
> >
> > I have a fully functional webapp that runs perfectly under
> > Tomcat (albeit a
> > little slow). The main menu bar consists of rollovers that
> > utilize the
> > onmouseover and onmouseout routines of Javascript.  For
> > example, one of the
> > tags looks like this:
> >
> > <a href="/news/"
> > onmouseout='csne_button.src="/images/lv1-off_04.gif"'
> > onmouseover='csne_button.src="/images/lv1-on_04.gif"'>
> >       <img src="/images/lv1-off_04.gif" alt="" border=0 height=18
> > name=csne_button width=117>
> > </a>
> >
> > which, of course basically changes the image when the mouse
> > pointer crosses
> > it.  Anyway, any time I try to view the pages in any browser that are
> > served by Orion, I get tons of javascript errors, complaining
> > about various
> > aspects of the onmouseout and onmouseover calls, most notably
> > of which
> > seems to be a replacement of the single quote delimiters (')
> > with double
> > quotes, such as
> >
> > <a href="/news/"
> > onmouseout="csne_button.src="/images/lv1-off_04.gif""
> > onmouseover="csne_button.src="/images/lv1-on_04.gif"">
> >       <img src="/images/lv1-off_04.gif" alt="" border=0 height=18
> > name=csne_button width=117>
> > </a>
> >
> > which is obviously wrong, and which was obtained by examining
> > the source of
> > the returned page. It looks like Orion is not keeping the
> > single-quote
> > delimiters properly. Is anyone else having this problem?
> > Better yet, is
> > there some solution?
> >
> > ------
> > Andrew Kidder
> > L3 SW/Support Engineer, IBU
> > Tivoli Systems
> >
> > 512-436-4544
> > [EMAIL PROTECTED]
> > http://www.tivoli.com
> >
> >


------
Andrew Kidder
L3 SW/Support Engineer, IBU
Tivoli Systems

512-436-4544
[EMAIL PROTECTED]
http://www.tivoli.com



Reply via email to