vaishnav_piyush Posted August 9, 2007 Share Posted August 9, 2007 Hi all !! i want to create a hyperlink in jasper report (to be viewed as pdf in IE) and set its target to "javascript:history.go(-1)". Currently i've set hyperlink target = blankhyperlink type = reference hyperlink expression = "" onclick = 'javascript:hisory.go(-1)' but this not working. can somebody suggest me a solution.. Link to comment Share on other sites More sharing options...
szaharia Posted August 9, 2007 Share Posted August 9, 2007 Hi, try without "onclick=" part. Just put hyperlink expression = "javascript:history.go(-1);"Post edited by: shertage, at: 2007/08/09 09:03 Link to comment Share on other sites More sharing options...
vaishnav_piyush Posted August 9, 2007 Author Share Posted August 9, 2007 no it doesn't work... the acrobat reader treats it as some url of website and raises a security alert. can u suggest something else.. i've already tried the direct optionsthanks anyways... Link to comment Share on other sites More sharing options...
szaharia Posted August 9, 2007 Share Posted August 9, 2007 I'm afraid a construction with href="" wouldn't work ever.I think also that Acrobat throws the security alert because it's a matter of running scripts, and not of forwarding to a website url.Maybe the only solution is to keep in a parameter you will pass to the report, the actual url of the previous page, and write a proper hyperlink expression with that url.Anyway, if you'd try to post your web app related question on the appropriate forum, probably there would be more people with javascript expertise who could give you optimized solutions. hth,sanda Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now