Edit D:\app\Administrator\product\11.2.0\dbhome_1\owb\doc\ohj\callback.js
// 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<params.length;i++) { var tmp = params[i].split("="); queryStringList[tmp[0]] = unescape(tmp[1]); } // assign relevant properties to this object, // we assign empty strings if the values are undefined, ie not present if (queryStringList["target"]==undefined) {queryStringList["target"]="";} if (queryStringList["type"]==undefined) {queryStringList["type"]="";} if (queryStringList["otype"]==undefined) {queryStringList["otype"]="";} if (queryStringList["objectType"]==undefined) {queryStringList["objectType"]="";} this.target= queryStringList["target"]; this.type= queryStringList["type"]; this.otype= queryStringList["otype"]; this.objectType= queryStringList["objectType"]; } function showpageinfo() { var msg = 'top hostname is ' + top.location.hostname + '\n'; msg += 'top href is ' + top.location.href + '\n'; msg += 'top port is ' + top.location.port + '\n'; msg += 'top search is ' + top.location.search + '\n\n'; alert (msg); var newmsg = 'opener hostname is ' + top.opener.location.hostname + '\n'; newmsg += 'opener href is ' + top.opener.location.href + '\n'; newmsg += 'opener port is ' + top.opener.location.port + '\n'; newmsg += 'opener search is ' + top.opener.location.search + '\n'; alert(newmsg); }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de