Problem with onchange event

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • viki1967
    Contributor
    • Oct 2007
    • 263

    Problem with onchange event

    Hi there.

    I have problem with this onchange event:

    Code:
    onChange="window.location='upload.asp?B='+ encodeURIComponent(this.options[this.selectedIndex].value);">
    If B value contains value città , this script presents javascript error.

    For example:

    1) upload.asp?citt à ===> generates javascript error;
    2) upload.asp?citt a' ===> not generates javascript error;

    Can you help me?
    Kind regards

    Viki
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    What's the error message?

    Comment

    • viki1967
      Contributor
      • Oct 2007
      • 263

      #3
      Originally posted by acoder
      What's the error message?
      The value città is not selectable...

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        You'll have to post the rest of the relevant code, then.

        Comment

        Working...