// callback.js // program to redirect EM browser from online help // created Feb 05, 2007 // colin.mcgregor@oracle.com // Feb 28, 2007 added empty string for undefined values CM function redirectEMpage(pageid) { var newloc= "/em/console/database/util/helpRedirect?pageid=" + pageid; //get opener paramters with openerParams object var myopener = new openerParams(); // alert("new object myopener target is " + myopener.target); newloc += "&target=" + myopener.target; newloc += "&type=" + myopener.type; // alert("about to redirect opener to " + newloc); top.opener.location=newloc; } function showURLparams() { var pageid = "DBHOMEPAGE"; var newloc= "/em/console/database/util/helpRedirect?pageid=" + pageid; //get opener parameters with openerParams object var myopener = new openerParams(); // alert("new object myopener target is " + myopener.target); newloc += "&target=" + myopener.target; newloc += "&type=" + myopener.type; alert("redirect string (target and type) is set to " + newloc); // top.opener.location=newloc; } function openerParams(){ // this parameter parsing routine snagged from http://www.go4expert.com/forums/showthread.php?t=2163 // get the opener URL param string var url = top.opener.location.search.toString(); // var url = "https://stadh43:7724/em/console/database/databaseObjectsSearch?event=noSearch&otype=schema&objectType=TABLE&target=database&type=oracle_database&pageNum=5"; //get the opener parameters and parse them out url.match(/\?(.+)$/); var params = RegExp.$1; // split up the query string and store in an // associative array // possible EM parameters are "target", "type", "event", "otype", "objectType", "pageNum" var params = params.split("&"); var queryStringList = {}; for(var i=0;i