Character Conversion

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alan Little

    Character Conversion

    I have a string that I'm properly URL-encoding to be passed in a URL.
    Here's the tag from the HTML source:

    <A HREF="JAVASCRIP T:openPopWin('t akeit.php?568&1 0&dr.+hobo%27s+ scalpel',
    325, 325, 'scrollbars')">

    But when I mouse-over the link, the %27 shows in the status bar as a ' and
    when I click on it, I get a JS error because of the extraneous '. The +s
    are not being decoded - why is this one character, and is there a way to
    prevent it?

    --
    Alan Little
    Phorm PHP Form Processor

  • codomaniac

    #2
    Re: Character Conversion


    "Alan Little" <alan@n-o-s-p-a-m-phorm.com> a écrit dans le message de news:
    Xns951AE6D10E86 Dalanphormcom@2 16.196.97.132.. .[color=blue]
    > I have a string that I'm properly URL-encoding to be passed in a URL.
    > Here's the tag from the HTML source:
    >
    > <A HREF="JAVASCRIP T:openPopWin('t akeit.php?568&1 0&dr.+hobo%27s+ scalpel',
    > 325, 325, 'scrollbars')">
    >
    > But when I mouse-over the link, the %27 shows in the status bar as a ' and
    > when I click on it, I get a JS error because of the extraneous '. The +s
    > are not being decoded - why is this one character, and is there a way to
    > prevent it?
    >
    > --
    > Alan Little
    > Phorm PHP Form Processor
    > http://www.phorm.com/[/color]

    did you try this ?
    <A HREF="JAVASCRIP T:openPopWin('t akeit.php?568&1 0&dr.+hobo\'s+s calpel',
    325, 325, 'scrollbars')">

    Franck








    Comment

    • Randy Webb

      #3
      Re: Character Conversion

      codomaniac wrote:[color=blue]
      > "Alan Little" <alan@n-o-s-p-a-m-phorm.com> a écrit dans le message de news:
      > Xns951AE6D10E86 Dalanphormcom@2 16.196.97.132.. .[/color]

      <--snip-->
      [color=blue]
      > did you try this ?
      > <A HREF="JAVASCRIP T:openPopWin('t akeit.php?568&1 0&dr.+hobo\'s+s calpel',
      > 325, 325, 'scrollbars')">[/color]

      And then try this:



      --
      Randy
      Chance Favors The Prepared Mind
      comp.lang.javas cript FAQ - http://jibbering.com/faq/

      Comment

      • Alan Little

        #4
        Re: Character Conversion

        Carved in mystic runes upon the very living rock, the last words of
        Randy Webb of comp.lang.javas cript make plain:
        [color=blue]
        > codomaniac wrote:[color=green]
        >> "Alan Little" <alan@n-o-s-p-a-m-phorm.com> a écrit dans le message de
        >> news: Xns951AE6D10E86 Dalanphormcom@2 16.196.97.132.. .[/color]
        >
        > <--snip-->
        >[color=green]
        >> did you try this ?
        >> <A
        >> HREF="JAVASCRIP T:openPopWin('t akeit.php?568&1 0&dr.+hobo\'s+s calpel',
        >> 325, 325, 'scrollbars')">[/color]
        >
        > And then try this:
        >
        > http://www.jibbering.com/faq/#FAQ4_24[/color]

        Thanks for the ref. That's much cleaner.

        --
        Alan Little
        Phorm PHP Form Processor

        Comment

        Working...