Hi
I am attempting to add some client-side code to open a new window when a node which has it's nagivateUrl is clicked and this is what I have so far.
function ClientNodeClicking(sender, eventArgs)
{
var node = eventArgs.get_node();
if (node.get_navigateUrl())
{
window.open(node.get_navigateUrl());
}
}
Although this does open a new window it caused the parent window to redirect with the [object] error. How can I open a new window or redirect the exsisting window to the navigateURL on a node click?
I am attempting to add some client-side code to open a new window when a node which has it's nagivateUrl is clicked and this is what I have so far.
function ClientNodeClicking(sender, eventArgs)
{
var node = eventArgs.get_node();
if (node.get_navigateUrl())
{
window.open(node.get_navigateUrl());
}
}
Although this does open a new window it caused the parent window to redirect with the [object] error. How can I open a new window or redirect the exsisting window to the navigateURL on a node click?