To add javascript link support within data

Stimulsoft Reports.Silverlight discussion
Locked
bobsov
Posts: 115
Joined: Sun Jan 27, 2013 12:10 am

To add javascript link support within data

Post by bobsov »

I would like to get head start on adding a javascript support for specific text within cell. When hyperlink field is detected with a value, I would like to do more than just opening the link. If the value contains javascript, I would to call javascript function. What is the right area to look for this in source code?
bobsov
Posts: 115
Joined: Sun Jan 27, 2013 12:10 am

Re: To add javascript link support within data

Post by bobsov »

I think getting this to work from silverlight designer is tough, however, is it possible to just have this functionality to work from Html5 mobile viewer. I can see that hyperlinks are converted to html anchor tags in Html5 mobile viewer, however, I would like to be able to add "onclick" javascript event to open up a javascript function. Any head start or hint to get me started will be much appreciated.
bobsov
Posts: 115
Joined: Sun Jan 27, 2013 12:10 am

Re: To add javascript link support within data

Post by bobsov »

I figured this out. It does not work in designer/preview mode but that is perfectly fine. In html5 viewer, it recognizes javascript function and it works perfectly.

Cheers!!!
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: To add javascript link support within data

Post by Andrew »

Hello,

Thank you for writing.

Do I understand you correct that the issue is solved?

Thank you.
bobsov
Posts: 115
Joined: Sun Jan 27, 2013 12:10 am

Re: To add javascript link support within data

Post by bobsov »

Yes, partially. In silverlight report viewer, the javascript funtion does not work as intended but html5 viewer, it works which is all I need at this time.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: To add javascript link support within data

Post by HighAley »

Hello.

Yes, getting this to work from silverlight designer is tough.
It's better to use HTML5 Viewer for this.

Thank you.
Locked