Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • J 447 posts 864 karma points
    Feb 21, 2014 @ 17:35
    J
    0

    Help with RenderJS JS query

    My code is

     

            public override void RenderJS(ref StringBuilder Javascript)

            {

                Javascript.Append(@"

            function CurrentLocation(id) 

                {

                    parent.right.document.location.href = 'plugins/someFolderName/Default.aspx?id=' + id;

                }

                    ");

            }

     

    then everything works, if my code is (href is different this time)

     

            public override void RenderJS(ref StringBuilder Javascript)

            {

                Javascript.Append(@"

            function CurrentLocation(location, id) 

                {

                    parent.right.document.location.href = 'plugins/' + location + '/Default.aspx?id=' + id;

                }

                    ");

            }

     

    then it doesnt work but i dont get the usual "page not found" error. To check i am 100% sure location is populated with a name. Is my JS wrong or how should i be doing this?

     

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft