anonymous Log in
Search
Recents:
v3.0
gxenglish-l
URL looses \ during java script execution
30/01/15 04:31

Jannie Louw

Replies: 1

When I run the following Java script:
&url = "C:\Reports\Statement_10007984_600005350.pdf"
TextBlock1.Caption = '<script> window.open ("'+&url+'","");</script>'

the "\" are dropped during execution e.g. the code that is executed is:
c:ReportsStatement_10007984_600005350.pdf instead of
C:\Reports\Statement_10007984_600005350.pdf

I use Genexus X Ev2 u6 under .NET and running Web

Any suggestions

Replies

Aquino

30/01/15 09:32
Within the gxgral.js file change this.buffer.append return ("" + f + '= "' + g.toString () replace (/ \" / g, "& quot;.") + '"') to this.buffer.append return ("" + f + '= "' + g.toString () + '"') Now this only occurs because it is understood as a screen code ... If you use a UserControl type RCO Open Windows, will not happen this substitution code, removing the \ Português: Dentro do arquivo gxgral.js existe uma função que remove esse \ ... Remova esta função... em alguns projetos... eu já remove e não teve nenhum efeito negativo... altere o bloco de código this.buffer.append return ("" + f + '= "' + g.toString () replace (/ \" / g, "& quot;.") + '"') por este this.buffer.append return ("" + f + '= "' + g.toString () + '"') Agora isso só ocorre porque é entendido como um código de tela... Se você utilizar um UserControl tipo RCO Open Windows, não vai acontecer essa substituição de código, removendo o \ Abraços Bruno Vrban Aquino 2015-01-30 3:25 GMT-02:00 Jannie Louw : > When I run the following Java script: > > &url = "C:\Reports\Statement 10007984 600005350.pdf" > > TextBlock1.Caption = '' > > > > the "\" are dropped during execution e.g. the code that is executed is: > > c:ReportsStatement 10007984 600005350.pdf instead of > > C:\Reports\Statement 10007984 600005350.pdf > > > > I use Genexus X Ev2 u6 under .NET and running Web > > > > Any suggestions > > > > > -- Atenciosamente, Bruno Vrban Aquino


Back to gxenglish-l