Copied to clipboard

Flag this post as spam?

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


  • J 351 posts 606 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies