469,328 Members | 1,316 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,328 developers. It's quick & easy.

&# in PARAM NAME causing problems

Hello,

I have an application that generates a HTML document that contains an
applet. It places raw data into the PARAM NAME tag. Well, once in a blue
moon it places the numeric character reference &# into the data. When my
Java applet imports this using the getParameter command, it reacts
differently between different version of IE. One solution is to not let my
original application generate the sequence &#, however, this does not fix
the HTML documents that have already been generated in the past. It would be
nice to just fix the Java applet so it can import this raw data without
having to recognize &# as a numeric character reference.

Is this possible?

Here is my HTML code:

<CENTER><APPLET CODE="graphics.class" ALIGN=RIGHT HEIGHT=420 WIDTH=220>
<PARAM NAME=Graphics VALUE="
=>.>/(%<!<!>((6<0>%(#(!(+>%(!(>(!>%(%>%>!(&/<(*<&>*/6>0>((!>+(%(<()<&(!>!(=(><!>#/)(#(6>+/=(.>+/1>&>#16<!/>(*(#/!(*(!/!(//#((>=1(/=/01)(/1=/!(=1//61!!6/>!61=>1!>/+!(!./!!+1%//./1*1<.&//./%.1!.+%*.&#1.<#&.%/.%%1.1/.&//.*.>1=!01*1=!!(.!1!<(&!)/*/(1#(+1+1!/)1!<!(11>>./#1)(>/%/*(//!>%/#/#((1<(/(616(&/)/<>#>.(%(1(+(<(+>1>+(>(%>&(+>((0(%((((>+(0(6>>()(/>+(&>%<%>.(6>#>>(!<.()(%<!>((!>!<&(!()<!(=(<>/>1<#??

"></APPLET></CENTER>
Aug 11 '05 #1
2 1259
Thomas Magma wrote:
I have an application that generates a HTML document that contains an
applet. It places raw data into the PARAM NAME tag. Well, once in a blue
moon it places the numeric character reference &# into the data.
Which is invalid.
One solution is to not let my original application generate the sequence
&#
Fix it so it represents the sequence &# as &amp;#.
however, this does not fix the HTML documents that have already been
generated in the past.
Get a text editor that can do a global search and replace, then run it only
on files from before you fixed the generator.
It would be nice to just fix the Java applet so it can import this raw
data without having to recognize &# as a numeric character reference.


I suspect you'll find that the browser interprets &# and feeds the result to
the applet, the applet doesn't decode the raw markup.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 11 '05 #2
Thanks for your response.
I suspect you'll find that the browser interprets &# and feeds the result
to
the applet, the applet doesn't decode the raw markup.


This is what I suspected was happening. I was hoping to fix this problem in
the applet. Fixing it in the app is really quite easy. Oh well, life goes
on.

Thanks anyways.

Thomas
Aug 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by bdinmstig | last post: by
1 post views Thread by Alexey V. Dmitriev | last post: by
2 posts views Thread by Scott Zabolotzky | last post: by
10 posts views Thread by Bilal | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.