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. Other Discussions
  3. Work Issues
  4. Window.open - Javascript help

Window.open - Javascript help

Scheduled Pinned Locked Moved Work Issues
helpjavascriptdatabasequestion
7 Posts 4 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
    Software_Guy_123
    wrote on last edited by
    #1

    Hello, I have code like window.open(strurl, strwinName) where strWinName's value is coming from database. User can enter value like [ABC]0001, ABC^001, if these value is assigning to strWinName then in Internet explorer getting error like 'Invalid arguments', but this works fine in firefox. Here problem in windows name, if we have any special characters like [,] or ^ then it is throwing error, How can I escape these characters any work around is appreciated.

    Thanks & Regards, Kumar

    P P 2 Replies Last reply
    0
    • S Software_Guy_123

      Hello, I have code like window.open(strurl, strwinName) where strWinName's value is coming from database. User can enter value like [ABC]0001, ABC^001, if these value is assigning to strWinName then in Internet explorer getting error like 'Invalid arguments', but this works fine in firefox. Here problem in windows name, if we have any special characters like [,] or ^ then it is throwing error, How can I escape these characters any work around is appreciated.

      Thanks & Regards, Kumar

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      How is this a work or training issue? Apart from the obvious - that you need more training to accomplish this. Anyways - as we're here, if you're coding in .NET you could use HttpServerUtility.HtmlEncode. In Javascript, you can use escape on the string, i.e. escape(url).

      Deja View - the feeling that you've seen this post before.

      S S 2 Replies Last reply
      0
      • P Pete OHanlon

        How is this a work or training issue? Apart from the obvious - that you need more training to accomplish this. Anyways - as we're here, if you're coding in .NET you could use HttpServerUtility.HtmlEncode. In Javascript, you can use escape on the string, i.e. escape(url).

        Deja View - the feeling that you've seen this post before.

        S Offline
        S Offline
        Scott Dorman
        wrote on last edited by
        #3

        Pete O`Hanlon wrote:

        How is this a work or training issue? Apart from the obvious - that you need more training to accomplish this.

        Training is overrated, isn't it? I thought it was optional. :)

        Scott.


        —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

        P 1 Reply Last reply
        0
        • S Scott Dorman

          Pete O`Hanlon wrote:

          How is this a work or training issue? Apart from the obvious - that you need more training to accomplish this.

          Training is overrated, isn't it? I thought it was optional. :)

          Scott.


          —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Scott Dorman wrote:

          Training is overrated,

          I far prefer to just wing it and cover my tracks with generous helpings of bad attitude and strong opinions.

          Deja View - the feeling that you've seen this post before.

          1 Reply Last reply
          0
          • P Pete OHanlon

            How is this a work or training issue? Apart from the obvious - that you need more training to accomplish this. Anyways - as we're here, if you're coding in .NET you could use HttpServerUtility.HtmlEncode. In Javascript, you can use escape on the string, i.e. escape(url).

            Deja View - the feeling that you've seen this post before.

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

            Hello, Thank you for your reply. This is a work issue. javascript escape function was also throwing error. HtmlEncode I will check.

            Thanks & Regards, Kumar

            S 1 Reply Last reply
            0
            • S Software_Guy_123

              Hello, Thank you for your reply. This is a work issue. javascript escape function was also throwing error. HtmlEncode I will check.

              Thanks & Regards, Kumar

              S Offline
              S Offline
              Scott Dorman
              wrote on last edited by
              #6

              This forum is generally for non-programming related work and training issues. From the forum description: Talk about work issues, get tips on resume writing or discussion certification programs.

              Scott.


              —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

              1 Reply Last reply
              0
              • S Software_Guy_123

                Hello, I have code like window.open(strurl, strwinName) where strWinName's value is coming from database. User can enter value like [ABC]0001, ABC^001, if these value is assigning to strWinName then in Internet explorer getting error like 'Invalid arguments', but this works fine in firefox. Here problem in windows name, if we have any special characters like [,] or ^ then it is throwing error, How can I escape these characters any work around is appreciated.

                Thanks & Regards, Kumar

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #7

                What does this have to do with work and training issues? You are in the wrong forum.

                "The clue train passed his station without stopping." - John Simmons / outlaw programmer

                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