Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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)
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
is working on a reply...
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.
Continue discussion
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
is working on a reply...
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.