&# in PARAM NAME causing problems

Discussion in 'Javascript' started by Thomas Magma, Aug 11, 2005.

  1. Thomas Magma

    Thomas Magma Guest

    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>
    Thomas Magma, Aug 11, 2005
    #1
    1. Advertising

  2. 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
    David Dorward, Aug 11, 2005
    #2
    1. Advertising

  3. Thomas Magma

    Thomas Magma Guest

    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
    Thomas Magma, Aug 12, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Thomas Magma

    &# in PARAM NAME causing problems

    Thomas Magma, Aug 11, 2005, in forum: Java
    Replies:
    2
    Views:
    429
    Thomas Magma
    Aug 12, 2005
  2. Thomas Magma

    &# in PARAM NAME causing problems

    Thomas Magma, Aug 11, 2005, in forum: HTML
    Replies:
    2
    Views:
    394
    Thomas Magma
    Aug 12, 2005
  3. Geathaa
    Replies:
    2
    Views:
    689
    Geathaa
    Jul 30, 2003
  4. ectoplasm
    Replies:
    12
    Views:
    635
    Zorro
    Jul 28, 2005
  5. Dave
    Replies:
    5
    Views:
    650
    John Bokma
    Apr 26, 2011
Loading...

Share This Page