Results 1 to 4 of 4

Thread: Send character 39

  1. #1

    Thread Starter
    Fanatic Member Illspirit's Avatar
    Join Date
    Mar 2001
    Location
    Blackpool, England
    Posts
    815

    Send character 39

    hey!

    i think ive hit a 50ft high electrified razor wire fence here, but it might be possible...

    there is a write function... write('bla bla bla').. and i want to send a:

    '): <script></script> write('

    so that it will stop writin it, and run whatevers in the script part... It is sent using an url, to a cgi function, and when i try sending it, it changes %27 into &#39 in the source so it ends up like this:

    write('bla bla bla&#39): <script></script> write('&#39 bla bla

    how can i send a ' which will appear in the source??

    thanx
    Illspirit - [email protected]

    SmartBarXP Lead Developer
    SmartBarXP - The leading desktop sidebar application for Microsoft Windows XP

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Not that I understand your question, but try escaping whatever character you want to be ignored. The JavaScript escape character is the backslash.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3

    Thread Starter
    Fanatic Member Illspirit's Avatar
    Join Date
    Mar 2001
    Location
    Blackpool, England
    Posts
    815
    lol, i only just noticed! it changed the &#38#39 into an ' on my question, it should have been...

    --------------------------------------------------------------------

    there is a write function... write('bla bla bla').. and i want to send a:

    '): <script></script> write('

    so that it will stop writin it, and run whatevers in the script part... It is sent using an url, to a cgi function, and when i try sending it, it changes %27 into &#38#39 in the source so it ends up like this:

    write('bla bla bla&#38#39 ): <script></script> write('' bla bla

    how can i send a ' which will appear in the source??

    --------------------------------------------------------------------

    so all i want to do is send a ' character (%27) without it being changed into the &#38#39 in the script... does that make sense??
    Illspirit - [email protected]

    SmartBarXP Lead Developer
    SmartBarXP - The leading desktop sidebar application for Microsoft Windows XP

  4. #4
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    No, you still make no sense. Smelt the problem down to its absolute simpliest form. And clearly ask what you want. Your post mentions that you are trying to send a line, but your gross lack of punctuation turns your entire post into a series of non sequiturs.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width