Page 1 of 1

To add javascript link support within data

Posted: Thu Jun 06, 2013 6:27 pm
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?

Re: To add javascript link support within data

Posted: Fri Jun 07, 2013 8:29 am
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.

Re: To add javascript link support within data

Posted: Fri Jun 07, 2013 3:51 pm
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!!!

Re: To add javascript link support within data

Posted: Sun Jun 09, 2013 4:34 am
by Andrew
Hello,

Thank you for writing.

Do I understand you correct that the issue is solved?

Thank you.

Re: To add javascript link support within data

Posted: Sun Jun 09, 2013 4:01 pm
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.

Re: To add javascript link support within data

Posted: Mon Jun 10, 2013 10:58 am
by HighAley
Hello.

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

Thank you.