Skip to Content
0
Former Member
Oct 11, 2006 at 09:10 PM

How to get the Javascript valuable as EPCM.doRelativeNavigation para?

33 Views

I have hard time getting the Var pageID below as a parameter in:

EPCM.doRelativeNavigate();

The coma ,the slash coma , single quote, double quote between html, javascript is really confused me.

This code is from a html file, which is a source file for a html renderer;




<A HREF="moreLink"
onclick="
   
  javascript:'
  var iViewID=parent.pageSupport.getIvuId(self); 
  alert(iViewID);


  var rid = iViewID.replace('pcd:' ,'ROLES://');
  alert(rid);


  var iviewname= iViewID.substring(iViewID.lastIndexOf('.')+1,iViewID.length);
  alert(iviewname);

  var pageID = 'nvidia.pr.page.' + iviewname;
  alert(pageID);

  return EPCM.doRelativeNavigate(rid,2,'{pageID}',0,'', '', '', '','','',null);
  
  '

">
More</A>

When I do a : alert(pageID), the value is the right one I need. But I just can't get it as an input in my doRelativeNavigate function.

Thanks for help.

Kent