Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. script # problem [modified]

script # problem [modified]

Scheduled Pinned Locked Moved Web Development
helpcsharpcomcryptographytools
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sriharsha_12
    wrote on last edited by
    #1

    i'm using window.location.href... properties used... assume these values... ex:1 <SCRIPT>window.location.href ='mailto:test@test.com?subject=c&body=Hello'</SCRIPT> ex:2 <SCRIPT>window.location.href ='mailto:test@test.com?subject=c#&body=Hello'</SCRIPT> example 1 is working fine...when i come to example 2 to, it displays email and subject till '#' after that nothing is displayed... whenever there is a hash from that point nothing is getting displayed...but i need to display #... any ideas to overcome this issue....i'm using I.E...

    modified on Friday, February 5, 2010 1:00 AM

    N 1 Reply Last reply
    0
    • S sriharsha_12

      i'm using window.location.href... properties used... assume these values... ex:1 <SCRIPT>window.location.href ='mailto:test@test.com?subject=c&body=Hello'</SCRIPT> ex:2 <SCRIPT>window.location.href ='mailto:test@test.com?subject=c#&body=Hello'</SCRIPT> example 1 is working fine...when i come to example 2 to, it displays email and subject till '#' after that nothing is displayed... whenever there is a hash from that point nothing is getting displayed...but i need to display #... any ideas to overcome this issue....i'm using I.E...

      modified on Friday, February 5, 2010 1:00 AM

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      You need to encode the url using the javascript encodeURI or encodeURIComponent method.


      I know the language. I've read a book. - _Madmatt

      S 1 Reply Last reply
      0
      • N Not Active

        You need to encode the url using the javascript encodeURI or encodeURIComponent method.


        I know the language. I've read a book. - _Madmatt

        S Offline
        S Offline
        sriharsha_12
        wrote on last edited by
        #3

        no need of the encode, i replaced it with hex code %23, then it worked fine...

        N 1 Reply Last reply
        0
        • S sriharsha_12

          no need of the encode, i replaced it with hex code %23, then it worked fine...

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          encode is there so you don't have to remember to do this and to prevent malformed or malicious user input from causing unexpected results. But if you don't want to use the tools you have available and do it all by hand that's up to you.


          I know the language. I've read a book. - _Madmatt

          S 1 Reply Last reply
          0
          • N Not Active

            encode is there so you don't have to remember to do this and to prevent malformed or malicious user input from causing unexpected results. But if you don't want to use the tools you have available and do it all by hand that's up to you.


            I know the language. I've read a book. - _Madmatt

            S Offline
            S Offline
            sriharsha_12
            wrote on last edited by
            #5

            k...i'll try that...

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups