Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6b063f3c

Von Moritz Bunkus vor etwa 16 Jahren hinzugefügt

  • ID 6b063f3c88f7ca16e83a19759441a05e0ff84a47
  • Vorgänger 81d1ae0f
  • Nachfolger 08ca74a8

JavaScript und Umlaute in UTF-8-Codierung funktioniert nicht mit der JavaScript-Funktion "encode()", deshalb "encodeURIComponent()" benutzen.

Unterschiede anzeigen:

js/part_selection.js
25 25

  
26 26
  url = "common.pl?" +
27 27
    "action=part_selection_internal&" +
28
    "partnumber="              + escape_more(partnumber)        + "&" +
29
    "description="             + escape_more(description)       + "&" +
30
    "input_partnumber="        + escape_more(input_partnumber)  + "&" +
31
    "input_description="       + escape_more(input_description) + "&" +
32
    "input_partsid="           + escape_more(input_partsid)     + "&" +
33
    "input_partnotes="         + escape_more(input_partnotes)   + "&" +
34
    "filter="                  + escape_more(filter)            + "&" +
35
    "options="                 + escape_more(options)           + "&" +
36
    "formname="                + escape_more(formname)          + "&" +
28
    "partnumber="              + encodeURIComponent(partnumber)        + "&" +
29
    "description="             + encodeURIComponent(description)       + "&" +
30
    "input_partnumber="        + encodeURIComponent(input_partnumber)  + "&" +
31
    "input_description="       + encodeURIComponent(input_description) + "&" +
32
    "input_partsid="           + encodeURIComponent(input_partsid)     + "&" +
33
    "input_partnotes="         + encodeURIComponent(input_partnotes)   + "&" +
34
    "filter="                  + encodeURIComponent(filter)            + "&" +
35
    "options="                 + encodeURIComponent(options)           + "&" +
36
    "formname="                + encodeURIComponent(formname)          + "&" +
37 37
    "allow_creation="          + (allow_creation ? "1" : "0")   + "&" +
38 38
    "action_on_part_selected=" + (null == action_on_part_selected ? "" : action_on_part_selected.value);
39 39
  //alert(url);

Auch abrufbar als: Unified diff