You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(7) |
Aug
(57) |
Sep
(29) |
Oct
|
Nov
(6) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
(3) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
(1) |
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: SourceForge.net <no...@so...> - 2005-09-12 13:29:24
|
Bugs item #1288708, was opened at 2005-09-12 15:29 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=1288708&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: Romain OLLIVIER (rhum1) Assigned to: Nobody/Anonymous (nobody) Summary: Cannot add function in Array prototype Initial Comment: Hi, I use a toolkit js library (gosu) with dynapi. When I load dynapi AND gosu's libraries, I got the following error : Error: n.indexOf is not a function Source File: http://localhost/dotproject/lib/dynapi/src/dynapi.js Line: 388 After a few tests, I found what was going wrong. Gosu add functions to Array prototype. If I remove this functions, everything's going fine. I use FF 1.0.6, but the same error occurs in IE6. If you want to reproduce that, just add the following function before including dynapi.js : Array.prototype.anOtherFunction = function(s) { alert(s); }; Could you tell me if you got the same problem ? Thanx ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1288708&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-06 18:42:01
|
Feature Requests item #1282007, was opened at 2005-09-05 02:36 Message generated for change (Comment added) made by doug_melvin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355757&aid=1282007&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: mosh (mosh666) Assigned to: Nobody/Anonymous (nobody) Summary: setCookie() with more parameters Initial Comment: Wouldn't it be possible to add some more features to the setCookie() function in /src/util/cookie.js? in my apps i'm using a function like this: this.setCookie = function(cookie_name, cookie_value, cookie_lifetime, cookie_path, cookie_domain, is_secure) { if (!cookie_name) { return false; } document.cookie = escape(cookie_name) + '=' + escape(cookie_value) + (cookie_lifetime ? ';expires=' + (new Date((new Date()).getTime() + (1000 * cookie_lifetime))).toGMTString() : '' ) + (cookie_path ? ';cookie_path=' + cookie_path : '') + (cookie_domain ? ';cookie_domain=' + cookie_domain : '') + (is_secure ? ';secure' : ''); if (cookie_lifetime < 0) { if (typeof this.getCookie(cookie_name) == 'string') { return false; } return true; } if (typeof this.getCookie(cookie_name) == 'string') { return true; } return false; } ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-09-06 11:41 Message: Logged In: YES user_id=184788 Okay. I am cool with this. However, if we ARE going to add an enhanced setCookie, them we might as well add an enhanced deleteCookie, getCookie and maybe cloneCookie ect ect. Also: I would like to see setCookie, as complex as it is, still be able to be used in "simple mode" I.e setCookie("login=1") or whatever. also I would imagion deleteCookie taking whildcards and such :-P Alos: as always we will want to ensure that any new cookie manager be cross-browser (and tested as such) cheers ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-09-06 06:33 Message: Logged In: YES user_id=706287 It's a feature request. Sorry, I thought it was submitted as a Feature Request. Well, the "Group" was Feature Request but the "Data Type" field was set to Bugs. I've changed the type. Please use Bugs for something broken, and Feature Requests for something new. Don't forget to double check all those boxes and such. :) ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-09-06 06:19 Message: Logged In: YES user_id=184788 This is _not_ a bug. Please use the BUG tracker to report BUGS. Thank you. <!-- CLOSE ME --> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355757&aid=1282007&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-06 13:33:04
|
Feature Requests item #1282007, was opened at 2005-09-05 05:36 Message generated for change (Comment added) made by warp9pnt9 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355757&aid=1282007&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: mosh (mosh666) Assigned to: Nobody/Anonymous (nobody) Summary: setCookie() with more parameters Initial Comment: Wouldn't it be possible to add some more features to the setCookie() function in /src/util/cookie.js? in my apps i'm using a function like this: this.setCookie = function(cookie_name, cookie_value, cookie_lifetime, cookie_path, cookie_domain, is_secure) { if (!cookie_name) { return false; } document.cookie = escape(cookie_name) + '=' + escape(cookie_value) + (cookie_lifetime ? ';expires=' + (new Date((new Date()).getTime() + (1000 * cookie_lifetime))).toGMTString() : '' ) + (cookie_path ? ';cookie_path=' + cookie_path : '') + (cookie_domain ? ';cookie_domain=' + cookie_domain : '') + (is_secure ? ';secure' : ''); if (cookie_lifetime < 0) { if (typeof this.getCookie(cookie_name) == 'string') { return false; } return true; } if (typeof this.getCookie(cookie_name) == 'string') { return true; } return false; } ---------------------------------------------------------------------- >Comment By: L W (warp9pnt9) Date: 2005-09-06 09:33 Message: Logged In: YES user_id=706287 It's a feature request. Sorry, I thought it was submitted as a Feature Request. Well, the "Group" was Feature Request but the "Data Type" field was set to Bugs. I've changed the type. Please use Bugs for something broken, and Feature Requests for something new. Don't forget to double check all those boxes and such. :) ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-09-06 09:19 Message: Logged In: YES user_id=184788 This is _not_ a bug. Please use the BUG tracker to report BUGS. Thank you. <!-- CLOSE ME --> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355757&aid=1282007&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-06 13:19:26
|
Bugs item #1282007, was opened at 2005-09-05 02:36 Message generated for change (Comment added) made by doug_melvin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1282007&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: DynAPI 3 API Group: Feature Request Status: Open Resolution: None Priority: 5 Submitted By: mosh (mosh666) Assigned to: Nobody/Anonymous (nobody) Summary: setCookie() with more parameters Initial Comment: Wouldn't it be possible to add some more features to the setCookie() function in /src/util/cookie.js? in my apps i'm using a function like this: this.setCookie = function(cookie_name, cookie_value, cookie_lifetime, cookie_path, cookie_domain, is_secure) { if (!cookie_name) { return false; } document.cookie = escape(cookie_name) + '=' + escape(cookie_value) + (cookie_lifetime ? ';expires=' + (new Date((new Date()).getTime() + (1000 * cookie_lifetime))).toGMTString() : '' ) + (cookie_path ? ';cookie_path=' + cookie_path : '') + (cookie_domain ? ';cookie_domain=' + cookie_domain : '') + (is_secure ? ';secure' : ''); if (cookie_lifetime < 0) { if (typeof this.getCookie(cookie_name) == 'string') { return false; } return true; } if (typeof this.getCookie(cookie_name) == 'string') { return true; } return false; } ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-09-06 06:19 Message: Logged In: YES user_id=184788 This is _not_ a bug. Please use the BUG tracker to report BUGS. Thank you. <!-- CLOSE ME --> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1282007&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-05 09:36:14
|
Bugs item #1282007, was opened at 2005-09-05 11:36 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=1282007&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: DynAPI 3 API Group: Feature Request Status: Open Resolution: None Priority: 5 Submitted By: mosh (mosh666) Assigned to: Nobody/Anonymous (nobody) Summary: setCookie() with more parameters Initial Comment: Wouldn't it be possible to add some more features to the setCookie() function in /src/util/cookie.js? in my apps i'm using a function like this: this.setCookie = function(cookie_name, cookie_value, cookie_lifetime, cookie_path, cookie_domain, is_secure) { if (!cookie_name) { return false; } document.cookie = escape(cookie_name) + '=' + escape(cookie_value) + (cookie_lifetime ? ';expires=' + (new Date((new Date()).getTime() + (1000 * cookie_lifetime))).toGMTString() : '' ) + (cookie_path ? ';cookie_path=' + cookie_path : '') + (cookie_domain ? ';cookie_domain=' + cookie_domain : '') + (is_secure ? ';secure' : ''); if (cookie_lifetime < 0) { if (typeof this.getCookie(cookie_name) == 'string') { return false; } return true; } if (typeof this.getCookie(cookie_name) == 'string') { return true; } return false; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1282007&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 21:23:54
|
Bugs item #1274309, was opened at 2005-08-26 16:46 Message generated for change (Comment added) made by skang You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in another frame (IE 6.0) Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- >Comment By: ksj (skang) Date: 2005-09-01 17:23 Message: Logged In: YES user_id=1335843 I successfully tested the fix provided by agillett (posted on date: 2005-09-01 08:04) - which mean that there might be a quicky but not necessarily dirty solution. Interestingly, the problem seems to be solved by just using the two lines of code in dynlayer_ie.js (line 17 -18, listed below) all the time: ---------------------------------------------------------------------------- parentElement.insertAdjacentHTML ("beforeEnd",this.getOuterHTML()); elm = parentElement.children [parentElement.children.length-1]; --------------------------------------------------------------------------- instead of using the 27-line section (line 22-48, listed below) which is considered more effecient for ie5+ -------------------------------------------------------------------------- // this method is more efficient for ie5+. any comment? elm=document.createElement('DIV'); elm.id=this.id; if(this._className) elm.className=this._className; if(!this._noStyle) { var css = elm.style; css.position= (this._position||'absolute'); css.pixelLeft= (this.x||0); css.pixelTop= (this.y||0); if(this.w!=null) css.width = this.w; if(this.h!=null) css.height = this.h; css.backgroundColor=(this.bgColor||'transparent'); css.zIndex= (this.z||1); css.cursor= (this._cursor||'auto'); css.overflow= (this._overflow||''); if(this.bgImage! =null) css.backgroundImage='url('+this.bgImage+')'; if (this.bgImage==null && this.html==null) css.backgroundImage='none'; if (this.clip) css.clip='rect('+this.clip[0]+'px '+this.clip[1]+'px '+this.clip[2] +'px '+this.clip[3]+'px)'; else if (this.w! =null && this.h!=null) css.clip='rect (0px '+this.w+'px '+this.h+'px 0px)'; css.visibility= (this.visible==false)? 'hidden':'inherit'; // border - set by BorderManager if (this._cssBorTop){ css.borderTop = this._cssBorTop||''; css.borderRight = this._cssBorRight||''; css.borderBottom = this._cssBorBottom||''; css.borderLeft = this._cssBorLeft||''; } ---------------------------------------------------------------------------- Can anybody shed some light on why the second section is better than the first section for ie5+? Can it be enhanced to gain the benefit of the first section where no "global variable" is used? Thanks ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-09-01 16:10 Message: Logged In: YES user_id=184788 My two cents: If the frames are on seperate domains (or different ip address) then no.. there is no easy fix. This is called cors-site scripting and is delibratly disabled for obvious security reasons. Now that said and idea comes to mind.. how about passing dynapi calls between the two frames via our handy-dandy soap objects? It's no small project, and one which I certainly do not have time for atm. (16 hour days make Douggie a very sad man indeed) breif outline: A method by which fram/window A on domain Y may execute or cause to be executed javascript code in fram/window B on domain Z. This method would involve window A sending a message server Y which serrver Y would relay to Server Z which in turn would relay said message to window B. Even as i type this i see how there would be a certainly level of complexity in implementation, However, I can also see how such an interface and be abstracted and made "simple" for the end-using coder. All I can say now is "Viva La eval()!" ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 12:29 Message: Logged In: YES user_id=1335843 It seems to me that we run into a problem caused by using "global variables" in a set of APIs that try to achieve OO programming in javascript environment. I think if dynapi users stick to dynapi objects, as in my example code, the application should behave in a way that OO programmers expect -- certainly, only if that's possible within the limitation of browsers. ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-09-01 10:58 Message: Logged In: YES user_id=706287 I don't think it's up to the dynapi. JavaScript can only do what the browser allows. If the browser does not allow it, we can't do anything. On the other hand, we /may/ be able to look at what the functions are doing and devise a way to achieve what we want. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 10:14 Message: Logged In: YES user_id=1335843 Thanks a lot, Andrew. I feel like being executed. But I do see how it's getting tricky when you try to control the contents of another window. Question is: Can be fixed theoretically? Will the dynapi development group formally abandon supporting frames? ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-09-01 08:04 Message: Logged In: YES user_id=134108 The removeFromParent() function deletes the DIV element associated with the DynLayer from the DOM. The addChild() function creates a new element and inserts it into the parents (layer1) DOM. The problem is that the _create() function in dynlayer_ie.js uses "document.createElement()" to create the new DIV element. Because this action is initiated from your "Set Desktop" button, the "document" variable refers to the menu document, not the content document. You cannot add an element created in one frame to the DOM of another frame. One workaround is to remove the "if" statement on line 16 of dynlayer_ie.js so that lines 17-18 are executed instead of the "else" block (lines 21-50). This avoids using the document.createElement function altogether and your code seems to work. However I'm not sure that is this is a good long term solution. I've tried to get the code to use the parent elements document object to create the new element, but that has always failed with permission errors. Another solution is to just stop using frames :) ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 00:58 Message: Logged In: YES user_id=1335843 Please remove the first one (listed below). Thanks // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 22:22 Message: Logged In: YES user_id=134108 They are not two copies of the same function, they are two different functions with the same name: // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; // show cached desktop content function OnLoadDesktop(){ desktop = this.parent.desktop.content; desktop.addChild(desktopContents); }; I don't know how to correct this, you must do it. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 22:14 Message: Logged In: YES user_id=1335843 Sure, please correct - I put two copies of the same function by mistake. Thanks ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 18:55 Message: Logged In: YES user_id=134108 The first thing I've noticed is that menu.html contains two different definitions of the "OnLoadDesktop()" function. This makes it hard to follow the logic. Would you mind correcting this? ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 11:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 09:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-30 23:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 20:19:59
|
Bugs item #1028709, was opened at 2004-09-15 10:49 Message generated for change (Comment added) made by doug_melvin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1028709&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: Max (max_boyko) Assigned to: Nobody/Anonymous (nobody) Summary: autoresizing with setHTML Initial Comment: Let us consider the setting next HTML for DynLayer which have not fixed size (we expect that layer should be auto-resized to the content size): var dlr = new DynLayer(); dlr.setHTML("Test<img src='http://www.google.com/images/logo.gif'>"); dynapi.document.addChild(dlr); If the image in HTML (<img src='http://www.google.com/images/logo.gif'>) isnt cached by the browser early then we have problem with auto-resizing of the layer. The core place in code (I consider the case of DOM browser only) is: dynlayer_dom.js, line 47, in function DynLayer._assignElement, where we call dlyr.setSize(cw,ch). At the moment of calling _assignElement we have incorrect values for getContentWidth and getContentHeight yet and so we set the wrong size to the layer I think we should resize layer when the DynLayer completes the job by loading all resources (images and etc.) Unfortunately I dont know how to detect the finish of all jobs during the changing innerHTML of element (our case) I attached the test file which doesnt work on IE and Mozilla ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-09-01 13:19 Message: Logged In: YES user_id=184788 Checking for completiong can be done in IE using the onreadystatechange event and then checking if readyState == 4 I _think_ readystate 4 = finished rendering, but you will want to test to be sure. This event is not very well documented at all and was only found after about 4 months of trying to solve an "images abort loading" issue we where having oh-so long ago. Also note: I have absolutly no idea how to do this in Mozilla but give me time :-P ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1028709&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 20:14:21
|
Bugs item #1257263, was opened at 2005-08-11 19:56 Message generated for change (Comment added) made by doug_melvin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1257263&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: L W (warp9pnt9) Assigned to: Nobody/Anonymous (nobody) Summary: Events send wrong X/Y coords to relative layers. Initial Comment: When setting up a background layer, adding to that a layer with a photograph, and adding to that a layer that you move around (fetch and drag), then there's a problem. The onmousedown event (and others) passes the X and Y coordinates +8 or +9 or so. The upper left corner of the fetched layer stops to the 8 or 9 pixels to the lower right of the cursor. Therefore you can never connect with a drag event. You must release the mouse to stop the onmousedown event from firing, then move the mouse over the layer, and mousedown again to initiate a drag. If I remove the relative insert later in the document, the upper left corner of the fetched layer comes to a stop precisely underneath the mouse cursor. This might be used in a situation when you'll have some text or images or other layers, then you'll want to relatively insert this background layer, with it's photo layer and it's fetchable/draggable layer. You won't know ahead of time how to precisely position the layer on the page, so everything must be done relative to the background layer. Maybe there's another way to do things? I'm still learning myself. I definitely would like to understand where the offset is coming from. I might have a hunch about some thing. test1 example is attached below. ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-09-01 13:14 Message: Logged In: YES user_id=184788 where there not a LOT of comments on this bug? or was that confined to the mailing list? Anyways _my_ solution is to use the DynAPI Inline layer extension, then retrieve the posisiton of your relative layer then, suing the x/y obtained, simply proceed with treating your DynLayers as absulte layers.. By this I mean do not add the DynLayer as a child of the relative layer, only retrieve the relative layer's x/7 and width/height. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1257263&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 20:10:53
|
Bugs item #1274309, was opened at 2005-08-26 13:46 Message generated for change (Comment added) made by doug_melvin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in another frame (IE 6.0) Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-09-01 13:10 Message: Logged In: YES user_id=184788 My two cents: If the frames are on seperate domains (or different ip address) then no.. there is no easy fix. This is called cors-site scripting and is delibratly disabled for obvious security reasons. Now that said and idea comes to mind.. how about passing dynapi calls between the two frames via our handy-dandy soap objects? It's no small project, and one which I certainly do not have time for atm. (16 hour days make Douggie a very sad man indeed) breif outline: A method by which fram/window A on domain Y may execute or cause to be executed javascript code in fram/window B on domain Z. This method would involve window A sending a message server Y which serrver Y would relay to Server Z which in turn would relay said message to window B. Even as i type this i see how there would be a certainly level of complexity in implementation, However, I can also see how such an interface and be abstracted and made "simple" for the end-using coder. All I can say now is "Viva La eval()!" ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 09:29 Message: Logged In: YES user_id=1335843 It seems to me that we run into a problem caused by using "global variables" in a set of APIs that try to achieve OO programming in javascript environment. I think if dynapi users stick to dynapi objects, as in my example code, the application should behave in a way that OO programmers expect -- certainly, only if that's possible within the limitation of browsers. ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-09-01 07:58 Message: Logged In: YES user_id=706287 I don't think it's up to the dynapi. JavaScript can only do what the browser allows. If the browser does not allow it, we can't do anything. On the other hand, we /may/ be able to look at what the functions are doing and devise a way to achieve what we want. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 07:14 Message: Logged In: YES user_id=1335843 Thanks a lot, Andrew. I feel like being executed. But I do see how it's getting tricky when you try to control the contents of another window. Question is: Can be fixed theoretically? Will the dynapi development group formally abandon supporting frames? ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-09-01 05:04 Message: Logged In: YES user_id=134108 The removeFromParent() function deletes the DIV element associated with the DynLayer from the DOM. The addChild() function creates a new element and inserts it into the parents (layer1) DOM. The problem is that the _create() function in dynlayer_ie.js uses "document.createElement()" to create the new DIV element. Because this action is initiated from your "Set Desktop" button, the "document" variable refers to the menu document, not the content document. You cannot add an element created in one frame to the DOM of another frame. One workaround is to remove the "if" statement on line 16 of dynlayer_ie.js so that lines 17-18 are executed instead of the "else" block (lines 21-50). This avoids using the document.createElement function altogether and your code seems to work. However I'm not sure that is this is a good long term solution. I've tried to get the code to use the parent elements document object to create the new element, but that has always failed with permission errors. Another solution is to just stop using frames :) ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 21:58 Message: Logged In: YES user_id=1335843 Please remove the first one (listed below). Thanks // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 19:22 Message: Logged In: YES user_id=134108 They are not two copies of the same function, they are two different functions with the same name: // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; // show cached desktop content function OnLoadDesktop(){ desktop = this.parent.desktop.content; desktop.addChild(desktopContents); }; I don't know how to correct this, you must do it. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 19:14 Message: Logged In: YES user_id=1335843 Sure, please correct - I put two copies of the same function by mistake. Thanks ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 15:55 Message: Logged In: YES user_id=134108 The first thing I've noticed is that menu.html contains two different definitions of the "OnLoadDesktop()" function. This makes it hard to follow the logic. Would you mind correcting this? ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 08:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 07:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 07:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 06:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-30 20:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 16:35:03
|
Bugs item #1274309, was opened at 2005-08-26 16:46 Message generated for change (Settings changed) made by skang You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) >Summary: unable to redraw dynlayer object in another frame (IE 6.0) Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 12:29 Message: Logged In: YES user_id=1335843 It seems to me that we run into a problem caused by using "global variables" in a set of APIs that try to achieve OO programming in javascript environment. I think if dynapi users stick to dynapi objects, as in my example code, the application should behave in a way that OO programmers expect -- certainly, only if that's possible within the limitation of browsers. ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-09-01 10:58 Message: Logged In: YES user_id=706287 I don't think it's up to the dynapi. JavaScript can only do what the browser allows. If the browser does not allow it, we can't do anything. On the other hand, we /may/ be able to look at what the functions are doing and devise a way to achieve what we want. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 10:14 Message: Logged In: YES user_id=1335843 Thanks a lot, Andrew. I feel like being executed. But I do see how it's getting tricky when you try to control the contents of another window. Question is: Can be fixed theoretically? Will the dynapi development group formally abandon supporting frames? ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-09-01 08:04 Message: Logged In: YES user_id=134108 The removeFromParent() function deletes the DIV element associated with the DynLayer from the DOM. The addChild() function creates a new element and inserts it into the parents (layer1) DOM. The problem is that the _create() function in dynlayer_ie.js uses "document.createElement()" to create the new DIV element. Because this action is initiated from your "Set Desktop" button, the "document" variable refers to the menu document, not the content document. You cannot add an element created in one frame to the DOM of another frame. One workaround is to remove the "if" statement on line 16 of dynlayer_ie.js so that lines 17-18 are executed instead of the "else" block (lines 21-50). This avoids using the document.createElement function altogether and your code seems to work. However I'm not sure that is this is a good long term solution. I've tried to get the code to use the parent elements document object to create the new element, but that has always failed with permission errors. Another solution is to just stop using frames :) ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 00:58 Message: Logged In: YES user_id=1335843 Please remove the first one (listed below). Thanks // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 22:22 Message: Logged In: YES user_id=134108 They are not two copies of the same function, they are two different functions with the same name: // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; // show cached desktop content function OnLoadDesktop(){ desktop = this.parent.desktop.content; desktop.addChild(desktopContents); }; I don't know how to correct this, you must do it. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 22:14 Message: Logged In: YES user_id=1335843 Sure, please correct - I put two copies of the same function by mistake. Thanks ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 18:55 Message: Logged In: YES user_id=134108 The first thing I've noticed is that menu.html contains two different definitions of the "OnLoadDesktop()" function. This makes it hard to follow the logic. Would you mind correcting this? ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 11:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 09:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-30 23:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 16:29:44
|
Bugs item #1274309, was opened at 2005-08-26 16:46 Message generated for change (Comment added) made by skang You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in IE 6.0 Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- >Comment By: ksj (skang) Date: 2005-09-01 12:29 Message: Logged In: YES user_id=1335843 It seems to me that we run into a problem caused by using "global variables" in a set of APIs that try to achieve OO programming in javascript environment. I think if dynapi users stick to dynapi objects, as in my example code, the application should behave in a way that OO programmers expect -- certainly, only if that's possible within the limitation of browsers. ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-09-01 10:58 Message: Logged In: YES user_id=706287 I don't think it's up to the dynapi. JavaScript can only do what the browser allows. If the browser does not allow it, we can't do anything. On the other hand, we /may/ be able to look at what the functions are doing and devise a way to achieve what we want. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 10:14 Message: Logged In: YES user_id=1335843 Thanks a lot, Andrew. I feel like being executed. But I do see how it's getting tricky when you try to control the contents of another window. Question is: Can be fixed theoretically? Will the dynapi development group formally abandon supporting frames? ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-09-01 08:04 Message: Logged In: YES user_id=134108 The removeFromParent() function deletes the DIV element associated with the DynLayer from the DOM. The addChild() function creates a new element and inserts it into the parents (layer1) DOM. The problem is that the _create() function in dynlayer_ie.js uses "document.createElement()" to create the new DIV element. Because this action is initiated from your "Set Desktop" button, the "document" variable refers to the menu document, not the content document. You cannot add an element created in one frame to the DOM of another frame. One workaround is to remove the "if" statement on line 16 of dynlayer_ie.js so that lines 17-18 are executed instead of the "else" block (lines 21-50). This avoids using the document.createElement function altogether and your code seems to work. However I'm not sure that is this is a good long term solution. I've tried to get the code to use the parent elements document object to create the new element, but that has always failed with permission errors. Another solution is to just stop using frames :) ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 00:58 Message: Logged In: YES user_id=1335843 Please remove the first one (listed below). Thanks // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 22:22 Message: Logged In: YES user_id=134108 They are not two copies of the same function, they are two different functions with the same name: // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; // show cached desktop content function OnLoadDesktop(){ desktop = this.parent.desktop.content; desktop.addChild(desktopContents); }; I don't know how to correct this, you must do it. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 22:14 Message: Logged In: YES user_id=1335843 Sure, please correct - I put two copies of the same function by mistake. Thanks ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 18:55 Message: Logged In: YES user_id=134108 The first thing I've noticed is that menu.html contains two different definitions of the "OnLoadDesktop()" function. This makes it hard to follow the logic. Would you mind correcting this? ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 11:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 09:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-30 23:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 14:58:57
|
Bugs item #1274309, was opened at 2005-08-26 16:46 Message generated for change (Comment added) made by warp9pnt9 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in IE 6.0 Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- >Comment By: L W (warp9pnt9) Date: 2005-09-01 10:58 Message: Logged In: YES user_id=706287 I don't think it's up to the dynapi. JavaScript can only do what the browser allows. If the browser does not allow it, we can't do anything. On the other hand, we /may/ be able to look at what the functions are doing and devise a way to achieve what we want. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 10:14 Message: Logged In: YES user_id=1335843 Thanks a lot, Andrew. I feel like being executed. But I do see how it's getting tricky when you try to control the contents of another window. Question is: Can be fixed theoretically? Will the dynapi development group formally abandon supporting frames? ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-09-01 08:04 Message: Logged In: YES user_id=134108 The removeFromParent() function deletes the DIV element associated with the DynLayer from the DOM. The addChild() function creates a new element and inserts it into the parents (layer1) DOM. The problem is that the _create() function in dynlayer_ie.js uses "document.createElement()" to create the new DIV element. Because this action is initiated from your "Set Desktop" button, the "document" variable refers to the menu document, not the content document. You cannot add an element created in one frame to the DOM of another frame. One workaround is to remove the "if" statement on line 16 of dynlayer_ie.js so that lines 17-18 are executed instead of the "else" block (lines 21-50). This avoids using the document.createElement function altogether and your code seems to work. However I'm not sure that is this is a good long term solution. I've tried to get the code to use the parent elements document object to create the new element, but that has always failed with permission errors. Another solution is to just stop using frames :) ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 00:58 Message: Logged In: YES user_id=1335843 Please remove the first one (listed below). Thanks // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 22:22 Message: Logged In: YES user_id=134108 They are not two copies of the same function, they are two different functions with the same name: // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; // show cached desktop content function OnLoadDesktop(){ desktop = this.parent.desktop.content; desktop.addChild(desktopContents); }; I don't know how to correct this, you must do it. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 22:14 Message: Logged In: YES user_id=1335843 Sure, please correct - I put two copies of the same function by mistake. Thanks ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 18:55 Message: Logged In: YES user_id=134108 The first thing I've noticed is that menu.html contains two different definitions of the "OnLoadDesktop()" function. This makes it hard to follow the logic. Would you mind correcting this? ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 11:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 09:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-30 23:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 14:15:02
|
Bugs item #1274309, was opened at 2005-08-26 16:46 Message generated for change (Comment added) made by skang You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in IE 6.0 Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- >Comment By: ksj (skang) Date: 2005-09-01 10:14 Message: Logged In: YES user_id=1335843 Thanks a lot, Andrew. I feel like being executed. But I do see how it's getting tricky when you try to control the contents of another window. Question is: Can be fixed theoretically? Will the dynapi development group formally abandon supporting frames? ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-09-01 08:04 Message: Logged In: YES user_id=134108 The removeFromParent() function deletes the DIV element associated with the DynLayer from the DOM. The addChild() function creates a new element and inserts it into the parents (layer1) DOM. The problem is that the _create() function in dynlayer_ie.js uses "document.createElement()" to create the new DIV element. Because this action is initiated from your "Set Desktop" button, the "document" variable refers to the menu document, not the content document. You cannot add an element created in one frame to the DOM of another frame. One workaround is to remove the "if" statement on line 16 of dynlayer_ie.js so that lines 17-18 are executed instead of the "else" block (lines 21-50). This avoids using the document.createElement function altogether and your code seems to work. However I'm not sure that is this is a good long term solution. I've tried to get the code to use the parent elements document object to create the new element, but that has always failed with permission errors. Another solution is to just stop using frames :) ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 00:58 Message: Logged In: YES user_id=1335843 Please remove the first one (listed below). Thanks // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 22:22 Message: Logged In: YES user_id=134108 They are not two copies of the same function, they are two different functions with the same name: // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; // show cached desktop content function OnLoadDesktop(){ desktop = this.parent.desktop.content; desktop.addChild(desktopContents); }; I don't know how to correct this, you must do it. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 22:14 Message: Logged In: YES user_id=1335843 Sure, please correct - I put two copies of the same function by mistake. Thanks ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 18:55 Message: Logged In: YES user_id=134108 The first thing I've noticed is that menu.html contains two different definitions of the "OnLoadDesktop()" function. This makes it hard to follow the logic. Would you mind correcting this? ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 11:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 09:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-30 23:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 12:04:49
|
Bugs item #1274309, was opened at 2005-08-27 06:46 Message generated for change (Comment added) made by agillett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in IE 6.0 Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- >Comment By: Andrew Gillett (agillett) Date: 2005-09-01 22:04 Message: Logged In: YES user_id=134108 The removeFromParent() function deletes the DIV element associated with the DynLayer from the DOM. The addChild() function creates a new element and inserts it into the parents (layer1) DOM. The problem is that the _create() function in dynlayer_ie.js uses "document.createElement()" to create the new DIV element. Because this action is initiated from your "Set Desktop" button, the "document" variable refers to the menu document, not the content document. You cannot add an element created in one frame to the DOM of another frame. One workaround is to remove the "if" statement on line 16 of dynlayer_ie.js so that lines 17-18 are executed instead of the "else" block (lines 21-50). This avoids using the document.createElement function altogether and your code seems to work. However I'm not sure that is this is a good long term solution. I've tried to get the code to use the parent elements document object to create the new element, but that has always failed with permission errors. Another solution is to just stop using frames :) ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 14:58 Message: Logged In: YES user_id=1335843 Please remove the first one (listed below). Thanks // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-09-01 12:22 Message: Logged In: YES user_id=134108 They are not two copies of the same function, they are two different functions with the same name: // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; // show cached desktop content function OnLoadDesktop(){ desktop = this.parent.desktop.content; desktop.addChild(desktopContents); }; I don't know how to correct this, you must do it. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 12:14 Message: Logged In: YES user_id=1335843 Sure, please correct - I put two copies of the same function by mistake. Thanks ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-09-01 08:55 Message: Logged In: YES user_id=134108 The first thing I've noticed is that menu.html contains two different definitions of the "OnLoadDesktop()" function. This makes it hard to follow the logic. Would you mind correcting this? ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-09-01 01:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 00:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 00:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 23:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 13:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
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 |
From: SourceForge.net <no...@so...> - 2005-09-01 05:10:01
|
Bugs item #1277896, was opened at 2005-09-01 14:44 Message generated for change (Settings changed) made by agillett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1277896&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: Andrew Gillett (agillett) Assigned to: Nobody/Anonymous (nobody) Summary: DynElement.captureKeyEvents bug Initial Comment: The captureKeyEvents() method in dynkeyevent.js contains the code: DynElement.prototype.captureKeyEvents=function() { var elm=(this.getClassName()=='DynLayer')?this.elm:this.doc; which works fine if you want to capture key events on the DynDocument or a DynLayer, but fails for all other classes. This is a corrected version: DynElement.prototype.captureKeyEvents=function() { var elm=(this.getClassName()=='DynDocument')?this.doc:this.elm; The corrected version allows you to capture key events on any subclass of DynElement. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1277896&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 05:07:51
|
Bugs item #1277920, was opened at 2005-09-01 15:05 Message generated for change (Settings changed) made by agillett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1277920&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: Deleted Resolution: None Priority: 5 Submitted By: Andrew Gillett (agillett) Assigned to: Nobody/Anonymous (nobody) Summary: DynElement.captureKeyEvents bug Initial Comment: The captureKeyEvents() method in dynkeyevent.js contains this broken code: DynElement.prototype.captureKeyEvents=function() { var elm=(this.getClassName()=='DynLayer')?this.elm:this.doc; which works fine if you want to capture key events on the DynDocument or a DynLayer, but fails for all other classes. This is a corrected version: DynElement.prototype.captureKeyEvents=function() { var elm=(this.getClassName()=='DynDocument')?this.doc:this.elm; The corrected version allows you to capture key events on any subclass of DynElement. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1277920&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 05:05:52
|
Bugs item #1277920, was opened at 2005-09-01 15:05 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=1277920&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: Andrew Gillett (agillett) Assigned to: Nobody/Anonymous (nobody) Summary: DynElement.captureKeyEvents bug Initial Comment: The captureKeyEvents() method in dynkeyevent.js contains this broken code: DynElement.prototype.captureKeyEvents=function() { var elm=(this.getClassName()=='DynLayer')?this.elm:this.doc; which works fine if you want to capture key events on the DynDocument or a DynLayer, but fails for all other classes. This is a corrected version: DynElement.prototype.captureKeyEvents=function() { var elm=(this.getClassName()=='DynDocument')?this.doc:this.elm; The corrected version allows you to capture key events on any subclass of DynElement. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1277920&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 04:58:26
|
Bugs item #1274309, was opened at 2005-08-26 16:46 Message generated for change (Comment added) made by skang You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in IE 6.0 Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- >Comment By: ksj (skang) Date: 2005-09-01 00:58 Message: Logged In: YES user_id=1335843 Please remove the first one (listed below). Thanks // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 22:22 Message: Logged In: YES user_id=134108 They are not two copies of the same function, they are two different functions with the same name: // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; // show cached desktop content function OnLoadDesktop(){ desktop = this.parent.desktop.content; desktop.addChild(desktopContents); }; I don't know how to correct this, you must do it. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 22:14 Message: Logged In: YES user_id=1335843 Sure, please correct - I put two copies of the same function by mistake. Thanks ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 18:55 Message: Logged In: YES user_id=134108 The first thing I've noticed is that menu.html contains two different definitions of the "OnLoadDesktop()" function. This makes it hard to follow the logic. Would you mind correcting this? ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 11:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 09:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-30 23:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 04:44:23
|
Bugs item #1277896, was opened at 2005-09-01 14: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=1277896&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: Andrew Gillett (agillett) Assigned to: Nobody/Anonymous (nobody) Summary: DynElement.captureKeyEvents bug Initial Comment: The captureKeyEvents() method in dynkeyevent.js contains the code: DynElement.prototype.captureKeyEvents=function() { var elm=(this.getClassName()=='DynLayer')?this.elm:this.doc; which works fine if you want to capture key events on the DynDocument or a DynLayer, but fails for all other classes. This is a corrected version: DynElement.prototype.captureKeyEvents=function() { var elm=(this.getClassName()=='DynDocument')?this.doc:this.elm; The corrected version allows you to capture key events on any subclass of DynElement. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1277896&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 02:22:15
|
Bugs item #1274309, was opened at 2005-08-27 06:46 Message generated for change (Comment added) made by agillett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in IE 6.0 Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- >Comment By: Andrew Gillett (agillett) Date: 2005-09-01 12:22 Message: Logged In: YES user_id=134108 They are not two copies of the same function, they are two different functions with the same name: // redraw desktop content function OnLoadDesktop(){ desktopContents.removeFromParent(); desktop.addChild(desktopContents); }; // show cached desktop content function OnLoadDesktop(){ desktop = this.parent.desktop.content; desktop.addChild(desktopContents); }; I don't know how to correct this, you must do it. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 12:14 Message: Logged In: YES user_id=1335843 Sure, please correct - I put two copies of the same function by mistake. Thanks ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-09-01 08:55 Message: Logged In: YES user_id=134108 The first thing I've noticed is that menu.html contains two different definitions of the "OnLoadDesktop()" function. This makes it hard to follow the logic. Would you mind correcting this? ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-09-01 01:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 00:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 00:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 23:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 13:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-09-01 02:15:14
|
Bugs item #1274309, was opened at 2005-08-26 16:46 Message generated for change (Comment added) made by skang You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in IE 6.0 Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- >Comment By: ksj (skang) Date: 2005-08-31 22:14 Message: Logged In: YES user_id=1335843 Sure, please correct - I put two copies of the same function by mistake. Thanks ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 18:55 Message: Logged In: YES user_id=134108 The first thing I've noticed is that menu.html contains two different definitions of the "OnLoadDesktop()" function. This makes it hard to follow the logic. Would you mind correcting this? ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 11:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 09:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-30 23:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-08-31 22:55:57
|
Bugs item #1274309, was opened at 2005-08-27 06:46 Message generated for change (Comment added) made by agillett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in IE 6.0 Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- >Comment By: Andrew Gillett (agillett) Date: 2005-09-01 08:55 Message: Logged In: YES user_id=134108 The first thing I've noticed is that menu.html contains two different definitions of the "OnLoadDesktop()" function. This makes it hard to follow the logic. Would you mind correcting this? ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-09-01 01:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 00:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-09-01 00:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 23:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-31 13:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-08-31 15:15:57
|
Bugs item #1274309, was opened at 2005-08-26 16:46 Message generated for change (Comment added) made by warp9pnt9 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in IE 6.0 Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- >Comment By: L W (warp9pnt9) Date: 2005-08-31 11:15 Message: Logged In: YES user_id=706287 Hi. It was Andrew (agillett) who changed Resolution to Works for Me, before the example was supplied. Now I see the problem as you describe. ======== In Firefox, if reload, I get this error in the JavaScript console: Error: this.parent.menu.OnLoadDesktop is not a function Source File: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Line: 22 If I then hold Shift and reload, I get this JavaScript error: Error: this.parent.menu.OnUnloadDesktop is not a function But the page loads properly otherwise. This indicates that something is being destroyed and then trying to use it after it's gone. ======== In IE 6, on pressing Set Desktop, I get a different error from the one reported. In an alert-style popup, in addition to the script error popup: An error has occured in this dialog. Error: 84 Unspecified error. And the odd thing, the IE script error popup has no content: Line: Char: Error: Code: URL: But clicking "OK" on the alert-style popup closes the IE script error popup as well. Reloading the page AFTER clicking Set Desktop yields the following script error: Line: 198 Char: 19 Error: Can't execute code from a freed script Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/menu.html Followed by: Line: 22 Char: 4 Error: Object doesn't support this property or method Code: 0 URL: file:///path/to/dynapi-3.0.0-beta2/examples/test/content.html Then the page reloads just fine. I'll have to look into it some more. ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 09:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-30 23:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |
From: SourceForge.net <no...@so...> - 2005-08-31 14:20:19
|
Bugs item #1274309, was opened at 2005-08-26 16:46 Message generated for change (Comment added) made by skang You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&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: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: ksj (skang) Assigned to: Andrew Gillett (agillett) Summary: unable to redraw dynlayer object in IE 6.0 Initial Comment: layer2 is a dynlayer object which is already a children of dynlayer object layer1. The following redraw logic does not work in IE 6.0 layer2.removeFromParent(); layer1.addChild(layer2); Below is the error message: Line: 51 Char: 4 Error: invalid argument Code: 0 URL: http://127.0.0.1/test.html ---------------------------------------------------------------------- >Comment By: ksj (skang) Date: 2005-08-31 10:20 Message: Logged In: YES user_id=1335843 Still does not work for me - sorry I submitted "Works For Me" by mistake ---------------------------------------------------------------------- Comment By: ksj (skang) Date: 2005-08-31 10:17 Message: Logged In: YES user_id=1335843 First, thanks a lot for checking this problem. Your test code does work. To reproduce my problem, please unzip my attached file and put it in "test" folder under the dynapi's "examples" folder. "desktop.html" is the entrance page. Please follow steps below to see the problem: ========================================== Problem for IE6: Step 1: browse page: "desktop.html" and remember what's in the the lower frame of the screen. Step 2: click "Set Desktop" button to redraw the lower frame of the screen. You can see how the yellow layer and blue layer disappear. ========================================== BTW, I just found another problem for the same code when running it in firefox 1.0.1. Below are the steps to reproduce the problem: Step 1: browse page: "desktop.html" and remember what's in the upper frame of the screen. Step 2: click the browser's "reload" button to refresh the page. You'll see that "toolbar1" disappears ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-31 09:06 Message: Logged In: YES user_id=706287 Also, let us know what specific version of DynAPI you are using. I did not see the problem with dynapi-3.0.0-beta2. So provide a complete example of the failure, and the DynAPI version you're using. ---------------------------------------------------------------------- Comment By: Andrew Gillett (agillett) Date: 2005-08-30 23:48 Message: Logged In: YES user_id=134108 I haven't been able to reproduce this error. My test case is http://dynapi.sourceforge.net/releases/dynapi3x/test/006.Redraw.html Can you supply the complete code for your example that fails? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1274309&group_id=5757 |