javascript in XSP (COCOON2) drives me crazy!!!!

A

arashamiri

Hi!
I have a problem:

I want to include a javascript-link in XSP with parameters on the
querystring, such as:

....
<xsp:attribute
name="value">javascript:link.html?test=1&test2=2</xsp:attribute>
....

How can I prevent the ampersand from being escaped???

I only get:
javascript:link.html?test=1&amp;test2=2</xsp:...

which obviously is useless for my browser...

please help!!!

arash.
 
A

arashamiri

sorry

I meant it is replaced by the &amp; amp;
that's what doesnt work
....
(P.S. i forgot that on posting this the & amp ; is replaced by an &...)

greetings,
arash
 
J

Johannes Koch

I want to include a javascript-link in XSP with parameters on the
querystring, such as:

....
<xsp:attribute
name="value">javascript:link.html?test=1&test2=2</xsp:attribute>
....

How can I prevent the ampersand from being escaped???

I only get:
javascript:link.html?test=1&amp;test2=2</xsp:...

which obviously is useless for my browser...

If

javascript:link.html?test=1&amp;test2=2

is what you get in the resulting markup it is correct and _not_ useless.
If your browser has problems with it, it is broken.

BTW, it does not look like javascript.
 
A

arashamiri

In my case the correct javascript looks like this:

javascript:setFrameSource('_self','advanced_01.html?m=addfilter&m_obj_id=1354'
);

replacing the "&" with an "& amp ;" (without the white spaces) doesnt
work.

Hence, my question is, if there is no way to prohibit xsp generators in
cocoon from escaping the "&" sign automatically?

greetings,
arash
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top