Jump to content
Changes to the Jaspersoft community edition download ×

JavaScript:history.go(-1) in hyperlink


vaishnav_piyush

Recommended Posts

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 = blank

hyperlink 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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...