This is a migrated thread and some comments may be shown as answers.

Problems in opening a radWindow

1 Answer 34 Views
Window
This is a migrated thread and some comments may be shown as answers.
Felice
Top achievements
Rank 1
Felice asked on 13 Mar 2014, 07:46 PM
Hi,

I have the following situation:
In a radRotator I have a div that capture the link value in a variable and calls a Javascript.
The javascript is supposed to pass the url value to the radWindow that should then finally open up and navigate to the url site.

Nothing is happening, the radWindow is not opening. Your support would be appreciated.


the div
<div class="link">
    <span><a href="<%#XPath("link").ToString()%>" target="_blank" onclick="return getLink(this);"></span>
 </div>

the script:
<script type="text/javascript">
            function getLink(anch) {
                var sLink = anch.href;
                {
                    radOpen(sLink, "RadWindow1");
                }
                return false;
            }
        </script>

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 14 Mar 2014, 06:52 AM
Hi Felice,

Please do the following modifications in your JavaScript which works fine at my end.

JavaScript:
<script type="text/javascript">
    function getLink(anch) {
        var sLink = anch.href;
        {
            radopen(sLink, "RadWindow1");
        }
        return false;
    }
</script>

Hope this will help you.
Thanks,
Shinu.
Tags
Window
Asked by
Felice
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or