Problems in opening a radWindow

2 posts, 1 answers
  1. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 13 Mar 2014 Link to this post

    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>
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Mar 2014 in reply to Felice Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top