From: SourceForge.net <no...@so...> - 2005-09-01 05:44:07
|
Bugs item #1277987, was opened at 2005-09-01 01:44 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1277987&group_id=5757 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Nobody/Anonymous (nobody) Summary: small bug & fix in debug.js and debug.html Initial Comment: I found a small "bug" with the debugger when I use absolute path for dynapi.library.path, such as below: dynapi.library.setPath('/dynapi/src/'); The symptom is that you get "page does not exist" error when you try to open the debugger. The following 2 modifications can fix this problem: 1. In debug.js, find the code for opening the debugger and use the dynapi.documentPath only if the dynapi.library.path is not an absolute path: ------------------------------------------------- // opens the debugger window p.open = function() { var p = dynapi.library.path; if (!this.isLoaded() && p) { var url; var s = new String(p); if( s.substr(0,1)== '/') url = p + 'ext/debug.html#'; else url = dynapi.documentPath+p+'ext/debug.html#'; --------------------------------------------------------------- 2. In debug.html, use the same method when any resource URL is constructed. So far I just found the following two locations where change is necessary: ---------------------------------------------------------------- <!--D4D0C8--> <script> var ua=dynapi.ua; var url; var s = new String(dynapi.library.path); if( s.substr(0,1) == '/') url = dynapi.library.path+'ext/'; else url = dynapi.documentPath+dynapi.library.path+'ext/'; ------------------------------------------------------------------- function setFocus(){ dynapi={'_imageHook':NullFn}; if(window.opener) dynapi = window.opener.dynapi; if(dynapi && dynapi.debug) { if(!dynapi.debug.win) dynapi.debug.win=win; var url; var s = new String (dynapi.library.path); if( s.substr(0,1) == '/') url = dynapi.library.path+'ext/'; else url = dynapi.documentPath+dynapi.library.path+'ext/'; ------------------------------------------------------------------------- BTW, this might not be the best solution - just want to share some experience with other dynapi users. And tell the truth, I love dynapi's elegancy and really appreciate the effort from dynapi creators and contributors. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1277987&group_id=5757 |