RE: Orion doesn't interpret Javascript correctly

2000-10-25 Thread Drew Kidder

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  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:
> >
> >  > onmouseout='csne_button.src="/images/lv1-off_04.gif"'
> > onmouseover='csne_button.src="/images/lv1-on_04.gif"'>
> >> name=csne_button width=117>
> > 
> >
> > 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
> >
> >  > onmouseout="csne_button.src="/images/lv1-off_04.gif""
> > onmouseover="csne_button.src="/images/lv1-on_04.gif"">
> >> name=csne_button width=117>
> > 
> >
> > 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






RE: Orion doesn't interpret Javascript correctly

2000-10-24 Thread Duffey, Kevin

I don't have this problem. Are you sure your doing the quotes right?

It should be something like  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:
> 
>  onmouseout='csne_button.src="/images/lv1-off_04.gif"' 
> onmouseover='csne_button.src="/images/lv1-on_04.gif"'>
>name=csne_button width=117>
> 
> 
> 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
> 
>  onmouseout="csne_button.src="/images/lv1-off_04.gif"" 
> onmouseover="csne_button.src="/images/lv1-on_04.gif"">
>name=csne_button width=117>
> 
> 
> 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
> 
> 




Re: Orion doesn't interpret Javascript correctly

2000-10-24 Thread Joe Walnes

Andrew,

The reason this is happening, is that when JSPs are compiled, Orion 
recreates them slightly to insert code for url-rewriting for 
session-tracking. Obviously it is always recreating the tag with attributes 
enclosed in "".

The short term solution to your problem is to switch around your '' with 
your "". e.g.

from: onmouseout='csne_button.src="/images/lv1-off_04.gif"'
to  : onmouseout="csne_button.src='/images/lv1-off_04.gif'"

The long term solution is to register a bug report with Orion (they do not 
have time to read all messages on this list). You can do this by using the 
bug-tracking system at , or mailing 
<[EMAIL PROTECTED]>.

-Joe Walnes

At 16:20 24/10/2000, you wrote:
>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:
>
>onmouseover='csne_button.src="/images/lv1-on_04.gif"'>
>  name=csne_button width=117>
>
>
>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
>
>onmouseover="csne_button.src="/images/lv1-on_04.gif"">
>  name=csne_button width=117>
>
>
>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
>
>





Orion doesn't interpret Javascript correctly

2000-10-24 Thread Drew Kidder

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:





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





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