/    Sign up×
Community /Pin to ProfileBookmark

How To Replace Ampersand

I need to open a new window(child) once the user clicks on the KPI(parent window) field on a Web page. I pass some parameters in the string. Problem is the KPI field can have the “&” ampersand character in it and the string thinks it is another parameter being sent. Any idea on how I can get around this? Any help is greatly appreciated

“javascript:void(window.open(‘http://velma.fmr.com/ReportServer/Pages/ReportViewer.aspx?%2fTest%2fDetailRpt&rs:Command=Render?arameters=true&RptMonth=” & Parameters!RptMonth.value & “&Reports=” & Parameters!Reports.value & “&ID=” & Parameters!ID.Value & “&Alias=” & Parameters!Alias.Value & “&BD=” & Parameters!BD.Value & “&BD=” & Parameters!ED.Value &” ‘,’_blank’,’width=875, height=400, top=75, left=35, toolbar=1, menubar=1, location=1, status=1, scrollbars=1, resizable=1′))”

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FangSep 18.2010 — [CODE]window.open('http://velma.fmr.com/ReportServer/Pages/ReportViewer.aspx?%2fTest%2fDetailRpt&rs:Command=Render:Parameters=true&RptMonth=" & Parameters!RptMonth.value & "&Reports=" & Parameters!Reports.value & "&ID=" & Parameters!ID.Value & "&Alias=" & Parameters!Alias.Value & "&BD=" & Parameters!BD.Value & "&BD=" & Parameters!ED.Value &" ','_blank','width=875, height=400, top=75, left=35, toolbar=1, menubar=1, location=1, status=1, scrollbars=1, resizable=1')[/CODE]
Copy linkTweet thisAlerts:
@ChamarkauthorSep 20.2010 — Thanks Fang but this didn't work
×

Success!

Help @Chamark spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...