I am trying to open a modal dialog page through a JavaScript redirect URL.
My code is like this:
$('#Subnet tr').each(function (i, row){
var $row = $(row);
var $hostname = $row.find('[headers=Hostname]');
if($hostname.text() == '-'){
var url = "f?p="+$v('pFlowId')+":113:"+$v('pInstance')+"::::P113_SUBNET_ID:"+$row.find('[headers=ID]').text();
$hostname.html("<a href='"+url+"'><span class='fa fa-plus-square-o'></span></a>");
console.log($row.find('[headers=ID]').text()+ ' / '+$row.find('[headers=Address]').text());
}
});
but I get an error that says:
Can anyone tell me what I did wrong?
Or maybe another way to redirect to a modal dialog page?