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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...