[ASP] JS / VBS troubles
Geeft als output:
Geeft als output:
ASP:
1
2
3
4
5
6
7
8
9
10
11
12
| <% @LANGUAGE="JScript" %> <% function Quot(oInput) { oOutput = oInput.replace(/'/g, "/'"); // '" oOutput = oOutput.replace('"','"') // ' return oOutput; } TextString = "Do's and Don'ts" Response.Write(Quot(TextString)) %> |
Geeft als output:
MaarDo/'s and Don/'ts
ASP:
1
2
3
4
5
6
7
8
9
10
11
12
| <% @language="JScript" %> <% function Quot(oInput) { oOutput = oInput.replace(/'/g, "/'"); // '" oOutput = oOutput.replace('"','"') // ' return oOutput; } TextString = Request.QueryString('q') // <- zelfde tekst verder Response.Write(Quot(TextString)) %> |
Geeft als output:
Mis ik iets? Doe ik iets fout?Runtime-fout Microsoft JScript (0x800A01B6)
Deze eigenschap of methode wordt niet ondersteund door dit object
[ Voor 0% gewijzigd door Skaah op 18-11-2002 19:38 . Reden: ff verduidelijkt :) ]